Re: [tip: locking/core] futex: Optimize futex hash bucket access patterns
From: Breno Leitao
Date: Fri Jun 12 2026 - 04:15:23 EST
On Fri, Jun 12, 2026 at 07:11:10AM +0000, tip-bot2 for Peter Zijlstra wrote:
> futex: Optimize futex hash bucket access patterns
>
> Breno reported significant c2c HITM in a futex hash heavy workload.
...
> Funnily this turns out to remove more code than it adds and significantly
> improves futex hash performance (as measured by 'perf bench futex hash'):
Fascinating!
> Reported-by: Breno Leitao <leitao@xxxxxxxxxx>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> Tested-by: Breno Leitao <leitao@xxxxxxxxxx>
> Tested-by: Thomas Gleixner <tglx@xxxxxxxxxx>
> Link: https://patch.msgid.link/20260610135510.GB1430057@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks so much Peter!
--breno