Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1217365rdb; Fri, 1 Dec 2023 09:50:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCjkFe5Wil7NpFgSumqoFIC5LBjVOww2S5RLVc3L7lJn9qg4mJadZHwdJekW8iBiwLQDbT X-Received: by 2002:a05:6358:520d:b0:16b:c5bb:f702 with SMTP id b13-20020a056358520d00b0016bc5bbf702mr19907270rwa.2.1701453050835; Fri, 01 Dec 2023 09:50:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701453050; cv=none; d=google.com; s=arc-20160816; b=S3ih//FNd0q5fVAPJHkGfnhyDlAk/c3qgq9TzAHqf4nAi4jFnTmeshNs0I/BgSaObm 0P05swn4w+D9Yc31cHoT79Kb0wxPm5lEwI2SC1k7eByqFaYdRGV6J04PMU5xGaYLB3bY NE/kixor2LzidMvNa8DA2ZtlgDCq4KkgXk0Uj+dbPJnkadjRCihs9Wdqe9O6Uoe31tw5 hJn3zg1O8kK4D8Sfa6b0Df6EJhkT0p6aVttw0vGht7AggPFvW1W8eIB/wg/40AmbMh7D DoW1KGrZ787Df/5jrOfWFaemINY82YxWDPP+Y1dasQq8sL526B/vApCILT9L9ipsb+ew lmBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=61mRZHUPoSC+/V5UJ4QedAj4EUtFQC65cWS1GaV62vk=; fh=K0Nu1D8kEmdZM8OfYtA8GC3gL5D5/1FFuNjGCkhVTG0=; b=riYfNyxY7ncATOAHKGf9ZneJbP9Fx9l0lfYq9tiZomDLYw12Ysr6BBdlEvnrcTZUdS uisx0+m2YWZs9PMuUZ6MWBsROJPF8xg2rWSOWYzdiQmAAhm5rTQhzpN4RZgNwJE0YTCW To4CGd5erFM1Vix+fuDmXsDmWi3HVIeRw2yMFu/6jMVqOOapEO3yO7flp4MR55Bzh5Kh yGTZPHO1FqsKuJizb7sYrGe7zRBzSjJmb9znHDDOv/ztC55+sOIPPziWKh6ryrPBpdEB cpS1ylUKFQAwNvlODATLr65wFld91jM83SOjCZ0DwB6SzeK0MP3plS8hmOUPyqjJmk6Y xZnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=b+wII0J7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id z27-20020a630a5b000000b005bdf5961646si3581334pgk.268.2023.12.01.09.50.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 09:50:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=b+wII0J7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 592A5807C751; Fri, 1 Dec 2023 09:50:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229905AbjLARuF (ORCPT + 99 others); Fri, 1 Dec 2023 12:50:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjLARuD (ORCPT ); Fri, 1 Dec 2023 12:50:03 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09B01D3 for ; Fri, 1 Dec 2023 09:50:10 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1d0538d9bbcso6842385ad.3 for ; Fri, 01 Dec 2023 09:50:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701453009; x=1702057809; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=61mRZHUPoSC+/V5UJ4QedAj4EUtFQC65cWS1GaV62vk=; b=b+wII0J7L2Fgq8jeVhjyuDXMk/KN6AtxVDDSkJhtfyoxRWjEpA0x+2UhC9At/XoH9V D4Rqewe5z4hu49LzEnxv78xRM4XNSRWMVvGuRvJFgVY3Ke4H41KN0a0oZY+d/fdY+hn3 AYf4GxEa7BCx2jyheBtnvDO2qESWXWzwtRRsE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701453009; x=1702057809; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=61mRZHUPoSC+/V5UJ4QedAj4EUtFQC65cWS1GaV62vk=; b=N+D+QopT5IPKHMScpows+YFNaGC8CHbSUp2dv8e/gvhIaydOmfnNiv7dbQ3jS1GiCV Tx/7X+BdRBeywsMNWuyeupBf2IaSJm8p5Ef+JXzTAM0n5lB3dwSTrFh3lGNsg7CELqps 6Q9LqMew2tKIxPfA1UR0e/jHf1gXstyn0fEldDJbec0MBtDoFrfP1txJnZCJ+so3Jm/s FxJQoa78ybYgunLNgnDRh+Wfoc0bDknv12ARTJajZwfT7mjnFWTXgprslODMBpQ80dhh 4SGivqKRZuUiYQZNTIE7cXOT9POkRWBNvJnc4UJLDl2EKLXi7RVoK+9OoS+LQ4icfndH nFHg== X-Gm-Message-State: AOJu0YyJy9OIkIdH100UbbdU0/CuKL87zjtB9KqFmvJ5y/qldL8/oqy9 7aeHKyM8E5PsbhOOItoOMZTdhA== X-Received: by 2002:a17:902:c944:b0:1cf:a2e7:f843 with SMTP id i4-20020a170902c94400b001cfa2e7f843mr34281143pla.23.1701453009544; Fri, 01 Dec 2023 09:50:09 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id h1-20020a170902f54100b001b3bf8001a9sm3615644plf.48.2023.12.01.09.50.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 09:50:08 -0800 (PST) Date: Fri, 1 Dec 2023 09:50:08 -0800 From: Kees Cook To: sxwjean@me.com Cc: vbabka@suse.cz, 42.hyeyoo@gmail.com, cl@linux.com, linux-mm@kvack.org, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, roman.gushchin@linux.dev, corbet@lwn.net, arnd@arndb.de, akpm@linux-foundation.org, gregkh@linuxfoundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Xiongwei Song Subject: Re: [PATCH 3/3] mm/slub: correct the default value of slub_min_objects in doc Message-ID: <202312010948.63ACCAAE@keescook> References: <20231201031505.286117-1-sxwjean@me.com> <20231201031505.286117-4-sxwjean@me.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201031505.286117-4-sxwjean@me.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 fry.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 (fry.vger.email [0.0.0.0]); Fri, 01 Dec 2023 09:50:21 -0800 (PST) On Fri, Dec 01, 2023 at 11:15:05AM +0800, sxwjean@me.com wrote: > 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.") nit: multiple spelling mistakes here. Please double-check commit logs with a spell checker. :) > > 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)) But otherwise, yes, this change matches what the code does. -Kees -- Kees Cook