From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f197.google.com (mail-pf0-f197.google.com [209.85.192.197]) by kanga.kvack.org (Postfix) with ESMTP id A77886B0005 for ; Fri, 27 Apr 2018 14:41:34 -0400 (EDT) Received: by mail-pf0-f197.google.com with SMTP id z22so2217597pfi.7 for ; Fri, 27 Apr 2018 11:41:34 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id g19sor479963pfb.70.2018.04.27.11.41.33 for (Google Transport Security); Fri, 27 Apr 2018 11:41:33 -0700 (PDT) Date: Fri, 27 Apr 2018 11:41:31 -0700 (PDT) From: David Rientjes Subject: Re: [PATCH] mm: don't show nr_indirectly_reclaimable in /proc/vmstat In-Reply-To: <99208563-1171-b7e7-a0d7-b47b6c5e2307@suse.cz> Message-ID: 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 Sender: owner-linux-mm@kvack.org List-ID: To: Vlastimil Babka Cc: Michal Hocko , Roman Gushchin , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, kernel-team@fb.com, Matthew Wilcox , Andrew Morton , Alexander Viro , Johannes Weiner 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()?