Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3574295pxp; Tue, 8 Mar 2022 17:50:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7yDczoEE3xXNlbSqjzGXV73pi6CBPFXNq47CXHQtEMDUOMa/6dgTAeAF232EVMb3ga8cr X-Received: by 2002:a17:902:bd86:b0:14d:8437:5113 with SMTP id q6-20020a170902bd8600b0014d84375113mr20386784pls.43.1646790622311; Tue, 08 Mar 2022 17:50:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646790622; cv=none; d=google.com; s=arc-20160816; b=dJA1ECvXxOHTNGvomHjV+IU6XsLXT7IW2qR9cU0QggQoFzVr0Lug5wQzKsKJhh7MEc xrGuwDowUuJxpZpVFT6ToHpUohg4YoNB/Ms24WsQfVA7pG6Z/nV9sYAfzdJ+jYflqedB IrVr3vVTfVKPJ6fR9RkzT/KOfXBx9CDgx3tmamJcE8icQRb6cE7ocvbV64RXQKIiAP4H 5uU3fdJwnCRC6wNpF+PWoUm7yMcH/cfl1HJ8sli9A4GcEDegX5Ajqvj2cJ0k9AtICafL NW+Xx2q6DZyoUm8nocg3/R21X34mNxrsyz3vxr409oujRT43mPFo8BGSPrP4i7rlu3Ip K/Qg== 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:dkim-signature:date; bh=vwPcToi9QpulPXpEM+stuEjonF0SMUUBzZ8wliMqGlo=; b=XSXFTLTbMMigLzeta7IIiYjbMJgqoTlS4YQZjh7mLpnsc1Kjuf4v7KvMRlaDHNCXEj sw7hIHV02JMqeK93IiU2khPQ5SZfE7GgXRKz01zE9bEuFkyRMZibzbMm1SpgJnKqDB0C wEV22Xs5tbeyjNu0jjBmEO9LFz/wzgqJefz6cxAEc5SNiY0prGrwpL8Zs1fy/cwSkH6g 0NYeK66tjXSAg+cv1HJhpCXtQfAlIH02SKUGPk4kGFI3kgnhG0Bs1+5I3H08MMhKPubq cO0mrA9/p/F307Dcc4OlSy8meomtHKDM/MB9ZBGVbICaQZK1TpFw3JZBIyvciadIF+9o M9KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=OlJkXSjV; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n4-20020a17090a394400b001bd14e01f23si650818pjf.17.2022.03.08.17.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 17:50:22 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=OlJkXSjV; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 97D141DB89B; Tue, 8 Mar 2022 16:26:13 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234523AbiCHEtR (ORCPT + 99 others); Mon, 7 Mar 2022 23:49:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231371AbiCHEtP (ORCPT ); Mon, 7 Mar 2022 23:49:15 -0500 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6BE1338A6 for ; Mon, 7 Mar 2022 20:48:19 -0800 (PST) Date: Mon, 7 Mar 2022 20:48:12 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1646714897; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vwPcToi9QpulPXpEM+stuEjonF0SMUUBzZ8wliMqGlo=; b=OlJkXSjVDTVlrBLHK8ZjiPsXZ7TMAsuvCI5ANkiop9ow580mlFtOzP97SI2sH0tpx0BVjS /PierWl3bL6xVr/kciJ870Px0Jvv5J1IaKHdBP/4Galaf/sdjDbt74xkq7DYBzohUWTTma GDBEwJ5kTqiYmR/+TwDSbhYF3n68mc8= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: linux-mm@kvack.org, Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Marco Elver , Matthew WilCox , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] mm/slub: limit number of node partial slabs only in cache creation Message-ID: References: <20220307074057.902222-1-42.hyeyoo@gmail.com> <20220307074057.902222-2-42.hyeyoo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220307074057.902222-2-42.hyeyoo@gmail.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 07, 2022 at 07:40:55AM +0000, Hyeonggon Yoo wrote: > SLUB sets number of minimum partial slabs for node (min_partial) > using set_min_partial(). SLUB holds at least min_partial slabs even if > they're empty to avoid excessive use of page allocator. > > set_min_partial() limits value of min_partial limits value of > min_partial MIN_PARTIAL and MAX_PARTIAL. As set_min_partial() can be > called by min_partial_store() too, Only limit value of min_partial > in kmem_cache_open() so that it can be changed to value that a user wants. > > [ rientjes@google.com: Fold set_min_partial() into its callers ] > > Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> > Reviewed-by: Vlastimil Babka LGTM! Reviewed-by: Roman Gushchin