Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1550050lqp; Mon, 15 Apr 2024 09:30:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXid1/wwVa9G3c9qRK0/1uWYjaj/uCMCrhxBe99YWyoabMWfnIsoZpBa4x0SFQw5phxaQjS4Bjpgl/ZPy/tfXpkA/XfgRS7Dzrs1UyrCQ== X-Google-Smtp-Source: AGHT+IFT/6UVUzSEx2xWk0TyMxojkCXqFeVc0exTUzkL+kpwvKH6rlBV0wyxCdoXdX1xO2qLoms9 X-Received: by 2002:a05:6a20:96c6:b0:1a7:3365:d8ed with SMTP id hq6-20020a056a2096c600b001a73365d8edmr8869665pzc.29.1713198622996; Mon, 15 Apr 2024 09:30:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713198622; cv=pass; d=google.com; s=arc-20160816; b=zIoiyTZtq3zroeBVs56yQGOr/YwnmEkACSQAFLMzVNZ9AYg59tIs73eY1+h0vEBEb2 4DsocMtTlMD4BM6mMH0BgH2Bb5iaAwETdJDj9sp4U2ygxqpPWvNDLI+KaLaxeEA3Y4Qi LBWQ3x0pSBRP8Sb92fl9qnGhN98ezy1iaStw75xxXWXbY/PLWqZGKqF3YyOrCO7JYqR2 PPdhyFbWNcXYPUOobEuVGaFhWerHNZlQkqWEBTgDv47dvZ/7e1msZ1NH63Hr9Q2S9zhh /4cyNtaR/Xq+l5+WeBEavweVXmTHOnRtuMybnGj/1lqO5FQz1M16CCsO7f2SXFnFTOyj 2hEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date; bh=hXolhQhA9Dv9AM1bqXBIJ040TwuJtDk5WqadQIUQH/E=; fh=ZJ6eQJqvtQqZ1+Y9McxasJo36zogDBbKd5xBcH1xY0Y=; b=CCcq5JWDgKJul/6EY3yTjSummP2eMZq4lSGIzZgxUT+k9OOexLsnWwEU0oT7gG6jPv WVAJKn13sDu7Js1bu7pERxXnfW4qaeRt/6SiqNg9QftI10dPzHRLY5fb5Rvbxo0iH1ju Qj8zHJAcHJXyiyzw6VtjimSYYQGnlnRnV4bRF7RX5BGnbSscnNz1HTAZrQWDLv1nMnhs AGp0V5nx1WME8KorZxg9b5SiX+OOFTloqNWncKvlo+4BhmlEpfiF1ZB0WWhmb9FO499T ZpfvFwOwkJfNmO4VXlrENtNQzh/NN2+IoimvDx1fXhI4ojuTilvHSlZGUZOOD1TW2tiv Na4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-145539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lc7-20020a056a004f4700b006ed4a9726besi8235950pfb.295.2024.04.15.09.30.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 09:30:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-145539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9FAA6B22EEA for ; Mon, 15 Apr 2024 16:20:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 852238002A; Mon, 15 Apr 2024 16:20:40 +0000 (UTC) Received: from gentwo.org (gentwo.org [62.72.0.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADEE129414 for ; Mon, 15 Apr 2024 16:20:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.72.0.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713198040; cv=none; b=n82Df8oDNvow3W73DRMLBfIi/9hoGSCrsMRyDnRe+v3CLWXaqzAerCzVZ0PVpl/vo4eNpEAvwvOEv3UC6yAfTV6PAozcxBrt/EMN2ywYRCd4cNu1MNyWioDxR1bu2WivVEwPgGRnu5TZfwQffZIOaNNPy9HKj7Nnbg3swIGdOTg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713198040; c=relaxed/simple; bh=nehaG3kH+wDxDtXRMwBWASBfjnqJiOasYYhEKGLsIMU=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=kibVmnZlnNeLHAn9dkt4r03/dSDWP0WazIKnUMEfIzvrb14CLBnCPFfwU1vgQ3uyy94ClYox41MXIqDzij9o0Qc3zCbI5TsBeNKVWJFvLIBQRp0JAMgZ45ouqnulF2KDYPXOhslY2oiqK2biQS/P5V5aVVEERxY9dUpegC5BE48= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=fail smtp.mailfrom=linux.com; arc=none smtp.client-ip=62.72.0.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=linux.com Received: by gentwo.org (Postfix, from userid 1003) id EA2D140AB5; Mon, 15 Apr 2024 09:20:29 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id E97B04037C; Mon, 15 Apr 2024 09:20:29 -0700 (PDT) Date: Mon, 15 Apr 2024 09:20:29 -0700 (PDT) From: "Christoph Lameter (Ampere)" To: Jianfeng Wang cc: Vlastimil Babka , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "penberg@kernel.org" , "rientjes@google.com" , "iamjoonsoo.kim@lge.com" , "akpm@linux-foundation.org" , Junxiao Bi Subject: Re: [PATCH] slub: limit number of slabs to scan in count_partial() In-Reply-To: <5552D041-8549-4E76-B3EC-03C76C117077@oracle.com> Message-ID: References: <20240411164023.99368-1-jianfeng.w.wang@oracle.com> <38ef26aa-169b-48ad-81ad-8378e7a38f25@suse.cz> <1207c5d7-8bb7-4574-b811-0cd5f7eaf33d@suse.cz> <5552D041-8549-4E76-B3EC-03C76C117077@oracle.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-810623552-1713198029=:146654" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-810623552-1713198029=:146654 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT On Sat, 13 Apr 2024, Jianfeng Wang wrote: >>>>>> kmem_cache_shrink() will explicitly sort the partial lists to put the >>>>>> partial pages in that order. >>>>>> > > Realized that I’d do "echo 1 > /sys/kernel/slab/dentry/shrink” to sort the list explicitly. > After that, the numbers become: > N = 10000 -> diff = 7.1 % > N = 20000 -> diff = 5.7 % > N = 25000 -> diff = 5.4 % > So, expecting ~5-7% difference after shrinking. That still looks ok to me. --8323329-810623552-1713198029=:146654--