Received: by 10.192.165.148 with SMTP id m20csp1060536imm; Fri, 27 Apr 2018 11:58:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrMomz6q21W9ocKpDN02L2sSnNhKei8r5mmlWsQHBhHah+N2QWyYQJPOD4RZw+IZFLdBJNA X-Received: by 2002:a65:60cd:: with SMTP id r13-v6mr3074550pgv.22.1524855521594; Fri, 27 Apr 2018 11:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524855521; cv=none; d=google.com; s=arc-20160816; b=VRv+GCQaiJNi3nG1gmHKNjLPvVJAaYWLBV3tvmT68yZQGGx4RJaknODmP79ow5cvlZ JCZ0FwQdwLN0zMgRgUoh0tLkz3buG6g8pDO5lPxJqmFAsN5DSBrFC9W0RYV0DlkbtTNG tT9XB1EseYebq627VH3eoJTgQ9KgsenySeUXjAQd3QS6ZJbEJLUbaqhCjdElA7y5RKjA LbblRHQ0CLL9V6TTn4c1j7rchG168RL7ipIREUcb8eednbOciSI97o3lmxy4McNxUNxS wFFaTxcZj7I5V9/3JHDn/GUk35t+eKcLWNGVHmyvArEuBRfJxQWknghcKDdDKhZkaLJv Ym7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Ltyb5edMq+j275JTuVaOpoKGQji6bV8JDyx57uzx0Zg=; b=laoMKBDVHGBRaJ9tXC8ky1blE16RMDBLgrV2NMf1bFrqj4uagfiqvwtbeDiAmSspLT sCpcqpU9IugjCFBu/4D+c4DLTXwxTiixWyEpky1s9k+U1H1Yo4SaaUmvkN77ypyuwf0R mN708x0VuW4h+b6dsiOhuyp/5GjTAWhLQH85VGxjzOUohFAzMLciqTBN93ArUWwIRPey 2qxhdM2jROmzETkhtLbC0UhH5jmVrelrY5kZ0E7uegizsx0TeZHcWwjhwJE9rcoCb4aQ FGIs9Qu/ThEkmxIVJB26dL3ZOga6aZKC7eehg6gaEiUSm0dykhVqf82EBOGmSWGENtrY vncA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=EPOnhnOW; 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 t13si1751257pfc.333.2018.04.27.11.58.27; Fri, 27 Apr 2018 11:58:41 -0700 (PDT) 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=EPOnhnOW; 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 S1758472AbeD0S5O (ORCPT + 99 others); Fri, 27 Apr 2018 14:57:14 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34082 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758069AbeD0S5M (ORCPT ); Fri, 27 Apr 2018 14:57:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=Ltyb5edMq+j275JTuVaOpoKGQji6bV8JDyx57uzx0Zg=; b=EPOnhnOWX0CBmJTJTqBegwKSq YwKv5NXA0kz2Ra/RTTEFfBg4Ks6psMLihF/wD9Kw1WnBWJ8lUNAjLm8uzXf02MDg0CcqcQJ3tRFHs azE42FzkaabRpiID4n2NqUIovtBYJAJhcnhdF2T4zulRJ2sBtba4SZ62FNKeFJA5NWc1AXuM/3m5v Q09Tq0k5vTU3RDK2m4+5SY8NPKVnvLMC1VygeXNLqEkeFpCEkk/cefJlO2CRLNvxIhAH1svojImfD qxDNMSsKD55RY0UHAKSRn1GREi2/eR1+PI6HsMqFMHVsA0H5WE6uNxHT/Jm4e/oRa6veHP+/Vyin1 FTg9kF7UA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fC8YO-00051B-Tt; Fri, 27 Apr 2018 18:57:08 +0000 Date: Fri, 27 Apr 2018 11:57:08 -0700 From: Matthew Wilcox 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 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: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ...