Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1935869rdb; Sat, 2 Dec 2023 16:16:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFv+7kIW03hwVMp4H+1PAaaPJnmds3bHzlk3A7Gj+tpZ4YAycOZ1SUNotyxq/PZUbs9W5E/ X-Received: by 2002:a9d:5e88:0:b0:6d8:50f8:493c with SMTP id f8-20020a9d5e88000000b006d850f8493cmr5577201otl.2.1701562603352; Sat, 02 Dec 2023 16:16:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701562603; cv=none; d=google.com; s=arc-20160816; b=TYibchlr3zKZabmVQ3ZJHrFy+Ps3KtAKhUbImWWlSwZHFcF5TtNsQclv2g6eBYLq1t CWXXCVGBKK+61/AUP9S4nwNqP1UQgRhr8pa/z5nI7YQ1qExnCJsT7lhN8xpK9VEezMhw zUswutQ7VE3Rxvxgp8JR6c3LUyogTIEpbhMUDvPk1RyQtSCLQZWF1U07JLtLHGJrtGSQ H+ToTmxhn+FfvXFGjl704fmxraQrg4+9r8gKDK1Tp4rfXbE1iXgizB7/z+H4hRnakDLZ TQj60WrfbbO8Hvm5RHbt0fqG3fH5khvVkDrsAUVoMXjETcZV0aQfel1XLn/IhNuepXH/ mCcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hF8kiVLJHBpf67kh/bV2U/McuMXTWTZgUR/BlE4R/Sc=; fh=TocuhJxd18GhrafGtuiOddR0cvtUM4cRDCHJeLgYvTA=; b=Qf7IOamXCUY6VnLU2wQWEB7fgW1pta38Xnw+wOU8l19sfghkJ3qSsqHLCCx9IZ7SQB 1O4eME3wa3iLJGQvoF08Sf25CD8ar5bK+3ciaR8JouMtKxK+wcwIIMDkVJubalZTz3CV gp00ZMnT4ZPD0VuQwZAfVpgVxnbiszi27QdhMF4S5lkxg4XYkCh7Zsh7L0xy7vHEfh00 Tm3o6xKv6XKy238up7h/ZDG57beOGZU1b6SZzZtol7ITHmVTUAb00h6MmJhUhiar6oMc 1wCq6jDs6fRZQoaf+spsLAEWgGKUCDk/Ruu6hH0NiLLVU1LadLCclhj+izaRKADpi4nv DVjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=uoGiDmvi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id c17-20020a63ef51000000b005c6646565c6si1257569pgk.639.2023.12.02.16.16.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 16:16:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=uoGiDmvi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 81B8E8087256; Sat, 2 Dec 2023 16:16:40 -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 S232701AbjLCAQW (ORCPT + 99 others); Sat, 2 Dec 2023 19:16:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjLCAQV (ORCPT ); Sat, 2 Dec 2023 19:16:21 -0500 Received: from pv50p00im-hyfv10011601.me.com (pv50p00im-hyfv10011601.me.com [17.58.6.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B567EE5 for ; Sat, 2 Dec 2023 16:16:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1701562585; bh=hF8kiVLJHBpf67kh/bV2U/McuMXTWTZgUR/BlE4R/Sc=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=uoGiDmvi7E+APKfOYDhHwXTaXvgiIPx2MF43zldniimOkyx8QiOUNrDKiNaJANJJ5 lvdl9uODrRgAfxUJNlyHUCnm1gTUAmKKgRk1apIrsaK+Y4BR3TGEL/WbgkvD0TWWiK JZq4UXkfL4lU1K4vMt9De+fC/O7P9TMCvEQ8Ud8mJyKbnCCW/4fo06vnSWJgyZjhZh vSgPKRVCD1FGTDyAd910+FV92KJZeqRiF2OZInItgTO1YSh63cZQTP+ykIhUKIu0s1 ndpkCPV302eZ8w/eoL+Voc5Yf/4x54zGUm6kERb4ZvDKXeO02rKRFKwfgRZH+hYYMv EFn0ZHTnBoDXQ== Received: from xiongwei.. (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-hyfv10011601.me.com (Postfix) with ESMTPSA id 08EFFC800E4; Sun, 3 Dec 2023 00:16:19 +0000 (UTC) From: sxwjean@me.com To: vbabka@suse.cz, 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, Xiongwei Song Subject: [PATCH v2 0/3] supplement of slab allocator removal Date: Sun, 3 Dec 2023 08:14:58 +0800 Message-Id: <20231203001501.126339-1-sxwjean@me.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: njOinpEGGVhRmbARrDjPc8Mc-j2hKAQ8 X-Proofpoint-ORIG-GUID: njOinpEGGVhRmbARrDjPc8Mc-j2hKAQ8 X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.517,18.0.883,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-06-21=5F08:2022-06-21=5F01,2022-06-21=5F08,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 bulkscore=0 adultscore=0 mlxscore=0 mlxlogscore=999 clxscore=1015 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2312030000 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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]); Sat, 02 Dec 2023 16:16:40 -0800 (PST) From: Xiongwei Song Hi, Patch 1 is to remove an unused parameter. This patch actually is v3, but it is not reasonable to add v3 tag in the cover letter, so I put the change history inside the patch. --- Patch 2 is to replace slub_$params with slab_$params. Vlastimil Babka pointed out we should use "slab_$param" as the primary prefix for long-term plan. Please see [1] for more information. This patch is to do that. However, the patch is big, I'm not sure if everything is proper in it, so I added "RFC" in the patch title. For more information please see the commit message of patch. I did the basic tests with qemu, which passed values by sl[au]b_max_order, sl[au]b_min_order, sl[au]b_min_objects and sl[au]b_debug in command line. The values looks correct by printing them out before calculating orders. One thing I'm not sure about the forth parameter of __setup_param(), Is it correct to set the parameter to 0 directly? --- Patch 3 is not related to slab allocator removal. It's to correct the description of default value of slub_min_objects in Documentation/mm/slub.rst. --- CHANGES v2: - patch 1: Collect Reviewed-by tag. - patch 3: Correct spelling mistakes in commit message. v1: https://lore.kernel.org/linux-mm/20231201031505.286117-1-sxwjean@me.com/ --- Regards, Xiongwei [1] https://lore.kernel.org/linux-mm/7512b350-4317-21a0-fab3-4101bc4d8f7a@suse.cz/ Xiongwei Song (3): Documentation: kernel-parameters: remove noaliencache mm/slub: unify all sl[au]b parameters with "slab_$param" mm/slub: correct the default value of slub_min_objects in doc .../admin-guide/kernel-parameters.txt | 48 +++--- Documentation/mm/slub.rst | 2 +- drivers/misc/lkdtm/heap.c | 2 +- mm/Kconfig.debug | 6 +- mm/slab.h | 16 +- mm/slab_common.c | 8 +- mm/slub.c | 142 +++++++++--------- 7 files changed, 110 insertions(+), 114 deletions(-) -- 2.34.1