From patchwork Sun Dec 3 00:14:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiongwei Song X-Patchwork-Id: 13477163 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D83CC4167B for ; Sun, 3 Dec 2023 00:16:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6BA206B0393; Sat, 2 Dec 2023 19:16:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 642AF6B0394; Sat, 2 Dec 2023 19:16:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 509F16B039D; Sat, 2 Dec 2023 19:16:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 3ECE46B0393 for ; Sat, 2 Dec 2023 19:16:29 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 04256140199 for ; Sun, 3 Dec 2023 00:16:28 +0000 (UTC) X-FDA: 81523590498.27.C08D44E Received: from pv50p00im-hyfv10011601.me.com (pv50p00im-hyfv10011601.me.com [17.58.6.43]) by imf25.hostedemail.com (Postfix) with ESMTP id 435B4A0017 for ; Sun, 3 Dec 2023 00:16:27 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=me.com header.s=1a1hai header.b=uoGiDmvi; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (imf25.hostedemail.com: domain of sxwjean@me.com designates 17.58.6.43 as permitted sender) smtp.mailfrom=sxwjean@me.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701562587; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=hF8kiVLJHBpf67kh/bV2U/McuMXTWTZgUR/BlE4R/Sc=; b=E2s6C30rzW0Smkf9Oa/poAXubzwC3alN/Ey1oKZdhKV2OpONrh77e1tMFDLV8iYWJNKS7T QBu+JhuAluqqeCy9qbeGOCE5wpbNknDO3RG34y1b47JmgW8JjJq/50RlBUOEVP/rSVtqNn +UVlxK6/147MxfZMWTSRYMeiwAuE/Xk= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=me.com header.s=1a1hai header.b=uoGiDmvi; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (imf25.hostedemail.com: domain of sxwjean@me.com designates 17.58.6.43 as permitted sender) smtp.mailfrom=sxwjean@me.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701562587; a=rsa-sha256; cv=none; b=ypqpvaBtGezOH2NR5LEPe4fu9UYLBiJiM706cTUcfc2R/2uPAw8O+qs4AsRA3V1d9M0y1H JMKuWVyipMvs3ddUQqmhrRjAqjOJ1VngXK7Dk8GvbgZggZ/oOq1pnMiaxpngXgya1DpcP1 F3wv+92z+0IU2skZywW/hKe+YYcWfvU= 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 X-Proofpoint-GUID: njOinpEGGVhRmbARrDjPc8Mc-j2hKAQ8 X-Proofpoint-ORIG-GUID: njOinpEGGVhRmbARrDjPc8Mc-j2hKAQ8 X-Proofpoint-Virus-Version: =?utf-8?q?vendor=3Dfsecure_engine=3D1=2E1=2E170-?= =?utf-8?q?22c6f66c430a71ce266a39bfe25bc2903e8d5c8f=3A6=2E0=2E517=2C18=2E0?= =?utf-8?q?=2E883=2C17=2E0=2E605=2E474=2E0000000_definitions=3D2022-06-21=5F?= =?utf-8?q?08=3A2022-06-21=5F01=2C2022-06-21=5F08=2C2020-01-23=5F02_signatur?= =?utf-8?q?es=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-Rspamd-Queue-Id: 435B4A0017 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: 6q1grjew8f3ahru49irek19ntkm8ug6k X-HE-Tag: 1701562587-351902 X-HE-Meta: U2FsdGVkX19JOMr5Tg+D2nwnoHQaM/JFM4SkMMYbkwi1Setj89lepGraqpf8/GlP5/ObiQ4Dwz+XVFbZPCmFAUxkYgfyLf5U9/I7hRFBllOoVx6fN2QH2X+yo8obtr7fOEZR0AuEwMNyMiHOpN+cP6Ov7gyx3C6fjMczuoKBLpDwZFhI6eAMO0kfC6HyI0LsBYBwQ1lUbZvnmB+ATnyKZgAK2jxuHbMT2yHf9AZuAT5HFc+Y4Xomo8Q6/+PxwnJFp/Hw3rDI/5YbzErfhxcYKhfErjoEfb9zCOPiD5CzTJYn+d8oApyj9OhLcOQUjB/IWZy9VbR4ifjaMr4tfBnl4iJ/z6hTvStr0Xf3XNUiT/L6K4BLvwN7YezfdXW86RZDfopvK4QM5+rfyEChWPGq2jpOXfFY5PihPh7OUsJ8dAkPOE7IrCezEueDQ2GId9QPA7zyzxhp3aozMAmRvUiuLrLuska9Rc53pluyK+KmJ4MEWT5pR5VLm+017lMW9O4N0P8SGhy5rVNybY+nVr/W2UKDEM/Qz5p85njZ1NJFPH9ZttPa/5AW+bVRZWh+pwiDLLmMf4SUDJEtc6YBSryL2iqKhTCZJPkdDtM07KspYh209oDx09t6Wo7EQEQKL9aOj+FE4dYR8TVeVp+Mh+GCGe8kIvBlozUiMBzK0FhvxISdeu+xe+zJxgak90Qt/qRVvppnQ0sXm6kiT9Vgn2EYXukurD/kviyIw4t3a9hmKTAThPVQzo/p+aOF9f+aNadls6W9VgwPyt9OohYEhzW0kdLP++THga2RpVubwkbwEEcvy0ZylFS26Dio1ya8PBvv9bAdSfTdKcji3VMKXTjWqQ4rKGrNHxsDACiQCJdott8ZlYncfEd4wURbS8OAETnTx+zvroTGI92Ia7dnDn3gRD0byH2O5XS+lAyNocQgcABAaOTuLlLVsk+2OBtTTMd87ftl8iyY4Iue7TCTfvy rSxiRkdy odnUMItit48dIhP+PZ9lYew98VzmEFTJcB1QiYqRbFlbEMCUAqzL+cQMleo+G279QlQYQhBqj/8TpoTN3mi+F/dxGIsyqsCDFtG5eJtimBV6k3MFZFCF2q/t6P8CGbpTBC2mh8zH49eNFs4PJO+0EW+//Jv9ac1yCZnr5mlGBw3beCNYkK+ySMe22PdNowIDXDUhVmIvx0BweNBXLED1UIUSX2MlUylig1hmPuiGarpMa12d7mjq4Euw9iqQLuERYhPNG4MxVVV+yrnQiZC0O+Blxg8imxaVypupM3TjUlLdowk+60e9wGSG8VunAmFU6y/cG7s/kKY6wJJI+YAphyecHx8Wxu+QpZhpChRj5OHLw0LGscuKMFkmN1H7/4I5WHJsEH/f8+zVgQZSaYyQcQQ+EW6uJZIJlF7Uodg5Ww+HTPbU= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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(-)