Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1813211rdb; Sat, 2 Dec 2023 10:12:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhLYmnNBulzHkGSOkBK2SGZ53sxDWw+xpGAl+KEQzJCLBrnUWPHXpGPq8aCmNV9iqo+9/i X-Received: by 2002:a05:6871:4598:b0:1fb:75a:de7f with SMTP id nl24-20020a056871459800b001fb075ade7fmr2237105oab.109.1701540756959; Sat, 02 Dec 2023 10:12:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701540756; cv=none; d=google.com; s=arc-20160816; b=nqgXIqWrRz4UsqjRce8/rT2zBknPzPgoJd2dQqIT8q8y5kowmHR3AjmfeiuGJJdxeo JNB4WOdNLNBV/UgcAd/KiyUasLQRf09ISmmZSQaNDFcZO0tfL+4W9H1xYNvncD6+MyVL AijyZJIZNI4FIKfFjGEgbdsGECYbKLTCWXOuKSnAMFn9VjnlwRgLG0WeM1nyNpnQA20X 3nNrUzl2OIxZHBIpOalu/ZRsiQ8D0m/3zBFfTwuG3PkmteO56RDbRSM3OLKlh5bE6qrK u4SGN2w9L2vThZusSashDqVvEEtGdziCXzRyKKq/SadqkaUyo9E0yqWLb0exN0B99ueV RyMQ== 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=YKKElGndb6jN6rikp3anJK9MKgurw4EhN7S3f9KMiUc=; fh=Z7MmXgjIh6442+wo67JXiAKs56DLi43l/TOZTlcMRwc=; b=j+PZpqMzt0xRk31sRGtj0DW4N5UGCXgVj2D0ynW7wtd7SEx5GeaPLHMTzEzJ7nAn4c ZJdhIeM60NpuMrfstj5TdeZomjKx5za3w38gb9kAvJQUIHdNWxcBvMptUr2qPdctctYT DYuXRYNJ/Ckc6QOAVX1E+m5oiesk9jtqLVa6e1LBL/22+x+giqjY74t2P5n6EMcLwiIY 3Sj6U/4sLJZ2RZedzFdmxex6Mm0s4yeY6aLpZUYyVm3lTKeaUpmG7Pjll69MwvSStRBr LVJgBzmyzsubCxk+TULC0UcQGyh7N+UqCx3JbzgZK4Ve9L0r/jBW3m/h9AUtfjDakzjI atYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ByOOKiBB; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id g8-20020a17090a9b8800b00285105c440esi5341867pjp.120.2023.12.02.10.12.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 10:12:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ByOOKiBB; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id CAAA78061B4C; Sat, 2 Dec 2023 10:12:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229800AbjLBSMX (ORCPT + 99 others); Sat, 2 Dec 2023 13:12:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLBSMW (ORCPT ); Sat, 2 Dec 2023 13:12:22 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21EB5119; Sat, 2 Dec 2023 10:12:28 -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-out2.suse.de (Postfix) with ESMTPS id 3B0031FC84; Sat, 2 Dec 2023 18:12:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1701540746; 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=YKKElGndb6jN6rikp3anJK9MKgurw4EhN7S3f9KMiUc=; b=ByOOKiBBXs+G3CgixWcwoXU3Hyu4zmCk9TmLBfsVSk8pBxGedDHCd6lkkTPuMpDKhu2LL1 PnSG1s0PGnmUKFe2qe+W6bc7m+wDUpoTal8ywk+TjsMQwgijTwlcRD1xyD8LcbcoRCBmz2 NSlXi/lyMNuxajN8qNKmZoot0fsCdCo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1701540746; 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=YKKElGndb6jN6rikp3anJK9MKgurw4EhN7S3f9KMiUc=; b=1zhMsnvgSMeU8la4Atp2i3gCjqg1uEtRtc+ehyUAiGzJiqir6Zia+chgwKpS1vDnA1TI6p Tc1fKsaOEuor/8BA== 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 07E3513808; Sat, 2 Dec 2023 18:12:26 +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 A+4tAYpza2WtbAAAD6G6ig (envelope-from ); Sat, 02 Dec 2023 18:12:26 +0000 Message-ID: <67b155dd-3731-489e-c3bd-333cb7e90801@suse.cz> Date: Sat, 2 Dec 2023 19:12:25 +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 2/3] mm/slub: unify all sl[au]b parameters with "slab_$param" Content-Language: en-US To: "Song, Xiongwei" , Kees Cook , "sxwjean@me.com" Cc: "42.hyeyoo@gmail.com" <42.hyeyoo@gmail.com>, "cl@linux.com" , "linux-mm@kvack.org" , "penberg@kernel.org" , "rientjes@google.com" , "iamjoonsoo.kim@lge.com" , "roman.gushchin@linux.dev" , "corbet@lwn.net" , "arnd@arndb.de" , "akpm@linux-foundation.org" , "gregkh@linuxfoundation.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20231201031505.286117-1-sxwjean@me.com> <20231201031505.286117-3-sxwjean@me.com> <202312010945.7C5DB1FBB@keescook> From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spamd-Result: default: False [-1.80 / 50.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; SUBJECT_HAS_CURRENCY(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_SHORT(-0.20)[-1.000]; FREEMAIL_TO(0.00)[windriver.com,chromium.org,me.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; BAYES_HAM(-3.00)[100.00%]; ARC_NA(0.00)[]; FROM_HAS_DN(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]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; RCPT_COUNT_TWELVE(0.00)[16]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FREEMAIL_CC(0.00)[gmail.com,linux.com,kvack.org,kernel.org,google.com,lge.com,linux.dev,lwn.net,arndb.de,linux-foundation.org,linuxfoundation.org,vger.kernel.org]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Score: -1.80 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,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 02 Dec 2023 10:12:35 -0800 (PST) On 12/2/23 05:23, Song, Xiongwei wrote: > > >> -----Original Message----- >> From: Kees Cook >> Sent: Saturday, December 2, 2023 1:48 AM >> To: sxwjean@me.com >> Cc: vbabka@suse.cz; 42.hyeyoo@gmail.com; cl@linux.com; linux-mm@kvack.org; >> penberg@kernel.org; rientjes@google.com; iamjoonsoo.kim@lge.com; >> roman.gushchin@linux.dev; corbet@lwn.net; 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 2/3] mm/slub: unify all sl[au]b parameters with "slab_$param" >> >> CAUTION: This email comes from a non Wind River email account! >> Do not click links or open attachments unless you recognize the sender and know the >> content is safe. >> >> On Fri, Dec 01, 2023 at 11:15:04AM +0800, sxwjean@me.com wrote: >> > From: Xiongwei Song >> > >> > Since the SLAB allocator has been removed, so we need to clean up the >> > 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" >> > 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 >> > by command line, which is to keep backward compatibility. Also mark all >> > "slub_$params" as legacy. >> >> *If* we do this, I think the old names need to be recognized, perhaps Yes, they are already recognized by the patch. >> with a boot pr_warn() about their deprecation/renaming for several >> releases (likely across LTSes). I think it's not a good idea to >> wholesale rename these with no warning. That's going to cause a lot of >> surprises and broken userspace... > > Oh, yes, that's a good idea. Will update. I'd wait for a while with the warnings, no need to rush. > Regards, > Xiongwei >> >> -- >> Kees Cook