The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Hao Li <hao.li@linux.dev>
To: "Garg, Shivank" <shivankg@amd.com>
Cc: "vbabka@kernel.org" <vbabka@kernel.org>,
	 "harry@kernel.org" <harry@kernel.org>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	 "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>,
	 "surenb@google.com" <surenb@google.com>,
	"Salunke, Hrushikesh" <Hrushikesh.Salunke@amd.com>,
	 "ming.lei@redhat.com" <ming.lei@redhat.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	 "regressions@lists.linux.dev" <regressions@lists.linux.dev>,
	"Rao, Bharata Bhasker" <bharata@amd.com>,
	 "roman.gushchin@linux.dev" <roman.gushchin@linux.dev>,
	"rientjes@google.com" <rientjes@google.com>
Subject: Re: [REGRESSION] slab: Redis loopback throughput drops 40% after the sheaves merge, list_lock contention
Date: Fri, 4 Dec 2026 09:37:35 +0000	[thread overview]
Message-ID: <axKEh2zzu2ijU7RU@fedora> (raw)
In-Reply-To: <7c4f1dab201fbefbd318058cd9c7640b76af4d5b.camel@amd.com>

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.

> 
> 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!

>   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,
Hao

      reply	other threads:[~2026-12-04  9:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  8:18 [REGRESSION] slab: Redis loopback throughput drops 40% after the sheaves merge, list_lock contention Garg, Shivank
2026-12-04  9:37 ` Hao Li [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=axKEh2zzu2ijU7RU@fedora \
    --to=hao.li@linux.dev \
    --cc=Hrushikesh.Salunke@amd.com \
    --cc=akpm@linux-foundation.org \
    --cc=bharata@amd.com \
    --cc=cl@gentwo.org \
    --cc=edumazet@kernel.org \
    --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=shivankg@amd.com \
    --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