From patchwork Fri Dec 1 03:15:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiongwei Song X-Patchwork-Id: 13475298 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 D80A2C4167B for ; Fri, 1 Dec 2023 03:15:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4C2E18D0065; Thu, 30 Nov 2023 22:15:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 472B88D0001; Thu, 30 Nov 2023 22:15:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 33AD68D0065; Thu, 30 Nov 2023 22:15:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 249EA8D0001 for ; Thu, 30 Nov 2023 22:15:41 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id E4390801D5 for ; Fri, 1 Dec 2023 03:15:40 +0000 (UTC) X-FDA: 81516784440.27.AB678B8 Received: from pv50p00im-ztdg10012101.me.com (pv50p00im-ztdg10012101.me.com [17.58.6.49]) by imf16.hostedemail.com (Postfix) with ESMTP id 307AF180012 for ; Fri, 1 Dec 2023 03:15:38 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=me.com header.s=1a1hai header.b="p/ExqYdy"; spf=pass (imf16.hostedemail.com: domain of sxwjean@me.com designates 17.58.6.49 as permitted sender) smtp.mailfrom=sxwjean@me.com; dmarc=pass (policy=quarantine) header.from=me.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701400539; 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=J1e8MVpgYKHHT8qqYA/cG+J/c7QhLqjmRpXuY46jjUg=; b=2+ldT29wcEFSqDBLwBVIMAN1Krdr6npCexWQKi6rgvfDs13RqaprhBWtHxHPVY5UyS6uHr /YNlQYcEmJPDKVmtXqAB0mZZdH+EyWBx9sjnH7QN9b1yUrMnl5zY5/MIpi/b+woIfZZP+E WODNrI8D9abliDMnAhEPRW7P4wpmZVo= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=me.com header.s=1a1hai header.b="p/ExqYdy"; spf=pass (imf16.hostedemail.com: domain of sxwjean@me.com designates 17.58.6.49 as permitted sender) smtp.mailfrom=sxwjean@me.com; dmarc=pass (policy=quarantine) header.from=me.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701400539; a=rsa-sha256; cv=none; b=N1HqK23edsx4s6+I9+ZgNW4aUS7rCURPRnSj0qhlQCNEl37H4+BbeM2aofdY876Z7kj1ow hKcaa64s6T2k/X4Wk0mo79O6UDoEDlNUvgmXvR+d52RiARYF0XK96ixiTetXyDVyJ1ZssL pMCEC7y4UNa+gTKX5W5ULGvlhctFdmI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1701400537; bh=J1e8MVpgYKHHT8qqYA/cG+J/c7QhLqjmRpXuY46jjUg=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=p/ExqYdyjjh/7+kW7Oq553AaJ5HcCHmiEaAP2M9d1MXDz5q5U5gRldCdxABgimeP+ oPkQpcLMTWS4MTAL7OTljh9keoVRHBWrgam/glg/9TAq36HleXB62Xj4/Iy/+yfwHL IbgxSTcB9dHe9BiFlfVj0yyiWQE1YBZeBhTx9u5ncXrXIKc1FU9hD+cOJFa3izxzXr CsO6wD8mMDMzf+T9/5sQshTe3+2OSuv+k/LweKyE2s86LAyXKodIeusLeHdC8Xz7CC Wk244t3BJX08DflI13bTIvq9iyCl2IoxKCXu9nS7eQMG1MIARirT/PYCjGHjWzcSCj x4AcBAJsQL7nA== Received: from xiongwei.. (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10012101.me.com (Postfix) with ESMTPSA id D9178740116; Fri, 1 Dec 2023 03:15:30 +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 0/3] supplyment of slab allocator removal Date: Fri, 1 Dec 2023 11:15:02 +0800 Message-Id: <20231201031505.286117-1-sxwjean@me.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: i1IoE9P_OLRrjIyA_2bZMmMAKEmtUx-t X-Proofpoint-GUID: i1IoE9P_OLRrjIyA_2bZMmMAKEmtUx-t 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?=2E572=2C17=2E11=2E64=2E514=2E0000000_definitions=3D2022-06-21=5F?= =?utf-8?q?01=3A2022-06-21=5F01=2C2020-02-14=5F11=2C2022-02-23=5F01_signatur?= =?utf-8?q?es=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 clxscore=1011 mlxscore=0 phishscore=0 suspectscore=0 malwarescore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2312010018 X-Rspamd-Queue-Id: 307AF180012 X-Rspam-User: X-Stat-Signature: ajeyx68p4scmmaxd668a6dbyqjhjqof7 X-Rspamd-Server: rspam01 X-HE-Tag: 1701400538-440196 X-HE-Meta: U2FsdGVkX1/enwJy5/hlsvvF90mOcmKHBnMEQ/hdKfG8s0w7X91XKJoMNk9TnN9Obwzc3+GVjH6akMiqO3WwAoG/7s2SaQ3vNXF6SOXbnJ0CpBTeUKx8Le95O6VbXw9N0LvAbh0qxoUNDQ321/Md/DJM/hhKi77mDQvszm59DOZvjv9Eia4Ov+egNCBHKCnT9Wb+cbkf/piPfuBAS1mVqMYjPIT0zZghpJjRTkDN/EZ4DG6fX3RIfzLuSei9wxzPjxn+wjquirUoU2wcR12bW2Tcd3mtMsX42W6Wc+Vk6obIbME6oV55rf1EloNQv99i4AR5xDrZfso7M504sCtur4iU/4orGQJcGZHhq+wU5LdfVQygJ8EqavAUXM0NhoWJIZxW1AAi6KYnaPjv/WSsJ1vkrUmFkHSVedK0YMJj6GO6IQzfBa5/gTVpGRETXMeFjM8nJD3O2WYGwjBtjstY6TmRCyuqxp+r3bAWpIshiEfUfwDGdVsjHAbIKMYqGxXRphu5VScpPMuk2zaq+qa1n9EhxJP1h52XegwiDARB41W4QmcDO3Un/GF/oYXJaLY0LBPI73j6rQvrMdx2XMKY8Jz4qddXbEbJKcVmR+yR3HgqgEC72+H7bVT+VFABJrmFhZclmEJzOknRjSBlmdg7ab8C1tUQZs305KYNEXK0suEASg7qWIpz45DIvaVrEFkadz+MjCd/5NG0iE7PxpePSKBEQ02VDSACJt/2G7vNjiBdtCGUBZAgu9UGDGvWR4jBkiDPVPrp2LXleezoMbjlfthE/C9UdjZMhTILKGrkTJzcd+XB/cEQhI7+R54gVg2HnSdIfKvzU6Wuxa3d6Sjee1C9Qa739bpFFm5xO1UDPMzz60O5l8uAUwWOD5tDZsSfCN57InftzPYPfRxDTVuqYasbMuQbSE8nBjI6GIOV6VWVm8qMuAx+DWgOWlaJAQvM5WO8JNTxF7a6e3IAaXo CdqxKxfN J9DCwOgpphPxnZsN2HM3ASTEE9aTKHVbNYWdWLptELshDF6nq3odYaq4GsNsSDzgRGSTROR26q8aza3M+fE9gjCToiQl+Wc9HtD+8qMR6pFGT0FVmPQAyq1asA/9rsaHkn1mm+niizBsgOFlLsGa1ZGE5emopLBjPl/7qXdja4rVXIT2ckAT4qeUaSynI13FOmCgAh2nFA7bG1ZNseIS0I2wO+tb8miPAqKMjO+EbG0icXN7ibIBDrpsDZebKQcH/vzJho1QXwdHU6LNDJPjJvf24BygtuY0bXFygWmUJCfFmzbMUqqW75Ao2pQv90mfF0uc0EcSUXM+VhwoO60085nEqI9knvGM/olw0pPkifBFDebx3S7QRwpf+C4gXlsyefVZb6vHyjNpgBIJxD1gNKFcomA== 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 acutually 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 infomation. 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. --- 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 slab/slub parameters with "slab_$param" mm/slub: correct the default slub_min_objects value 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(-)