From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f198.google.com (mail-qk0-f198.google.com [209.85.220.198]) by kanga.kvack.org (Postfix) with ESMTP id CF18E6B000A for ; Fri, 25 May 2018 11:59:43 -0400 (EDT) Received: by mail-qk0-f198.google.com with SMTP id y62-v6so4363553qkb.15 for ; Fri, 25 May 2018 08:59:43 -0700 (PDT) Received: from a9-99.smtp-out.amazonses.com (a9-99.smtp-out.amazonses.com. [54.240.9.99]) by mx.google.com with ESMTPS id a12-v6si1243224qtm.274.2018.05.25.08.59.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 May 2018 08:59:43 -0700 (PDT) Date: Fri, 25 May 2018 15:59:42 +0000 From: Christopher Lameter Subject: Re: [RFC PATCH 4/5] mm: rename and change semantics of nr_indirectly_reclaimable_bytes In-Reply-To: <20180524110011.1940-5-vbabka@suse.cz> Message-ID: <010001639806f32c-c18e739a-feac-4c6d-bce0-61c410579310-000000@email.amazonses.com> References: <20180524110011.1940-1-vbabka@suse.cz> <20180524110011.1940-5-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Vlastimil Babka Cc: linux-mm@kvack.org, Roman Gushchin , Michal Hocko , Johannes Weiner , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Pekka Enberg , David Rientjes , Joonsoo Kim , Mel Gorman , Vijayanand Jitta On Thu, 24 May 2018, Vlastimil Babka wrote: > diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h > index 32699b2dc52a..4343948f33e5 100644 > --- a/include/linux/mmzone.h > +++ b/include/linux/mmzone.h > @@ -180,7 +180,7 @@ enum node_stat_item { > NR_VMSCAN_IMMEDIATE, /* Prioritise for reclaim when writeback ends */ > NR_DIRTIED, /* page dirtyings since bootup */ > NR_WRITTEN, /* page writings since bootup */ > - NR_INDIRECTLY_RECLAIMABLE_BYTES, /* measured in bytes */ > + NR_RECLAIMABLE, /* all reclaimable pages, including slab */ > NR_VM_NODE_STAT_ITEMS We already have NR_SLAB_RECLAIMABLE and NR_RECLAIMABLE now counts what NR_SLAB_RECLAIMABLE counts plus something else. THis means updating two counters in parallel. Could keep the existing counter and just account for those non slab things you mentioned? Avoid counting twice and may provide unique insides into those non slab reclaimable objects. I'd like to see this.