Received: by 10.192.165.148 with SMTP id m20csp1200015imm; Wed, 25 Apr 2018 14:21:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrDjKDGCKOO8w1Gacw1fGmHwk6S4thjE8O9evkfaqsqiSIRHUfTqBtkcx0BZhZ5mlLixQOY X-Received: by 2002:a17:902:bf4b:: with SMTP id u11-v6mr945334pls.30.1524691291771; Wed, 25 Apr 2018 14:21:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524691291; cv=none; d=google.com; s=arc-20160816; b=xxuRj32i4ObEXjFs62RlyPG0j4EJ5SmIKbYU9AIbz4kVr0istxBhJX4YlyDjLKLO3p 8YLHUCK3dP6PACTL/1fOjgoEX7rAKPSL5NbaO9yznkxCcEXQ31PgSWQiO0ShlhD+hNNF S75UcXqXLdwimBT2xSqu6TYs0IfAZ9M3XV+8L9UC0Lvzc7V8evBSi2EaYf1VhMzTXYdW ZxQ2bmKCX20A8gYdlTQ7OgaDcro3Srlb/HS2/k1C/5r2FEG2pWwOCbTuZaRnm6MetS/l IAJelCsNqbnwizkfl27vEw3ab51FVWbS7FAr5ELyv9XwmJoD9KbHDbpWdWzfPXmfWfFr VsUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=t6NTOZeYa+vJlTLpy4i9rvYs49lFSY8n6ILSaSFmcfc=; b=ji7QD8gFe1WrXbHnLz0Z245nE/iAYo45OJSH8/jOs1EQDzoGfvH0t5fwRIIxAxcuH5 ot6LAFOlKYiCOkrZTnws/GVMk5QdBUQGnnzslBb+Vexf5uY5jDRMGsPf3IviQOEw5WcE 0nGhtr1FA1Olfpy88hUf0xKMpZOY6oUbZm1E27cPIlYvgdeTn9qYQ+X9zSMsy+3/heIA I5ruf+Vi24o7kmc8p0IOSU+QYrd+/OCDY3hvD9Co4CIUiuWZihegchvZs9ef95ybMBmG pvAIz3opyP1D4s5lV8UyZKGSZRC+3WyKDJOi7sOCE1/CT/35CBo8+w0BKAWud3ndVkHG g+9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=n3FML7dG; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f132si13772983pgc.327.2018.04.25.14.21.17; Wed, 25 Apr 2018 14:21:31 -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=pass header.i=@google.com header.s=20161025 header.b=n3FML7dG; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752915AbeDYVUL (ORCPT + 99 others); Wed, 25 Apr 2018 17:20:11 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:37218 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751973AbeDYVUJ (ORCPT ); Wed, 25 Apr 2018 17:20:09 -0400 Received: by mail-pf0-f193.google.com with SMTP id p6so16289989pfn.4 for ; Wed, 25 Apr 2018 14:20:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=t6NTOZeYa+vJlTLpy4i9rvYs49lFSY8n6ILSaSFmcfc=; b=n3FML7dG+p4IfO7V3LwFp+cjMClySQWkOpxGgoirDy4r2DzcDqlddjpD2A/jp7F47q OxLwhtYNa76I07Nz2eYwtMCJnwA915gKWxbu/ZxduZLyTcg2ZSg13hkAJX/c4ue2aLaE 62BGl+7JFIHMpTSMF+JCWMoVlis3UdlaHkxf35Ohx4sKu+k2XNEmhOAtFlOLAcZeI2Bs AtFgh11t7JVBePHNznZd98lp/UHpt5yp6IfhnTFpjFqVwXQxcQH3nn4YpXCPOXGUKcss IEQaNokPjsENPBDdwNo2+6E1nPahpdDTFIZyzdc1K8yem+S+qgqLT4/L7tGWL9+0a5ho w5lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=t6NTOZeYa+vJlTLpy4i9rvYs49lFSY8n6ILSaSFmcfc=; b=AhWFW+LRulKtbxAEmHkpVko6IcNh+zZn38YGMYYPP/G28HjLnlcu7BwyqPeghRDLcD vyANPd5ty7pEhXawxt9aLpWvNIEp1Xd5RsNNe789Rh+vzii/Lf8nQkawn5jO/lDjHE+m 2uJFi/vYGQqI9SmQMLGfSGmSjcpJ/WAOD8H2NeaG8srtqjnLH/NVqZfFoQYFZkn2/8Z5 a82MKnJBx2bpAKbNP2Ga9WYA79hO7lgyioVhLvPvydDi47ei1BZBKALUJo4AIGxiNFCV dBr2W0JiQwLF59q3+82+n4H7ga8YhiBLb+tvOLIyYfaOQzqa49V7UWTTAFMBjBbdWh5u Mj9Q== X-Gm-Message-State: ALQs6tA+nHCiZKC7kjaNMMPom8GSItXj0Jpj/SNDYdGk/ZafQAXSGJkE +GzZ8YyzE0aJ/uhD6mY+FlQgkg== X-Received: by 10.98.254.17 with SMTP id z17mr29412085pfh.105.1524691208342; Wed, 25 Apr 2018 14:20:08 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id k126sm38839932pfc.142.2018.04.25.14.20.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Apr 2018 14:20:07 -0700 (PDT) Date: Wed, 25 Apr 2018 14:20:07 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Roman Gushchin cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, kernel-team@fb.com, Vlastimil Babka , Matthew Wilcox , Andrew Morton , Alexander Viro , Michal Hocko , Johannes Weiner Subject: Re: [PATCH] mm: don't show nr_indirectly_reclaimable in /proc/vmstat In-Reply-To: <20180425210143.GA10277@castle> Message-ID: References: <20180425191422.9159-1-guro@fb.com> <20180425210143.GA10277@castle> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Apr 2018, Roman Gushchin wrote: > > > Don't show nr_indirectly_reclaimable in /proc/vmstat, > > > because there is no need in exporting this vm counter > > > to the userspace, and some changes are expected > > > in reclaimable object accounting, which can alter > > > this counter. > > > > > > > I don't think it should be a per-node vmstat, in this case. It appears > > only to be used for the global context. Shouldn't this be handled like > > totalram_pages, total_swap_pages, totalreserve_pages, etc? > > Hi, David! > > I don't see any reasons why re-using existing infrastructure for > fast vm counters is bad, and why should we re-invent it for this case. > Because now you have to modify the existing infrastructure for something that shouldn't be a vmstat in the first place?