From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F10F606A333 for ; Fri, 4 Dec 2026 09:37:49 +0000 (UTC) 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=ACaTqmJH Received: by kanga.kvack.org (Postfix) id 296256B05B2; Fri, 4 Dec 2026 04:37:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 247846B05B5; Fri, 4 Dec 2026 04:37:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 135486B05B6; Fri, 4 Dec 2026 04:37:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 9BEDA6B05B2 for ; Fri, 4 Dec 2026 04:37:47 -0500 (EST) Received: from smtpin23.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 20988C02CD for ; Fri, 4 Dec 2026 09:37:47 +0000 (UTC) X-FDA: 85505798574.23.A4A5231 Received: from mta1.migadu.com (out-100.mta1.migadu.com [95.215.58.100]) by imf18.hostedemail.com (Postfix) with ESMTP id 308281C0008 for ; Fri, 4 Dec 2026 09:37:44 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=ACaTqmJH; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf18.hostedemail.com: domain of hao.li@linux.dev designates 95.215.58.100 as permitted sender) smtp.mailfrom=hao.li@linux.dev ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1796377065; b=0uRDMz9z1b9HqyA6ojDbNAzrWWrVvA2f1H4KrJTcEY58XyUL8oj8udB0sLg9J+7pfJu49M 0z9QhJEnWb98ilmKkkDfniz3qhaXWzTb39qmXjdn46yUzztozQzwMpMRNjReKEajyLiqnA yDMqjqCFvx7JsnT8yFpHUWtAl4pJRRk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1796377065; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=uI2/6QSUQRW6l3fsS8lzkNQ+Fr2bBEP6WMA/r7zueh0=; b=JCcPgj8rP/dHKH21Udg1CDfTFxTIZEX1R7SscVWKzH9ZmmF1nQF2UwcJgpM87+CCZEl4Wu 20L8ehnDSnrJj37aYzPkWh64IcBFXZLGijzlbu7ngYc3QQ7mG1T46UJiIiMaM+5L/mTHhi ZnssKI21PqAZuvG/lsc8rtFsBROfR7g= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=ACaTqmJH; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf18.hostedemail.com: domain of hao.li@linux.dev designates 95.215.58.100 as permitted sender) smtp.mailfrom=hao.li@linux.dev X-Envelope-To: linux-mm@kvack.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=1796377063; v=1; x=1796981863; b=ACaTqmJHRKj7DWs9YJzZ4fjg1eHftx8EIlaleKBwpPAvU6RaLEiiXbIly+oGlSelce7qkCJs cY+Bpnz0bkBT4yin7+QHzeJwuihOkcRX5COIY4iJ7bYb+fNmfmlKMds8ZDEPcYt6CQ50HrQHPbX tc+VjKqhNP3HoJnr/nsMMP4g= X-Envelope-To: linux-mm@kvack.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-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7c4f1dab201fbefbd318058cd9c7640b76af4d5b.camel@amd.com> X-Stat-Signature: f96k9zi1rjmjz1i5dnci91zyxdrd16oy X-Spam-Status: No, score=-6.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Rspam-User: X-Rspamd-Queue-Id: 308281C0008 X-Rspamd-Server: rspam07 X-HE-Tag: 1796377064-923879 X-HE-Meta: U2FsdGVkX18qCvI0aLMmv9XQOFpruXnuocM7oB53Y0AZzFJwzpz4pWN6wFQkdV4xV5Cj4mPdAlAeEpD10xvP8lbNWoM+qOMVHentZdecxLtnx/a4RUE3ipbQ2gjQtBlZlwVZpN3A1G0yoC17xUSXe+faNuemzgWqzBWRSfcy4LpSwiK6fq/ucr3Kc3QfB9DxehdcBqSqCerm3FxDoA9PBaRxI8H/qQAuZVnxUL+RcrgaGQ5pEbRi0VGodDSwzSoO9vX/+OEpgSuWsR6nK4p7qoWQ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8NgBbbHaNqfReZmLettxt+0k/1zD47qoNKfxHa+ubBntq6MOdjT4qSf45n+n0zqE08mv92FJah698Vt0G5SsQJv0+msQw0Z6/43Vmfj3aAF8TznMzX+ohE3RTczFm+RX6c0h+CTV7+kdqO6W2wEu1xFqW7HaDipxYpVjyk/OHgX0kVyUr3WkP88xTel1wnHcBvpG78U54yozPap Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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