Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5239414rdb; Wed, 13 Dec 2023 03:11:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0yEkBy1npMVbyvqvlYUlSKPjX7CfYpYFZ94OGo9LdSqv/usJr37hNZDIAmYT6vsrsfvBx X-Received: by 2002:a05:6358:63a9:b0:170:cddf:4fec with SMTP id k41-20020a05635863a900b00170cddf4fecmr5878488rwh.52.1702465867108; Wed, 13 Dec 2023 03:11:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702465867; cv=none; d=google.com; s=arc-20160816; b=JKooNhFHFiPOERXU9+BiLO946+8+z5q/fnb0Xsusvu41Rb7uK1ESBlFOxhrYtgvtU6 x6XzcAzkJXQXvtAVolg73E0kKJFWrfaKk+sJKwtZr9UKXtgJsztQ7zvvvsEpk2vJ3IS8 TY3a+V3/LvA/uHIF4XSSriF6xMo3JUp60MlfF0NFAitqXhd3QgP12lCAy6h4KPhOs7Uh TqpmIrHRJMSxQKXlBQF4ta27TYumGN9NSoTu0Yd54Qws5agtGvoGBn3Ffk257XA6x/Ga WWNGPiAEVn12YheEHjaEA9rAC2rh9/sc7mgZpHbACuZDo/WhzAtJwGBpEQ0RUgEynGTb nMGw== 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:dkim-signature :dkim-signature; bh=GqMNj7NL92GZv31m2vvolJIawNqiNIRw7YBZL/+AVUQ=; fh=RRMEA6HtrFyK+KX2zE2BHmkpHCuRKsbIV7o7LEdqg84=; b=NIhmCL8efwKWWZyurTzJcXUsYY+Yy29YtTjidx8KCBSHCV49cZjqlBnrj5y8rm2sTm nFFp94xmYmtxGvWuDFoA+kpkmMlCMW3VJTacCQ1bckclqzD/wza+HVz9GgEBTXh4VBTy 2RJrpnQVTujVh0B1VwLEomiY50EYq3WUUbILbYutY2amMz/S5bUiqiPRN7Kx/ms88os/ ANGyEt20a/cenojp2EpJMDPoXpnuqm0YYshql60Jmfx4hMO4Pcv9sriEl2a4wnjOm8O9 +Q1QZcP4onp8IIvYx67cmmyfNam1zxGFuBBaLTk4jzqrBPd10nNyqlWv2a6X2SroGlGU iBgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="VSB/pBen"; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=LsYDTbTy; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n4-20020a654504000000b005c69365abbbsi9236368pgq.318.2023.12.13.03.11.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 03:11:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="VSB/pBen"; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=LsYDTbTy; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 5DE1F8077FBD; Wed, 13 Dec 2023 03:10:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378614AbjLMLKA (ORCPT + 99 others); Wed, 13 Dec 2023 06:10:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378616AbjLMLJ6 (ORCPT ); Wed, 13 Dec 2023 06:09:58 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71032DB; Wed, 13 Dec 2023 03:10:04 -0800 (PST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id DB8D122338; Wed, 13 Dec 2023 11:10:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1702465803; 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=GqMNj7NL92GZv31m2vvolJIawNqiNIRw7YBZL/+AVUQ=; b=VSB/pBenRGO5wNXCiTEwN7bRJCCLdK503RnGh6MsPsSX413eQjivqsL4QTm1DCAQRjnTUb tOTo4nxzzy7OTQ3KslGfuniqY6ZYCVceAb0/7adBSf6s77S3NapDx+N2DjX0vngHqdrg+g gAgwwQxSVdFctMHNVhNT7cXvXmCrRwA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1702465803; 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=GqMNj7NL92GZv31m2vvolJIawNqiNIRw7YBZL/+AVUQ=; b=0e6iPQ0ODxEOGKSD1cuh0pgTO0oSdtC+BFK1WCvLBS1Pk9nZRNZLAmp2RZreIyZtG1rUIl bdRaEzITD6Zl5YDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1702465802; 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=GqMNj7NL92GZv31m2vvolJIawNqiNIRw7YBZL/+AVUQ=; b=LsYDTbTyC1Zw53Mw6ih9EuDrjtULfyGmMd1Cw0rG1FCsEekYQ4gkWsvMyGRU0neK4lfZ6r 6j1A/azOe0eq1CESVAyYtPQ7Ncz0kp+XmIVU6fYviYCSjW7RakLApZSDLhLD/nU7sHATio exY3LcPZ0Dru3C6hAs6eIXu3QVTraa0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1702465802; 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=GqMNj7NL92GZv31m2vvolJIawNqiNIRw7YBZL/+AVUQ=; b=W9wio/VbkuEoqaEGV64rwM3baZsgcc1NHrvETuT8uDWSrVc8uqMV6VZ+uuGA/DVkfUbnPy y4BgWYq3WxMDkrAw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id B8B2C1377F; Wed, 13 Dec 2023 11:10:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id DPqyLAqReWXwYwAAD6G6ig (envelope-from ); Wed, 13 Dec 2023 11:10:02 +0000 Message-ID: <73359971-25bc-8ce9-3dd1-b3124c18628b@suse.cz> Date: Wed, 13 Dec 2023 12:10:02 +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: [RFC PATCH v2 2/3] mm/slub: unify all sl[au]b parameters with "slab_$param" Content-Language: en-US To: "Song, Xiongwei" , "sxwjean@me.com" , "42.hyeyoo@gmail.com" <42.hyeyoo@gmail.com>, "cl@linux.com" , "linux-mm@kvack.org" Cc: "penberg@kernel.org" , "rientjes@google.com" , "iamjoonsoo.kim@lge.com" , "roman.gushchin@linux.dev" , "corbet@lwn.net" , "keescook@chromium.org" , "arnd@arndb.de" , "akpm@linux-foundation.org" , "gregkh@linuxfoundation.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20231203001501.126339-1-sxwjean@me.com> <20231203001501.126339-3-sxwjean@me.com> <75a71276-dff8-ad3a-d238-fcfa3ab39413@suse.cz> From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Level: X-Spam-Score: -0.60 Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -0.80 X-Spamd-Result: default: False [-0.80 / 50.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(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]; SUBJECT_HAS_CURRENCY(1.00)[]; MID_RHS_MATCH_FROM(0.00)[]; R_RATELIMIT(0.00)[to_ip_from(RL8m16cxuawb3bjqy6gedmikd6)]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; BAYES_HAM(-3.00)[100.00%]; RCPT_COUNT_TWELVE(0.00)[16]; DBL_BLOCKED_OPENRESOLVER(0.00)[linux.dev:email,suse.cz:email]; FREEMAIL_TO(0.00)[windriver.com,me.com,gmail.com,linux.com,kvack.org]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Status: No, score=-1.6 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 13 Dec 2023 03:10:23 -0800 (PST) On 12/9/23 02:02, Song, Xiongwei wrote: > > >> -----Original Message----- >> From: Vlastimil Babka >> Sent: Thursday, December 7, 2023 12:15 AM >> To: sxwjean@me.com; 42.hyeyoo@gmail.com; cl@linux.com; linux-mm@kvack.org >> Cc: penberg@kernel.org; rientjes@google.com; iamjoonsoo.kim@lge.com; >> roman.gushchin@linux.dev; corbet@lwn.net; keescook@chromium.org; arnd@arndb.de; >> akpm@linux-foundation.org; gregkh@linuxfoundation.org; linux-doc@vger.kernel.org; linux- >> kernel@vger.kernel.org; Song, Xiongwei >> Subject: Re: [RFC PATCH v2 2/3] mm/slub: unify all sl[au]b parameters with "slab_$param" >> >> >> On 12/3/23 01:15, sxwjean@me.com wrote: >> > From: Xiongwei Song >> > >> > Since the SLAB allocator has been removed, so we need to clean up the >> >> "we can clean up", as we don't really "need" >> >> > sl[au]b_$params. However, the "slab/SLAB" terms should be keep for >> > long-term rather than "slub/SLUB". Hence, we should use "slab_$param" >> >> I'd phrase it: With only one slab allocator left, it's better to use the >> generic "slab" term instead of "slub" which is an implementation detail. >> Hence ... >> >> > as the primary prefix, which is pointed out by Vlastimil Babka. For more >> > information please see [1]. >> > >> > This patch is changing the following slab parameters >> > - slub_max_order >> > - slub_min_order >> > - slub_min_objects >> > - slub_debug >> > to >> > - slab_max_order >> > - slab_min_order >> > - slab_min_objects >> > - slab_debug >> > as the primary slab parameters in >> > Documentation/admin-guide/kernel-parameters.txt and source, and rename all >> > setup functions of them too. Meanwhile, "slub_$params" can also be passed >> >> Not sure about renaming the code at this point, I would just rename the >> user-visible parameters and their documentation and any comment that refers >> to the parameters. Functions and variables can come later as part of wider >> slub/slab change if we decide to do so? > > I think we can rename these global variables: > slub_max_order, > slub_min_order, > slub_min_objects, > slub_debug > , which are used to save values that are from parameters. Because some comments > are referring to parameters, the others are referring to these global variables, which > looks inconsistent, e.g. slub_debug/slab_debug. Is it acceptable to make them > consistent? Yeah, as an additional patch. Thanks.