From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.175 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796377067; b=Osfqz7BRVpmJsDE9pJwX8QWz6pgILJapy1lA3xRrLYHimg6roguozZN/i8m6cIFD7Ol0 mm4Moizu49MLIAhPNI0b59l/eOJC8vP5EocYK/u8xADQH0i4V3SnoCXM2HbtdNQX5KNcL CTWyO8qo2YHY3F+dclSdDqsQbyp/7ecD2zBql9M01TOVGRzzcb/IG3ld7+npz/Wh8+x1h aUwU2bRAv1Tm4LwEMg2hL4D92iX5S4Uz9Ta6Toj2LLbPUGOrq0kBYbJh9kke/n7dDC+Kz V5O8o8Lvghz1BIKmK/UQLqg3CzgEOiiopxIRvRpc26tqZy+ysjm8mbAFVo3NegsyxgA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796377067; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=uI2/6QSUQRW6l3fsS8lzkNQ+Fr2bBEP6WMA/r7zueh0=; b=Rm4kPhzbDngzG/9FMIA4lp9QM/YkMDmJVP3YGgiYY8agTmJbgIEAxHFcuksmz7aOSuMw AoryEIjuaklA9EGLQzZ9niSmYjQJ1phXN8EvwqTw+oE92AzZkOXZtnEpHaTi2dBuJVb25 2njtVVEbvhh+OkQJzPM1B1fDyhTCFEg89IBC1PsyLR7d8cbsMfyjfI6CIxESRGqnLCUZ0 mUufH2gCcAyYe9B2P0x9CMQ99mslJIbPBqRluf3lpihp+cMZbRwbYcnrCZJKhHW4bnVh/ 20tIsDIw3BipN1mfnsOSxkH0MNtNPRY5TOzwt68ig16FQujTyK4eM6bHwiFVkbruozQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=CiLEvRKi; arc=none smtp.remote-ip=91.218.175.175 Received: from mta0.migadu.com (out-175.mta0.migadu.com [91.218.175.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46555606A32C for ; Fri, 4 Dec 2026 09:37:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46555606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=CiLEvRKi X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=CfCR4wa43wlzRuEFL+H07uX8KcxZ0PS4odM27S18Zzo=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796377064; v=1; x=1796981864; b=CiLEvRKiMVUN5QOp5zlU7ZnyUjEaFGQoGT2DtK13XeKmb7OzCwDK8YjWRPfWkLb3OyDqaLcW fllckUcMPJKg7JFX65nXMdxDllkRhq4U2nkV9FKXhHWESvgtWZWpihLP6huDm687F4TnvBv1ZGo FA7vJdJ9GTOAY17JrZPyPj5c= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 371cb120b40dccba; Fri, 04 Dec 2026 09:37:43 +0000 X-Mizu-Trace-ID: 371cb120b40dccba X-Migadu-Flow: FLOW_OUT Date: Fri, 4 Dec 2026 09:37:35 +0000 From: Hao Li To: "Garg, Shivank" Cc: "vbabka@kernel.org" , "harry@kernel.org" , "linux-mm@kvack.org" , "cl@gentwo.org" , "edumazet@kernel.org" , "pfalcato@suse.de" , "akpm@linux-foundation.org" , "surenb@google.com" , "Salunke, Hrushikesh" , "ming.lei@redhat.com" , "linux-kernel@vger.kernel.org" , "regressions@lists.linux.dev" , "Rao, Bharata Bhasker" , "roman.gushchin@linux.dev" , "rientjes@google.com" Subject: Re: [REGRESSION] slab: Redis loopback throughput drops 40% after the sheaves merge, list_lock contention Message-ID: References: <7c4f1dab201fbefbd318058cd9c7640b76af4d5b.camel@amd.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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