Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp766999rdb; Thu, 30 Nov 2023 19:16:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFUb1t8HKjq2cHJSFy3IpEELpxO/2YdVXCEYO0Ddt8Kc5Vk2joNCddTsW0Krp/yOvHOi2aG X-Received: by 2002:a17:90a:1cd:b0:285:657b:f17a with SMTP id 13-20020a17090a01cd00b00285657bf17amr22829063pjd.15.1701400597935; Thu, 30 Nov 2023 19:16:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701400597; cv=none; d=google.com; s=arc-20160816; b=cLEYRrPFqJB/FVWVOX+kSyySSg5glhQxXJE5PRMFv8vt/FFN00i22DFV7KrjsAvij3 rUaAaUvzEJVMR2JSs4CqZVH3MfcI8nh+SZ2wxBDE65IhjRLGJtFz54mtOYJqj5HEgx7h +OsRjIzf3UNtpef/b8Z+JYN3q+mK1pzfWwio9+DiGsHx83EBYv+FYOPoCZweGkJy9Yj8 TuYc8BythDENXMeXdE8D+dbKA0+9bdVLnUZXdR8URFwTVlvJzs1zmikHcq4qYnSHLKm7 vbS1OWk8V7Mqqtdzr23F8pUZqZTaFYJCHQW7iYoPsCn6e2R1WpGjXk1zjx/LDgw9jFWf iFZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Wr7fTnBxq0bcCyx9Wl9rcGbwRfY61PyyH9mYKGo5gHg=; fh=TocuhJxd18GhrafGtuiOddR0cvtUM4cRDCHJeLgYvTA=; b=H0t8GByJ+JIa3anclJQFo64mPOo68NAcqEcZjS7FN0AhYiYGJcIAj4fg2kcLLLsXYm 2xM10ETpwOhj8RbVX2R4ioIM2LBrw7M8bu6smc+mRmV4crrGwDqt4OOar4FrQhSL1+3F SbMX3TGenKG144xDGwUNwJDgljsDCFbGRq3UKxI0xHB5brKYOL06MQbhS9EU9eMmh2zC Y4h+uiHIW1yzMag44Sc9w3Mj/uJuJEflYVkKzlFoAnWowwp+K5Yb+JgQb/sq/DsC1KU9 mqzmdBZC2DBzS6pBr/sI2Pj+FCDGXeGiG61lkL36WfxlZDjG6kql3LuT4tZ3DUQMznvR uh7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=jPdTAIlk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id u7-20020a17090341c700b001d018b5a0dcsi2647236ple.411.2023.11.30.19.16.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 19:16:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=jPdTAIlk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 741AE8232672; Thu, 30 Nov 2023 19:16:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377086AbjLADQH (ORCPT + 99 others); Thu, 30 Nov 2023 22:16:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232273AbjLADQG (ORCPT ); Thu, 30 Nov 2023 22:16:06 -0500 Received: from pv50p00im-ztdg10012101.me.com (pv50p00im-ztdg10012101.me.com [17.58.6.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46B97171C for ; Thu, 30 Nov 2023 19:16:11 -0800 (PST) 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 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: e__2VqUVQIrewVBKSdjrs2qmxpsFAx4p X-Proofpoint-GUID: e__2VqUVQIrewVBKSdjrs2qmxpsFAx4p X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.517,18.0.572,17.11.64.514.0000000_definitions?= =?UTF-8?Q?=3D2022-06-21=5F01:2022-06-21=5F01,2020-02-14=5F11,2022-02-23?= =?UTF-8?Q?=5F01_signatures=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-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 30 Nov 2023 19:16:35 -0800 (PST) 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)) -- 2.34.1