Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp268194rdf; Tue, 21 Nov 2023 02:03:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFiuvRiLzk4Kt3BJRRlwSIXPz17ixgyKirtznKL8EQ9bMBEHummjm55l5wpOT3bOkKlxFyz X-Received: by 2002:a17:903:2304:b0:1cc:bfb4:2dca with SMTP id d4-20020a170903230400b001ccbfb42dcamr10634329plh.6.1700561003207; Tue, 21 Nov 2023 02:03:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700561003; cv=none; d=google.com; s=arc-20160816; b=NX1l9qPTUy6wVAUmDhYtflB/MWa9mSODk/dWElgv4gpLGRC4EsT0oVqoZ0p/85UFRc B5gX9TDFgtyfzHWXQozZeFz3GTYUz8lBM+455VEQwX0svlYBcCWLCaL3Nt7kRH0MT1l3 aYYyq734x5/PMN+cX2aGichguSVgP+YniXZucg1kHAzLKz2uX7rz1MMkoWzlNeliV+I1 XZIDGZ9ot03DHG1aoygb+rKM9dNuizbLZhOrfq39SjzNFdfgsEIqc98r9gCJHE0qtoR4 lS8OyHjLW2gwPLLE/kEZsPJxqIkedUB1PMlpTbZirZ8m1PfTHJW+zRuv0XwxxWIRkFcu IbXQ== 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=E6qoyWwClhugI9VZwP6suNYgWlewOSxpRzOpSziEEZA=; fh=jpKXIUqoYUQe7yLzdNHR05iysD4C/JSn03PB+s3RSEA=; b=FBtvNayPX8iQHOqIqH6CYPJzE7xMcH4itOCv0ioEDvv1L0MYHrK2uRUsQFMWIFritr j+GT9OrOAv2WYaEkQYMnsQSM1/qcG80qHeZLZVrIvTOdLUwl3av6ac2fiI6O+Y1hsrXl tK2GlzUiIH+QQSeMgttVm8XXBJAyHm6wg8F1rJhGwk+Cruqhgo5KfnlmsIY/2q5teaqu ZUZVbA7rnYBy16TtO8Dgx2YM1r95ejCz6GRvcBYvt5NnhaJb+RP7rrgXUzmllDefllLj wwhvQJNCda4Upcd18vxzXszWNdt0GoWenYDfllKQ2VTP3n4TqPZYP94wa81PHP3XgI7C VxMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=GtHeePB6; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id q20-20020a170902789400b001bb792749a2si9356580pll.146.2023.11.21.02.03.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:03:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=GtHeePB6; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2EC79803C6A5; Tue, 21 Nov 2023 02:03:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234178AbjKUKDM (ORCPT + 99 others); Tue, 21 Nov 2023 05:03:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234189AbjKUKDK (ORCPT ); Tue, 21 Nov 2023 05:03:10 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01E68B9; Tue, 21 Nov 2023 02:03:06 -0800 (PST) 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-out1.suse.de (Postfix) with ESMTPS id 62A3D2189D; Tue, 21 Nov 2023 10:03:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1700560985; 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=E6qoyWwClhugI9VZwP6suNYgWlewOSxpRzOpSziEEZA=; b=GtHeePB6BAvXazbBiyL1UhF0JAInm19ujuhcw5kw+/Qvx1GNMz4oUpUo1s/sVBfGLgA1It jJU9QZUXN+/Z9jVWwKQEnu/4Ys/ubA7LGk8g9CwJ7PIafqdZNpYWM4c384UA4EMWtpp1p1 MvztAt2ayDrSs7n/uaTn1dY1jxW/Lpg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1700560985; 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=E6qoyWwClhugI9VZwP6suNYgWlewOSxpRzOpSziEEZA=; b=G+BlnnucPVfo1qGtny6AHeirbbuuvmiz0hwFHEYdV/WWHTgyQboeY9pZe0G/1jL52EAm+Y /Gm5nhaq2+vidiDQ== 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 31A5E138E3; Tue, 21 Nov 2023 10:03:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WSFiC1mAXGVgPAAAMHmgww (envelope-from ); Tue, 21 Nov 2023 10:03:05 +0000 Message-ID: Date: Tue, 21 Nov 2023 11:03:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 4/4] mm/slab: move slab merge from slab_common.c to slub.c Content-Language: en-US To: Hyeonggon Yoo <42.hyeyoo@gmail.com>, sxwjean@me.com Cc: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, roman.gushchin@linux.dev, corbet@lwn.net, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231120091214.150502-1-sxwjean@me.com> <20231120091214.150502-5-sxwjean@me.com> From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: 0.17 X-Spamd-Result: default: False [0.17 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com,me.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; BAYES_HAM(-0.03)[55.48%]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[11]; FREEMAIL_TO(0.00)[gmail.com,me.com]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Status: No, score=-2.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 21 Nov 2023 02:03:20 -0800 (PST) On 11/21/23 09:54, Hyeonggon Yoo wrote: > On Mon, Nov 20, 2023 at 6:13 PM wrote: >> >> From: Xiongwei Song >> >> Since slab allocator has been removed. There is no users about slab >> merge except slub. This commit is almost to revert >> commit 423c929cbbec ("mm/slab_common: commonize slab merge logic"). >> >> Also change all prefix of slab merge related functions, variables and >> definitions from "slab/SLAB" to"slub/SLUB". > > Could you please elaborate a little bit? > I am not sure if I understand what the last two patches of this series > are useful for. > > - Why rename variable/function/macro names? > - Why move merge related functions from slab_common.c to slub.c? In my series I have moved functions that were part of allocation/free hot paths as there should be performance benefits if they are all in the same compilation unit. > (I mean merging slab_common.c and slub.c into single file might make sense > but why move only some parts of one into the other?) OTOH slub.c becomes quite big, so I think it would make sense to not merge mm/slab_common.c fully. The non-hot code that's handling e.g. the caches creation and management, such as what this patch is moving, could certainly stay away from mm/slub.c. We could just pick a more descriptive name for slab_common.c. I'd even investigate if more parts of slub.c could be split out (to a new file/files) without compromising the hot paths, i.e. sysfs, debugging etc.