Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1011476rdh; Fri, 24 Nov 2023 03:26:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcXN6wonvRM4NhLNwSUWapG+U2Qtcusyo5CFKTCFXHdVaiO+jVp4PMycxCmfQlsvStzs6P X-Received: by 2002:a05:6a00:2da7:b0:6be:4789:97ba with SMTP id fb39-20020a056a002da700b006be478997bamr2443145pfb.3.1700825201541; Fri, 24 Nov 2023 03:26:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700825201; cv=none; d=google.com; s=arc-20160816; b=KDZZDf7XXLzhxlSca0LWpBLOqs4M9VXzJtwDi/M1lsORqIiWVIB9/BtLqGPuZB0bty N08MaoLPcvA5sOv1zQo0Egwt6MpHj+jTUjjkxMe/crLD6F88pnGlfLUUYb5pSauzL3X4 zq6Ogz473SDyVhc1Q1Yd65QJwQv8RIfgsBrupm9tXRKDUYObZn0BvdhDYalK6Y9en6ON K/5efCzjcTrphDZnMgcC8JxytrVwwslLsvr4mbstSbqHAXPik3hmNlxx0HRqYiwaerA/ EgbKmUzwdpVKPj7JdaGxqtTWP8qCkFalW66iMQp9OIED/Yv6GWIlNj+e1RqrKgWNiVDh rkug== 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; bh=4HFnnd7T3Jj4haAAd/yrxGweVzt/WmCq881aBqIrwdQ=; fh=KAIOiJjUZnHxzhGvGELkPU8TE29srxNrifwCsfXpyJ8=; b=uvU50qcDSNibBsOxYfzlwbzR4vp+z24qW6JtBN96nHAi5jwgmJSbpOcxT2N77UPNmc Bi1ySNhLoQvtGddKvVmqgJmez3vlr/XGpXd7ulyNioOaBaz54248AMNokb6RJVn25Y7l aP06/8UcFsOqVxItTqPgZHICokxI57paAGtePBaZdnF7I3A5DFVry4Gz9wgNepbWeq4h Chk81DUj1zbXrOzNfqosYTTe466zWBaE3rUHg/gCTiR+/n071MklKYc0UWxvak5Y/OVF edrmjsIgm2O9onjoFKABiN0N9Fd9O9bYVxQ85Xj/0n6H+h7LWeQIgb5B53AHMreM9+UH OyeA== ARC-Authentication-Results: i=1; mx.google.com; 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 b14-20020a65668e000000b005b8fb1da631si3328122pgw.897.2023.11.24.03.26.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 03:26:41 -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; 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 5885F80477B1; Fri, 24 Nov 2023 03:24:22 -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 S230320AbjKXLYL (ORCPT + 99 others); Fri, 24 Nov 2023 06:24:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbjKXLYJ (ORCPT ); Fri, 24 Nov 2023 06:24:09 -0500 X-Greylist: delayed 7056 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 24 Nov 2023 03:24:15 PST Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D662FD5A for ; Fri, 24 Nov 2023 03:24:15 -0800 (PST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104: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 CA73D1FD49; Fri, 24 Nov 2023 11:24:11 +0000 (UTC) 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 AD77613A98; Fri, 24 Nov 2023 11:24:11 +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 O5n8KduHYGV7DQAAD6G6ig (envelope-from ); Fri, 24 Nov 2023 11:24:11 +0000 Message-ID: <7512b350-4317-21a0-fab3-4101bc4d8f7a@suse.cz> Date: Fri, 24 Nov 2023 12:24:11 +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 v2] Documentation: kernel-parameters: remove slab_max_order and noaliencache Content-Language: en-US To: sxwjean@me.com, 42.hyeyoo@gmail.com, linux-mm@kvack.org Cc: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, roman.gushchin@linux.dev, corbet@lwn.net, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Xiongwei Song References: <20231122143603.85297-1-sxwjean@me.com> From: Vlastimil Babka In-Reply-To: <20231122143603.85297-1-sxwjean@me.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spamd-Bar: ++++++++++++++++++++ Authentication-Results: smtp-out2.suse.de; dkim=none; dmarc=none; spf=softfail (smtp-out2.suse.de: 2a07:de40:b281:104:10:150:64:97 is neither permitted nor denied by domain of vbabka@suse.cz) smtp.mailfrom=vbabka@suse.cz X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [20.99 / 50.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_SPAM(5.10)[100.00%]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_DN_SOME(0.00)[]; R_SPF_SOFTFAIL(4.60)[~all]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[]; FREEMAIL_TO(0.00)[me.com,gmail.com,kvack.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(2.20)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com,me.com]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(1.20)[suse.cz]; NEURAL_SPAM_SHORT(3.00)[1.000]; NEURAL_SPAM_LONG(3.50)[1.000]; RCPT_COUNT_TWELVE(0.00)[13]; DBL_BLOCKED_OPENRESOLVER(0.00)[windriver.com:email,me.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Score: 20.99 X-Rspamd-Queue-Id: CA73D1FD49 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,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]); Fri, 24 Nov 2023 03:24:23 -0800 (PST) On 11/22/23 15:36, sxwjean@me.com wrote: > From: Xiongwei Song > > Since slab allocator has already been removed. There is no users about > slab_max_order and noaliencache, so let's remove them. > > Signed-off-by: Xiongwei Song > --- > v2: Hyeonggon Yoo <42.hyeyoo@gmail.com> suggested that noaliencache should be > removed too. Here adding this change. The patch is based on [1]. > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux.git/log/?h=slab-remove-slab-v2r1 > > v1: https://lore.kernel.org/linux-mm/20231120091214.150502-1-sxwjean@me.com/T/#m55ebb45851bc86d650baf65dfe8296d33c5b1126 > --- > Documentation/admin-guide/kernel-parameters.txt | 10 ---------- > 1 file changed, 10 deletions(-) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index 65731b060e3f..d56a5beefe24 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -3740,10 +3740,6 @@ > no5lvl [X86-64,RISCV] Disable 5-level paging mode. Forces > kernel to use 4-level paging instead. > > - noaliencache [MM, NUMA, SLAB] Disables the allocation of alien > - caches in the slab allocator. Saves per-node memory, > - but will impact performance. No question about this one, can be deleted. > - > noalign [KNL,ARM] > > noaltinstr [S390] Disables alternative instructions patching > @@ -5887,12 +5883,6 @@ > own. > For more information see Documentation/mm/slub.rst. > > - slab_max_order= [MM, SLAB] > - Determines the maximum allowed order for slabs. > - A high setting may cause OOMs due to memory > - fragmentation. Defaults to 1 for systems with > - more than 32MB of RAM, 0 otherwise. I think here we should consider the long-term plan first. It's a bit unfortunate (in hindsight) SLUB brought its own prefix of parameters, even if some became interchangeable aliases later (slab/slub_nomerge), some not. I think it would be best to unify them, and consider the string "slub" an implementation detail of the general "slab allocator" term going forward. So what I'd propose is that we change all parameters to accept a "slab_$param" as a primary and documented name (and the description can contain just [MM] tag, no [SLAB] or [SLUB] needed), with "slub_$param" is also accepted as an alias where it exists today, and there's just a note that the slub_$param name is also accepted in the description of the canonical parameter, not in a separate description. Then maybe in a few years we can mark the old names as deprecated and start issuing low-key warnings (while still accepting them), and in 10 years maybe remove them completely. Thoughts? > - > slub_debug[=options[,slabs][;[options[,slabs]]...] [MM, SLUB] > Enabling slub_debug allows one to determine the > culprit if slab objects become corrupted. Enabling