Re: [REGRESSION] slab: Redis loopback throughput drops 40% after the sheaves merge, list_lock contention
From: Garg, Shivank
Date: Sun Dec 06 2026 - 05:28:51 EST
On Fri, 2026-12-04 at 09:37 +0000, Hao Li wrote:
> On Fri, Dec 04, 2026 at 08:18:18AM +0000, Garg, Shivank wrote:
> > Hi,
> >
> > On a 2-socket AMD EPYC Zen 6 system, a Redis/memtier benchmark over
> > loopback TCP loses about 40% of its throughput with the slab-for-7.0
> > merge (148f95f75c51) and has not recovered as of v7.4-rc4.
>
> Hello, Shivank,
>
> Thanks for sharing this performance report.
Hi Hao,
Thanks for looking into this.
>
> >
> > Hao Li's slab parking RFC [1] recovers most of the throughput, but the
> > refill side still contends on that lock. Pedro asked in that thread why
> > the slow paths are hit so hard [2]; this workload may be a useful data
> > point.
>
> This is interesting!
>
> >
> > Kernels:
> > K1: 41f1a08645ab (just before the slab-for-7.0 merge)
>
> I took a look at this commit and noticed it already has both percpu slabs and
> sheaves (i.e., an additional percpu cache layer on top of the sheaves layer).
> So in theory, this commit should have the best performance.
>
> > K2: 148f95f75c51 (Merge tag 'slab-for-7.0')
>
> After this commit, the percpu layer is completely removed, so in theory, some
> performance drop is expected here. Because of that, the data from K1 may
> not be the best reference for comparison. Just to be on the safe side, would
> you mind testing commit 9d4e6ab865c4 (e.g. naming it K0) as well, which
> represents the state before the sheaves mechanism was introduced? Thanks!
Pre-sheaves scores are similar to K1.
score imbalance
K0 9d4e6ab865c4 +tcpfix 35.1M 4.8%
and tried some other kernel as well:
v6.17 34.94M
v6.18 35.02M
v6.19 35.58M
41f1a08645ab 35.36M
148f95f75c51 20.74M
v7.0 20.17M
tcpfix = 026dfef287c0 ("tcp: give up on stronger sk_rcvbuf checks") to
avoid client hang in warm-up
> > K3: v7.4-rc4
> > K4: v7.4-rc4 + slab parking RFC 2/2 [1]
> >
> > The cache-aware scheduler (CONFIG_SCHED_CACHE, llc_balancing) was added
> > in v7.2 and changes the scores of K3 and K4, so both settings of
> > /sys/kernel/debug/sched/llc_balancing/enabled are shown. K1 and K2 do
> > not have it.
>
> That's a very helpful point as well. In addition, I will take a closer look at
> the detailed performance metrics in the report, and if possible, I'll also try
> to reproduce the results locally. Thanks!
Thanks for this. Please let me know if you need any other data point or
want me try some patch.
Best regards,
Shivank