Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4608489rwb; Tue, 8 Aug 2023 10:54:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuuHiLJEzbNOpn3R5qp5rzhVWeeCQIhQWv0BwzzlYU7VD0yOKFKGsBPjUWMtgi5LoBscIA X-Received: by 2002:a05:6a20:8f0f:b0:137:2f8c:fab0 with SMTP id b15-20020a056a208f0f00b001372f8cfab0mr242763pzk.49.1691517275599; Tue, 08 Aug 2023 10:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691517275; cv=none; d=google.com; s=arc-20160816; b=sR9DMEY9GCBI6uKxIMuGSt9ryL9ZU/1zl9RpgH9yFGE6dcjwRF9nvx09/Fx+szX6FZ 5DP1AtqUm1PxBC7Lckilmm9pS4vVW0C/tFzsX/w+87ugHIPR6Ip/Dgxi5Xic5uJ2Uuvg P6cOvzUhN3j2xLak4mHjsxlKK0wQLiMIV61ILivqNcd+FwUkvzWyP3uPx7SOinDTo9fW mb6D93avx1eeGAmYAudp6aEYiX5JX6u/liy7gnmwrDmlnWHGWf+HIoM4VAc3ZNbxVMZB HlLCUWyiAlGr11vgSGxn48dEUsL5ljb4LqTMAQDFog68e8W5KnjAzGyQ2swcuP+JwQz7 AKPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=tv+ZghxAfCxLOqZPv3CyvrkPVy+sfVKBpO+7ooghzNk=; fh=BrnPW6UMnlFCF6b9xr/Tc3qPn2+c4jNFTltkB43sejI=; b=iOUJtq50OfO1V6Yd/uC9GxRplLjWRZHBHfdkk4Lg7R7Kgo9BNOXrlHL6OxGaS5JXGw KRsMEXbUn+c/IHd7zDp3SxWX3nPHPG+pUb6aoSX3M6vBRaRLCSRTUzh8wgoxBsEBZFvI mGk69nspkAtmRhgCy+M/+uFkurlWG67iqORCfzUQW+4waGD0UsRoJLaRZkX4cXqQdS5Y U4dtdHZDxqMXKC/kTGHl3XVMWRl9kIEVm2g26sfklhaoEeE9jww2Cy/DEVif5DMtrELU hP/vpuN5hlVmkw+9UpsJNptLrj5tBuEPerlknyL8m0MVl6qo6njbPxg1JHe9q7Q7THLJ FMqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=zmsfjY6M; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=KWaTPpkp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o13-20020a635d4d000000b00563ef54582bsi7590789pgm.105.2023.08.08.10.54.19; Tue, 08 Aug 2023 10:54:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=zmsfjY6M; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=KWaTPpkp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232374AbjHHQ5T (ORCPT + 99 others); Tue, 8 Aug 2023 12:57:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233245AbjHHQ4n (ORCPT ); Tue, 8 Aug 2023 12:56:43 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15D2BA286 for ; Tue, 8 Aug 2023 08:59:55 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 837582031A; Tue, 8 Aug 2023 09:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1691488750; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tv+ZghxAfCxLOqZPv3CyvrkPVy+sfVKBpO+7ooghzNk=; b=zmsfjY6MRT3flhWagijVnhr8jPGbN3zAgkpJOfcsB4bcaAR7mhSQRwNNq6n+ky5zdSzqQ+ yumoGduk17gLNstsul9Ieau2UP+QMgym7MBEws4DCxT2VNx4275QZxd97z80ftLG+SsHTr GBn20N5Wlc8XSE3UfXVhtUHkLvb2BdQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1691488750; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tv+ZghxAfCxLOqZPv3CyvrkPVy+sfVKBpO+7ooghzNk=; b=KWaTPpkpsC9NB1tTzYPgMjlapotcodSopYQoVZ0P7r4c7NN+Xny4dVC8VbjSvYXtiWj2YY iopgwM1rVG4IlICw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 38A2113451; Tue, 8 Aug 2023 09:59:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id pPQqDe4R0mT/JwAAMHmgww (envelope-from ); Tue, 08 Aug 2023 09:59:10 +0000 Message-ID: Date: Tue, 8 Aug 2023 11:59:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [RFC 2/2] mm/slub: prefer NUMA locality over slight memory saving on NUMA machines Content-Language: en-US To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: Christoph Lameter , Pekka Enberg , Joonsoo Kim , David Rientjes , Andrew Morton , Roman Gushchin , Feng Tang , "Sang, Oliver" , Jay Patel , Binder Makin , aneesh.kumar@linux.ibm.com, tsahu@linux.ibm.com, piyushs@linux.ibm.com, fengwei.yin@intel.com, ying.huang@intel.com, lkp , "oe-lkp@lists.linux.dev" , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20230723190906.4082646-1-42.hyeyoo@gmail.com> <20230723190906.4082646-3-42.hyeyoo@gmail.com> <1f88aff2-8027-1020-71b2-6a6528f82207@suse.cz> From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/7/23 10:39, Hyeonggon Yoo wrote: > On Thu, Aug 3, 2023 at 11:54 PM Vlastimil Babka wrote: >> > > Thank you for looking at it! > > Yeah, it was a PoC for what I thought "oh, it might be useful" > and definitely I will try to measure it. > >> We could also postpone this until we have tried the percpu arrays >> improvements discussed at LSF/MM. > > Possibly, but can you please share your plans/opinions on it? Here's the very first attempt :) https://lore.kernel.org/linux-mm/20230808095342.12637-7-vbabka@suse.cz/ > I think one possible way is simply to allow the cpu freelist to be > mixed by objects from different slabs I didn't try that way, might be much trickier than it looks. > if we want to minimize changes, Or introduce a per cpu array similar > to what SLAB does now. Yes. > And one thing I'm having difficulty understanding is - what is the > mind behind/or impact of managing objects > on a slab basis, other than avoiding array queues in 2007? "The mind" is Christoph's so I'll leave that question to him :)