From: "Garg, Shivank" <shivankg@amd.com>
To: "hao.li@linux.dev" <hao.li@linux.dev>
Cc: "cl@gentwo.org" <cl@gentwo.org>,
"edumazet@kernel.org" <edumazet@kernel.org>,
"pfalcato@suse.de" <pfalcato@suse.de>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"surenb@google.com" <surenb@google.com>,
"harry@kernel.org" <harry@kernel.org>,
"ming.lei@redhat.com" <ming.lei@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"vbabka@kernel.org" <vbabka@kernel.org>,
"regressions@lists.linux.dev" <regressions@lists.linux.dev>,
"Rao, Bharata Bhasker" <bharata@amd.com>,
"roman.gushchin@linux.dev" <roman.gushchin@linux.dev>,
"Salunke, Hrushikesh" <Hrushikesh.Salunke@amd.com>,
"rientjes@google.com" <rientjes@google.com>
Subject: Re: [REGRESSION] slab: Redis loopback throughput drops 40% after the sheaves merge, list_lock contention
Date: Sun, 6 Dec 2026 10:28:41 +0000 [thread overview]
Message-ID: <0f8ed7b18f5c807816a8a34e811e6c5693863179.camel@amd.com> (raw)
In-Reply-To: <axKEh2zzu2ijU7RU@fedora>
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
prev parent reply other threads:[~2026-12-06 10:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 8:18 Garg, Shivank
2026-12-04 9:37 ` Hao Li
2026-12-06 10:28 ` Garg, Shivank [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0f8ed7b18f5c807816a8a34e811e6c5693863179.camel@amd.com \
--to=shivankg@amd.com \
--cc=Hrushikesh.Salunke@amd.com \
--cc=akpm@linux-foundation.org \
--cc=bharata@amd.com \
--cc=cl@gentwo.org \
--cc=edumazet@kernel.org \
--cc=hao.li@linux.dev \
--cc=harry@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ming.lei@redhat.com \
--cc=pfalcato@suse.de \
--cc=regressions@lists.linux.dev \
--cc=rientjes@google.com \
--cc=roman.gushchin@linux.dev \
--cc=surenb@google.com \
--cc=vbabka@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®