From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61519C10F04 for ; Sun, 3 Dec 2023 00:16:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232719AbjLCAQX (ORCPT ); Sat, 2 Dec 2023 19:16:23 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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