From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by kanga.kvack.org (Postfix) with ESMTP id BE8C36B0006 for ; Sat, 30 Jun 2018 06:11:43 -0400 (EDT) Received: by mail-ed1-f69.google.com with SMTP id g16-v6so3679783edq.10 for ; Sat, 30 Jun 2018 03:11:43 -0700 (PDT) Received: from mx1.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id c31-v6si5059246edf.296.2018.06.30.03.11.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Jun 2018 03:11:42 -0700 (PDT) Subject: Re: [PATCH v2 5/7] mm: rename and change semantics of nr_indirectly_reclaimable_bytes References: <20180618091808.4419-6-vbabka@suse.cz> <201806201923.mC5ZpigB%fengguang.wu@intel.com> <38c6a6e1-c5e0-fd7d-4baf-1f0f09be5094@suse.cz> <20180629211201.GA14897@castle.DHCP.thefacebook.com> From: Vlastimil Babka Message-ID: Date: Sat, 30 Jun 2018 12:09:27 +0200 MIME-Version: 1.0 In-Reply-To: <20180629211201.GA14897@castle.DHCP.thefacebook.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Roman Gushchin Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , Johannes Weiner , linux-api@vger.kernel.org, Christoph Lameter , David Rientjes , Mel Gorman , Matthew Wilcox , Vijayanand Jitta , Laura Abbott , Sumit Semwal On 06/29/2018 11:12 PM, Roman Gushchin wrote: >> >> The vmstat counter NR_INDIRECTLY_RECLAIMABLE_BYTES was introduced by commit >> eb59254608bc ("mm: introduce NR_INDIRECTLY_RECLAIMABLE_BYTES") with the goal of >> accounting objects that can be reclaimed, but cannot be allocated via a >> SLAB_RECLAIM_ACCOUNT cache. This is now possible via kmalloc() with >> __GFP_RECLAIMABLE flag, and the dcache external names user is converted. >> >> The counter is however still useful for accounting direct page allocations >> (i.e. not slab) with a shrinker, such as the ION page pool. So keep it, and: > > Btw, it looks like I've another example of usefulness of this counter: > dynamic per-cpu data. Hmm, but are those reclaimable? Most likely not in general? Do you have examples that are?