Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp544941imu; Fri, 21 Dec 2018 03:33:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN6l1i9p9Fa19R/5udInRy0FYHGrqYYaD7f5J/9Iz/bbvFPNfVpZiLSvgCgTvhbKHqZsNjMj X-Received: by 2002:a63:413:: with SMTP id 19mr2007196pge.7.1545392033904; Fri, 21 Dec 2018 03:33:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545392033; cv=none; d=google.com; s=arc-20160816; b=0f2NxG7a259ZipFGG5kHHYB9cChPOpLgdLFb6n1UCEILJR+/p7RXxooe+nYm0c1cha uHjJxHT/bfhuo3kqGLLW/uc/0o2avKe2WSnExMGkoqLAz+ewy/4QHCsJBktzol10hmL+ w6puspCba3Vone/CgeVeh80Ns2oBxe+KUP2/UwdciG0y4oanQd+1xrgwKno+YCJxrO+J hTPxK9VIv58gMwNtaFs7CZsnDIJH+lRhaB8uUhFIAGS2sQcqeZBR3DeIrltDKner/55L GiIDHBhcEIIngVrWfWeXYNdK6xZl94JtMjjdKC4CjyJUclFKI6L1mG23689RtM/xn1HS Sovw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=6HH0K2GHtVA1ltr1jtvXARdk0PBmXgv2+TS2cMvXO2Y=; b=0/D2aGEcpkKD8vxwSqnyWes43dfcZ0dzZwr5TPH72EaqQROtdZwW83DyhToV+1YoTF 5nXt1W55z0xRfPQCIaGGVPi+j0vjLUD8jQBjw0PQHUjA7cAlV0d3rinFvc7vOicckjoK /d4caWso0xao5Yn6UQeiCaIrguvNAphaKRgbvxCtTq7Ytztc+4mXvKAL1X3U+NSMlmxd XR4rd1jVqwSrpDA/zNtl+7/tiIOe439aHQU5rUeqDNkO1YXMuSFWfWlVB3BIESKIZ4CY /7viJuh7yL5gSSVFwJi2LL5G1TiEw1SexpXOKaHd8FMrBKIfvWZ2csjqa5T6oVFVMLtg pxFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ns3j1nXf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si21211686plc.332.2018.12.21.03.33.24; Fri, 21 Dec 2018 03:33:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ns3j1nXf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390159AbeLTWcb (ORCPT + 99 others); Thu, 20 Dec 2018 17:32:31 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:41678 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732764AbeLTWca (ORCPT ); Thu, 20 Dec 2018 17:32:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6HH0K2GHtVA1ltr1jtvXARdk0PBmXgv2+TS2cMvXO2Y=; b=ns3j1nXftVyae8OUBzf63+uh1 HHQUrbVb+JZrpNwCIQMGDhvybi3Bj1f6itkhiqsnh09msZy0n/ed37BX3GfTAUowPLVTbuKpyODWL iZh2H/FF1paO+dw5cDOXExkQu4xL+aWy1lSvtPfVRGOtWggUlQfnhVyQK0HFuEBYYcC8knEneLVmB xcaPxmlx2RQEU+0xMz7m8vPxnGl8ogaa34jS5uiBAEXAJQiMyvfndbtlMy29+ZXdy/ts5fbVdRTWC LXeWw+N/KVjQ2OP8toj7veDk1IEAq0rWwB8lKoH+9MtsT5jpuc7aLPe9q4k9RLkVn99IEC36+IvTt Z+4nWARTQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1ga6rX-0002yC-8n; Thu, 20 Dec 2018 22:32:15 +0000 Subject: Re: [RFC 0/7] Slab object migration for xarray V2 To: Christoph Lameter , Matthew Wilcox Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Pekka Enberg , akpm@linux-foundation.org, Mel Gorman , andi@firstfloor.org, Rik van Riel , Dave Chinner , Christoph Hellwig , Michal Hocko , Mike Kravetz References: <01000167cd1130c8-c9bebcb9-1f95-4f7c-b24a-90600d56c62f-000000@email.amazonses.com> From: Randy Dunlap Message-ID: Date: Thu, 20 Dec 2018 14:32:14 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <01000167cd1130c8-c9bebcb9-1f95-4f7c-b24a-90600d56c62f-000000@email.amazonses.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/20/18 11:21 AM, Christoph Lameter wrote: > To test apply this patchset and run a workload that uses lots of radix tree objects > > > Then go to > > /sys/kernel/slab/radix_tree_node > > Inspect the number of total objects that the slab can handle > > cat total_objects cat objects # ??? (as below) (just checking :) > > qmdr:/sys/kernel/slab/radix_tree_node# cat objects > 868 N0=448 N1=168 N2=56 N3=196 > > And the number of slab pages used for those > > cat slabs > > qmdr:/sys/kernel/slab/radix_tree_node# cat slabs > 31 N0=16 N1=6 N2=2 N3=7 > > > Perform a cache shrink operation > > echo 1 >shrink > > > Now see how the slab has changed: > > qmdr:/sys/kernel/slab/radix_tree_node# cat slabs > 30 N0=15 N1=6 N2=2 N3=7 > qmdr:/sys/kernel/slab/radix_tree_node# cat objects > 713 N0=349 N1=141 N2=52 N3=171 -- ~Randy