Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp235696rdf; Tue, 21 Nov 2023 00:44:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3WzGEBJe87+fAOgiaZ/7SmXWgAVAYq9Phe5DNMdjn4wQXsUSat1m7EKVF92zYiwV3H++a X-Received: by 2002:a17:90b:1e06:b0:280:35d:4532 with SMTP id pg6-20020a17090b1e0600b00280035d4532mr10393512pjb.14.1700556280345; Tue, 21 Nov 2023 00:44:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700556280; cv=none; d=google.com; s=arc-20160816; b=gudMn0EPZYAit76ISzmBIfsT+Dwu2/oXOPRqFXK5ba6nLmLudRQjdWZvASj/quGDDF 00nmkpC6U2rIEkOwgp1uQlE3Iy9wsrIAwZnKbu/bSrXo4zwQGVA5YTsxB1i9JjAxhcnR 90aWenovLY5TxjpH0W8g5g7NYkaaZJg1TA8h7ODeVHQwHkMDq1iqCarqh5kyt4TmSd3p t5BEIWXpVHV6bDtUuYCHu4Ti8Q/j26s8PyXKqonHqWpkBXHCIeVLyaR7Psbru/L82Ivf EUxgdI8gOidh2ofCewgOOe4Pf4YpHkrjJxRjdG2camlFlrG2VukwbJMwF/zurtflCxFS Y3Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=G/YvICvSB8bSzHc8/0NoSBpZ4nib8LsXMIC7ezMPecg=; fh=gtU+P30sSK7GSw5ONRncG7k8hDE711fw0YFuiHVbshQ=; b=Ncm7F1gcKtxbg6bsQeJdNAIBuXML+87/GHhjqmwfrirP5aTb6HcMBhTap8jNRcMFue szZqr3gAfI5ccmxm9m/y50aFeo7pOGC7CWGN6eDBriu3TLLKOy7DKg5x5oC4Mo9mpAiK Tq/TTIkafRRMlDuySTv9YvObNniYBeDyCixHP9+Nzhgq6HjfJ2jSOR0u9xBOwNcSi5OU WkD9t9dY7u85i0zVapn6z/3wacnbRlqcqRzVOzo8tJxHoWaI675Qw9LPLX0eK3CWchA3 KRAtAN+ZoQTkaSN/tNwY06pImfhVMOgTiIR7SgmdeJ1O5Zj5Rn/kgSIgJaylBPJfHhox RMZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FxNRDpR3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ga20-20020a17090b039400b0026d41496190si12339916pjb.85.2023.11.21.00.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 00:44:40 -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=@gmail.com header.s=20230601 header.b=FxNRDpR3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B6FC3802F0BF; Tue, 21 Nov 2023 00:44:37 -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 S229514AbjKUIoa (ORCPT + 99 others); Tue, 21 Nov 2023 03:44:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjKUIo3 (ORCPT ); Tue, 21 Nov 2023 03:44:29 -0500 Received: from mail-ua1-x92e.google.com (mail-ua1-x92e.google.com [IPv6:2607:f8b0:4864:20::92e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ABEDBD; Tue, 21 Nov 2023 00:44:26 -0800 (PST) Received: by mail-ua1-x92e.google.com with SMTP id a1e0cc1a2514c-7c40227e007so409797241.3; Tue, 21 Nov 2023 00:44:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700556265; x=1701161065; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=G/YvICvSB8bSzHc8/0NoSBpZ4nib8LsXMIC7ezMPecg=; b=FxNRDpR3OJ6xc/shi+9DExiDW22eYxxiEAE5ELA6C3FTYqvazSz2+XLGNfeu1EycEd Q/9t3mHQ3+Zz9shtBElOlDDgfow1EKd4D7OmPX/qiDwEHWeQaqVBmmYRPV3inXim2pxt zPEHQawsFrUzH18gh5eOcbE2GV7ylOHshEK/NnVJZGQAuZLQ9xPMF7ZiX72eK+EzBjND FqKudoWS3rTYvotQhMS7ETLyGT8Mf0Y+fTL0B8v93qt0Ami+bket1ewcRF6k97qEE4Lk Zc2wvnh8LPvzj0B1NBq/j3LVKQ/HgGotQ0hRfWpusst9YrDFMGRw8QvglZR7HG7AbOlB n7cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700556265; x=1701161065; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G/YvICvSB8bSzHc8/0NoSBpZ4nib8LsXMIC7ezMPecg=; b=OEyuMZJbUVgXZNFTdL+AALhH2DtAqAtS3d0j8wyPjLAuxzjvqSJpFlx70LvC/kLoxQ sKnKFn7Baftb218ctwDuWqoltdr83l2U0/BAZyMN8vlHHV0kAEr9wYjzhBt6lOJGc6db fNptfBH8TENDmY/5CF84cUDzaq+lZfD/ReHuRT0aQbvKDDleOVGUCQv+7HNOn1HdfhMz s3zYvByhqp+wQHw373sjvxresXLQpw8lWYZYxeACfTdQyp10nye9+im3wY/swI6529gK ZGnjk3U+3/2e3bEcOkzx7orpyOeDiR7rXPdbP6CN7t2LAQFxEewpza6nyvFvGpEv1Mgn 1y8Q== X-Gm-Message-State: AOJu0Yy01pu002XJeac3ALQR1k9J9fZlYWnFNBEjB5yBQfpEp1ZvFOwn hWsgcyPkv4xGjHWP/2jUHwk3dbW3GLk6s9osneQ= X-Received: by 2002:a67:edca:0:b0:462:760a:443b with SMTP id e10-20020a67edca000000b00462760a443bmr5612238vsp.2.1700556264956; Tue, 21 Nov 2023 00:44:24 -0800 (PST) MIME-Version: 1.0 References: <20231120091214.150502-1-sxwjean@me.com> <20231120091214.150502-3-sxwjean@me.com> In-Reply-To: <20231120091214.150502-3-sxwjean@me.com> From: Hyeonggon Yoo <42.hyeyoo@gmail.com> Date: Tue, 21 Nov 2023 17:44:13 +0900 Message-ID: Subject: Re: [PATCH 2/4] mm/slab: remove slab_nomrege and slab_merge To: sxwjean@me.com Cc: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, vbabka@suse.cz, roman.gushchin@linux.dev, corbet@lwn.net, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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]); Tue, 21 Nov 2023 00:44:37 -0800 (PST) On Mon, Nov 20, 2023 at 6:12=E2=80=AFPM wrote: > > From: Xiongwei Song > > Since slab allocatoer has already been removed, so we should also remove > the related parameters. And change the global flag from slab_nomerge > to slub_nomerge. No, kernel parameters should be changed only in a backward-compatible way (if possible) Before slab merging was supported in SLAB, only SLUB supported it. After commit 423c929cbbec ("mm/slab_common: commonize slab merge logic"), u= sing slab_[no]merge parameters for CONFIG_SLUB builds became legal. I think what the documentation says is "slab_[no]merge enables or disables slab merging and slub_[no]merge remain supported only for backward compatibility" > > Signed-off-by: Xiongwei Song > --- > Documentation/admin-guide/kernel-parameters.txt | 11 ++--------- > mm/Kconfig | 2 +- > mm/slab_common.c | 13 +++++-------- > 3 files changed, 8 insertions(+), 18 deletions(-) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentat= ion/admin-guide/kernel-parameters.txt > index c7709a11f8ce..afca9ff7c9f0 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -5870,11 +5870,11 @@ > > slram=3D [HW,MTD] > > - slab_merge [MM] > + slub_merge [MM] > Enable merging of slabs with similar size when th= e > kernel is built without CONFIG_SLAB_MERGE_DEFAULT= . > > - slab_nomerge [MM] > + slub_nomerge [MM] > Disable merging of slabs with similar size. May b= e > necessary if there is some reason to distinguish > allocs to different slabs, especially in hardened > @@ -5915,13 +5915,6 @@ > lower than slub_max_order. > For more information see Documentation/mm/slub.rs= t. > > - slub_merge [MM, SLUB] > - Same with slab_merge. > - > - slub_nomerge [MM, SLUB] > - Same with slab_nomerge. This is supported for leg= acy. > - See slab_nomerge for more information. > - > smart2=3D [HW] > Format: [,[,...,]]