From patchwork Fri Dec 1 03:15:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiongwei Song X-Patchwork-Id: 13475301 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 A9912C4167B for ; Fri, 1 Dec 2023 03:16:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 427E68D0068; Thu, 30 Nov 2023 22:16:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3D71E8D0001; Thu, 30 Nov 2023 22:16:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2787F8D0068; Thu, 30 Nov 2023 22:16:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 145578D0001 for ; Thu, 30 Nov 2023 22:16:14 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id E62661601A0 for ; Fri, 1 Dec 2023 03:16:13 +0000 (UTC) X-FDA: 81516785826.08.534A80D Received: from pv50p00im-ztdg10012101.me.com (pv50p00im-ztdg10012101.me.com [17.58.6.49]) by imf24.hostedemail.com (Postfix) with ESMTP id 0F9CC180004 for ; Fri, 1 Dec 2023 03:16:11 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=me.com header.s=1a1hai header.b=jPdTAIlk; spf=pass (imf24.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=1701400572; a=rsa-sha256; cv=none; b=kAXyQKQkXOcafPPhUYrUm3asuXoxvt+OfpwgweVNRxh8EKc3zTgGZ8gff/Sdot/Efi061Y cxyzNct3eB4+iuc/w3ATL2P7h+dxJ5NBzX4wxaa3A4HF50xqcg7CCt7/t+MQ3d/GBJ48JR XtteryO6n8rjFcLK3nb/fIgAofcT5Ys= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=me.com header.s=1a1hai header.b=jPdTAIlk; spf=pass (imf24.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=1701400572; 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:in-reply-to:references:references:dkim-signature; bh=Wr7fTnBxq0bcCyx9Wl9rcGbwRfY61PyyH9mYKGo5gHg=; b=HFY4I2W5Q6edBl04krUJ8nZY/6Dee2Me7o+Ox64lj7tb+Q2sDcbwPC48eJKKMkXNYbS6Yh MHBCW/DcvZkH+hABOTnq0Sd34GonDBDTvGhAy+BGi5p+YKScwCNMe+9QqWJvddQPjpAhLM mMch9S7X66yjQeg8pgMV3LMlohKGrQQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1701400570; bh=Wr7fTnBxq0bcCyx9Wl9rcGbwRfY61PyyH9mYKGo5gHg=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=jPdTAIlk/hbCeN3L/U9GeOvlEffSGnFsu3I2sAzuU+yLlPiyapfN6ISjPD1Hl5Wem iNkXwxu7HRVXahSaYSdn59UMOTp0tMf9YYmdOnUCqfPHyHdvYy6Y7gUfmli4Qh8JZt TfAUfp7PGrzoprA1FGRZ7Nk1thU+8EwNVfeh9NZdN4lPJGW4b0NGXJfuFlQIv+agt2 z8bPfiFW/DaksShnj/Cen4TzFkf0J+KH81ZSK5y814TUEOLUnDZVkkMQE/jAR8jGFm m/8Ug+JGAnQ6yrf8RemN2IDXh3RaoQ0Eeo++KfCM2HKNfKpoiqjfehh4FB8odPZRJS 2tt6Q05r+aDHg== Received: from xiongwei.. (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10012101.me.com (Postfix) with ESMTPSA id 62B93740162; Fri, 1 Dec 2023 03:16:05 +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 3/3] mm/slub: correct the default value of slub_min_objects in doc Date: Fri, 1 Dec 2023 11:15:05 +0800 Message-Id: <20231201031505.286117-4-sxwjean@me.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231201031505.286117-1-sxwjean@me.com> References: <20231201031505.286117-1-sxwjean@me.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: e__2VqUVQIrewVBKSdjrs2qmxpsFAx4p X-Proofpoint-GUID: e__2VqUVQIrewVBKSdjrs2qmxpsFAx4p 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=1015 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-Server: rspam08 X-Rspamd-Queue-Id: 0F9CC180004 X-Stat-Signature: pr1drcq3d7f5k3sc4dbskqd8p8cdsi4q X-Rspam-User: X-HE-Tag: 1701400571-303292 X-HE-Meta: U2FsdGVkX1+DxpWttfeZRHyqQxWqiGCJGlXzCJI2WJOja1xJakiltezJSVlt2Umyq2y9hEKqX/TOKKE28tAkEhkhSBni5GHa2lwiAbD7/wk0RdDKuogrA/lMTdaGlVZzvKMToXafHRxrQGbN1l7dYTorCvqqJLMmZsdvReFF+Gu9dDPp0OiJZmrWe2aux++7wfpUEgMJJNR7xrTnfq6qAZup5jLeOvXmlGYnqUGMdwnP435Tw/u6fPRhPg/SyScwfr1Tt7nVwfah1CIbTdxImosCUdmwmeOlagF6+OZ46/0WSZ9tp2lU0Ij06zsoHAzBDbvcCjS13c18Z4rFfVNCEglPofsln59Kmw0lmo1fnwu8vawNZG9kHJpwoiTiM7cfqFCHS01C6c5JsFKUQ4kvdsa7eepONTspuPdJJzg/hAURzDMnmWHhDZc9EbVrH2Ca9n/8CYUlnuW/oMA2two93PCInWDyl9zdQyZV10T/3W8Zp/ouYiF2E2eO/eerj6rKe5JlXeOOBhYddj/li89lEIDAj1MCBONhUe7vRKlNna76cSvO8AFPxz7/g0lL7ONhcIWMVJ+AOGUq1IVmnFMYYkJkK1+wPV9KYTmRZeZzziFNCBze3cmlejfVMKGbnBxtuAVgoQ0rp8jq8eKm8gwdvEAiVnKzbY1CHN/0eUD359s6DfUPizOn2YcLxCsCe11j1lOGhAeHSSEqmIJ2kfExqwD3RDcLBhaHhoxXVMMGUABcjGS4+rnBewlZEUHqvxuC2YCOt6EoQ/0q/m8z7IRrRNNSQAuuJKNmFPOfr9eh+PbFLfCgl+iYcJ0SS5KkFdivsILfDOyeGVNwrLJL1/Ukr0p0GLphh3lMFG7YgSAUB7Gz/yZO0s0zxXNlKFLmMgatXDCSn7/rnd8+S3U9D/VTxwhFwNtRdf1zzxWIskhAuHam4p4sQyry6YOGSoOFphC74mWCzpbw6xTXwvHZTNN 9zn92m4Q Q/Sm12gfLQ94/s0uksU8QHd6Bzt39xl+I87q2CFmB2LYdUCTR9K6QFF3Jx+hp31meeJfaP3BMWZOa7pgvAckV8z+RVgraVgNgDk9x12hsb6GhqyGE0VbNTnUGb5vKCj2Tcssv4FSn2N0WDgWra1melYB/6nk13e0dbJiYi0xgqRzwV7vts3osjpqfl6+iWPFobq/MFHhIDbYKSigCkJCLAxVDFJDpk9RTCjFj5gvj8ZU5g7faQnB/OPZfakekgM297xPjYopnzFWLXYJ6opwBRJPA2HoBvfg2czAyjDC3t+JgvXQbhkU3HdZ9+8yKC8vGfDFnX6ZDTjq9EZdIDLYf39Je7Vt/iuQ4QZw3jnPFC21bSNN3GwV2TQ6YwzHqScrEYBIsR10dEgJN2js= 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 There is no a value assigned to slub_min_objects by default, it awlays is 0 that is intailized by compiler if no assigned value by command line. min_objects is calculated based on proccessor numbers in calculate_order(). For more details, see commit 9b2cd506e5f2 ("slub: Calculate min_objects based on number of processors.") Signed-off-by: Xiongwei Song --- Documentation/mm/slub.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/mm/slub.rst b/Documentation/mm/slub.rst index be75971532f5..1f4399581449 100644 --- a/Documentation/mm/slub.rst +++ b/Documentation/mm/slub.rst @@ -150,7 +150,7 @@ list_lock once in a while to deal with partial slabs. That overhead is governed by the order of the allocation for each slab. The allocations can be influenced by kernel parameters: -.. slub_min_objects=x (default 4) +.. slub_min_objects=x (default 0) .. slub_min_order=x (default 0) .. slub_max_order=x (default 3 (PAGE_ALLOC_COSTLY_ORDER))