From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f198.google.com (mail-pf0-f198.google.com [209.85.192.198]) by kanga.kvack.org (Postfix) with ESMTP id 431A26B0003 for ; Fri, 27 Apr 2018 14:57:13 -0400 (EDT) Received: by mail-pf0-f198.google.com with SMTP id g15so2235900pfi.8 for ; Fri, 27 Apr 2018 11:57:13 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id l184-v6si1773983pgl.38.2018.04.27.11.57.12 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Apr 2018 11:57:12 -0700 (PDT) Date: Fri, 27 Apr 2018 11:57:08 -0700 From: Matthew Wilcox Subject: Re: [PATCH] mm: don't show nr_indirectly_reclaimable in /proc/vmstat Message-ID: <20180427185708.GA2444@bombadil.infradead.org> References: <20180425191422.9159-1-guro@fb.com> <20180426200331.GZ17484@dhcp22.suse.cz> <99208563-1171-b7e7-a0d7-b47b6c5e2307@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Vlastimil Babka , Michal Hocko , Roman Gushchin , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, kernel-team@fb.com, Andrew Morton , Alexander Viro , Johannes Weiner On Fri, Apr 27, 2018 at 11:41:31AM -0700, David Rientjes wrote: > On Fri, 27 Apr 2018, Vlastimil Babka wrote: > > > It was in the original thread, see e.g. > > <08524819-14ef-81d0-fa90-d7af13c6b9d5@suse.cz> > > > > However it will take some time to get that in mainline, and meanwhile > > the current implementation does prevent a DOS. So I doubt it can be > > fully reverted - as a compromise I just didn't want the counter to > > become ABI. TBH though, other people at LSF/MM didn't seem concerned > > that /proc/vmstat is an ABI that we can't change (i.e. counters have > > been presumably removed in the past already). > > > > What prevents this from being a simple atomic_t that gets added to in > __d_alloc(), subtracted from in __d_free_external_name(), and read in > si_mem_available() and __vm_enough_memory()? I'd think you'd want one atomic_t per NUMA node at least ...