From patchwork Sat Dec 9 13:52:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiongwei Song X-Patchwork-Id: 13486039 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 9A539C4167B for ; Sat, 9 Dec 2023 13:53:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2189C6B0085; Sat, 9 Dec 2023 08:53:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1C8E76B0087; Sat, 9 Dec 2023 08:53:20 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0DEFE6B0088; Sat, 9 Dec 2023 08:53:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id F34166B0085 for ; Sat, 9 Dec 2023 08:53:19 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id D37E9A039F for ; Sat, 9 Dec 2023 13:53:19 +0000 (UTC) X-FDA: 81547421718.19.1DDE53E Received: from pv50p00im-hyfv10021501.me.com (pv50p00im-hyfv10021501.me.com [17.58.6.48]) by imf11.hostedemail.com (Postfix) with ESMTP id 141484000E for ; Sat, 9 Dec 2023 13:53:17 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=me.com header.s=1a1hai header.b="NbLX2F/c"; spf=pass (imf11.hostedemail.com: domain of sxwjean@me.com designates 17.58.6.48 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=1702129998; 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=C/CNUr2LNMn6Qo2xusn2tYrx0721oOslxNy000GbTmM=; b=afJ1cqi2YOXxLmwk2ImO7W/mck4jF6L6raGoAFXggwslBkqXQ89IM8f5foTm6RFNnrjDVz LmYNrxp+VYN+/brff1KiUXa2lI0Li9Ef/k7JXVn2vUTCrgwbkkSLW4X5pq1LD5OuH+g6z/ zDliyqSwrxp78UkviT0T2HufRqM2lBg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702129998; a=rsa-sha256; cv=none; b=eAW8Ayi7yKcEmK83/z/XUlBOslMEsUGojknB09mmovUACd/fkSCk9ClTkqVIFw0PAWu/zb 15gAwp0KP6sTYNCcVPPIayxNnJfpnHBXpkDFfh9EzW26KA2sT8NouJp2KowHZrA85cD7l9 3go6YM7LRtloISQuHZfskV03USgextw= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=me.com header.s=1a1hai header.b="NbLX2F/c"; spf=pass (imf11.hostedemail.com: domain of sxwjean@me.com designates 17.58.6.48 as permitted sender) smtp.mailfrom=sxwjean@me.com; dmarc=pass (policy=quarantine) header.from=me.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1702129997; bh=C/CNUr2LNMn6Qo2xusn2tYrx0721oOslxNy000GbTmM=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=NbLX2F/cUDL44mi2SabkraD2VVk0hY3/rQGXB0k0Wvss5Rl3/TzCj3rrYn2EQbwSW FQ7gPhh95AINJgEs4XfJfywasGju3vyAlydBFrDe41RjZvk0ZoahwBhtPuiGNznmHl jhcxu3Nz44xIXu3D0og6FisvlzScDOozYJI0/52yW50wFS8n2lr7+LQSYJrga/uD4Y l6HvHiS5lt0fS+PLUa6tcFt8Tg4GrGsdrmbhDaYXwx2NjPbIvHknXaSNMZ1v2ZCrVr Qo4v7h12JT9DGYqaZLqFGEND+Q9Q+r7gOoRRvIHo0utE6b3NWWlhbltUmoHMgWNLu/ RqlVNJzHrBdYg== Received: from xiongwei.. (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-hyfv10021501.me.com (Postfix) with ESMTPSA id 2C2122C0207; Sat, 9 Dec 2023 13:53:10 +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 v3 4/4] mm/slub: correct the default value of slub_min_objects in doc Date: Sat, 9 Dec 2023 21:52:03 +0800 Message-Id: <20231209135203.303508-5-sxwjean@me.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231209135203.303508-1-sxwjean@me.com> References: <20231209135203.303508-1-sxwjean@me.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: SFeMuhdIpG0w4U9kk62gVDJSZEQihs1C X-Proofpoint-GUID: SFeMuhdIpG0w4U9kk62gVDJSZEQihs1C 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 bulkscore=0 suspectscore=0 clxscore=1015 spamscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2312090120 X-Rspamd-Queue-Id: 141484000E X-Rspam-User: X-Stat-Signature: hzmp59rfgru3w7zn6incic3fyjchmtg1 X-Rspamd-Server: rspam03 X-HE-Tag: 1702129997-814686 X-HE-Meta: U2FsdGVkX1/Vy8/6N20r8nl2pHvJ6KN9qO5CKmdc0qxq2PUp9HgSVXC+4eWxQpzGm1niKvqDIq6K/fjKcsk6qwJmn75N7nbTnIshxET85Ig6fdLKImDfCQwKjHUSZLL2vfBnxdM8hhl43a0CMNHV0eDLjdlc/V+eVBFIPyUYW2RNAzyabkQMv+AB2cnztZcxBPYAbZ03NGtwjUOCzn3lSWsX1sOL9nQpalo6hmB35y7gXMhx7JM46sLMzmlotWATgXkCtYnyVuyOnPdPmChsYbXBD20HT0qZIToZbEZeW8NrxaNQnVEOf5pMuKBUaqi8iZFk9iiQy01Vt01zVjpkT60xyapRpHVDxiiqYqWhjiOL6gfssYn1CgyXwql4qlpt8ME6hcMieiR+IJAnRi6p6m7NIti1Vrsks7TKsw73pn26/YhYiUfBUxa0wxXkJ7tIfK0IpZytkxjvxYAE8LGsHyIgBg+XcCdE6o0PSF+uAeS6JC6vJX7itjjMRRMQ9wUoDzcWfXz0wec0dVAKixKhEhY7CC+fAdAHZWa/IQGzctRL93Exawrrg4Gflj46VxyByPwoX/20PpqroiAZGn10hCML/k78X9y+EseEIRMMwfmDi3H2xceMmivr50qmB4O+nvKcQI5raddIbF3c+kEvFGAztwhDDz1K29/rhhvdL1R+iYHO0TkNWFhr46E/lPPkio9RgUWvlRvNFOShmhvenun9s5XoZSOYHvgrMpdfjg3QN12BrlW2DwsRMn2nxoEdqsVX6ya+pIqqhbPgHc+DOfvsAyGgWcYvDxtuQGVQabo3JFEjhU6AqcHPQhoD8ZABTGgkcZuL+dr2s5VZuMHdiKFp1oYq0z8OmuGOEIACHhO+AkaAPX8Sp8dwPsNU5IsHRIdWe4s4psL2CA6AlhoNn65CXxUpk3Sd8G/iJgPuMrRZNMrrw34DTBOadHqGta5OCQ/gbiv5UaofV5972C/ ltIa/O06 2s+jTvfXBFG80zkQZj43zePncEb+/F4RXlZN3NUpwl+kK9CPeLrt5Ys97MAl5Q6upuzS6lFSnkKbsOAMTYa0/M4S67Y+4PwBNLlkNaAXwoFyONPvAZouu8QldPFDJOjNMc5WES+NWwAdDGFQjMkBHvTEMhNBuu0XycyHxUavJWcUUMAIKO0tCswM5Qdr7orPGc99H6OgFyYRE5OmGbTb1EHOBmdx1eZCW6TV1r0i/fYteU4ir5DH6DISb5qEi3pyvWI7VHOPNfuO2H8fjH4h8HeBuF4SvDrKkgnK867XT+plZRiEc8zjqqQ6nc1uYpzggkvT1ivsW0BxVuTYg8G1BVtN/eZEp0/vP9fOOxctQKSI7sHc0MWfnXbpHCNeHrRtnkv6Htg39GGnk3YU= 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 always is 0 that is initialized by compiler if no assigned value by command line. min_objects is calculated based on processor 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 6579a55b7852..56b27f493ba7 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: -.. slab_min_objects=x (default 4) +.. slab_min_objects=x (default 0) .. slab_min_order=x (default 0) .. slab_max_order=x (default 3 (PAGE_ALLOC_COSTLY_ORDER))