Received: by 10.192.165.148 with SMTP id m20csp1047532imm; Fri, 27 Apr 2018 11:43:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp3zsragPGU3VNlfPMGxu0cSrDIgXNjcfEcoRpTuAH4X13Vx/xBF/LmAO+7jo3Ba5GgKhpe X-Received: by 2002:a63:7c04:: with SMTP id x4-v6mr2976814pgc.67.1524854581524; Fri, 27 Apr 2018 11:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524854581; cv=none; d=google.com; s=arc-20160816; b=ccXpoXO2SvUI2y0+IUgvMp+0vmDKcy1vILicF8do690xtUj9J7mtmC5ekkNvOXzYaQ K3X3eIApf1KEwf+yFZBJFK8Q4Su9G6rjPfVgX5fd+Stf8r/BnRE98T7gHUbBYMNVrEyv 1grMPsE+zDdOF0o1bNiMTulDhaVN2NBj+hiO86LuFSHal7SfHlw0tf55BZEXKmTgDOkT S7ZiFiL5jGMJ+UA6Oi4MSLZWjwO7m6ZCSd3SPwXrdjrjN51QDX6oAU38C4Vxj/aHmUeM 5/mRiIYQNbZBnRglIIhNE14Q+9xqmjei/GjYNnm7gN0DEUSdQWc2GZFPrNg/SpQVSFmA SSGA== 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=EpL1GMG6G+6wQ2sIh46Ybpqwne0L0ITNFeZwSUAiLXg=; b=rRFwbL70CIDztdlW77C+lznNg76CV70UiBljHIJ+/uIZLWk9eCoovNeE9MibjIQlFO oCLb7BPgYLD2a5feomJ/UlSnJEfKtXlOmMWK765VFYU5NsrBcBikVU7Z6kg9NkWpB23j g1JDwGwnfdnHrsoqN4n5qECmwK7No2I6VP9L8/QQLtOoq2MWY9JGai9j60ReLIAQcK0p nLavJcrncKg/6fpGThuawKM3/ZEKnOiI6Q2ltuaTtT/nRNdt9I+jHGW9HGFxizJ2g9QX jCs3M/uIABMN7W6z635874VmnihydWqTsxNq113JtjZxGceLkv3iGP1w7i375dOi8wik DSow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GCSfxpiw; 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 d16-v6si1737865plj.57.2018.04.27.11.42.47; Fri, 27 Apr 2018 11:43:01 -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=GCSfxpiw; 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 S1758236AbeD0Slf (ORCPT + 99 others); Fri, 27 Apr 2018 14:41:35 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35353 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758149AbeD0Sld (ORCPT ); Fri, 27 Apr 2018 14:41:33 -0400 Received: by mail-pf0-f196.google.com with SMTP id j5so2091486pfh.2 for ; Fri, 27 Apr 2018 11:41:33 -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=EpL1GMG6G+6wQ2sIh46Ybpqwne0L0ITNFeZwSUAiLXg=; b=GCSfxpiwI+rAslJsRT6zLXBbmNzdZUXLS4R+pPK23l8q+qXLu6bAF/BMLHIfAn+2IV ymm0ke5fjSnjJTIhvmpd4i4Z6bIQ45aSW4wQyiovnfgyfP3DbdNANYYSNRGdptWboJFO 3IdG/SO9bwDByKgMgZCgUOpnYFMkpFY3aZRTfoCkmd9kMBbILE/buris2vt/YD9E0T4q ip7TEYUrxRYlH2BXJ2f7V9lFRlHvPHJnx+E2OzB8C1NVsiGzVyZd+n45vO4FHWZGijaE v5/v5Z+iN6bzmREv++0Vh6B96FHKEeXAU69qSpZwqbQ2SQT7kag9XvOqeGGhQ6GVGtze 0RUw== 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=EpL1GMG6G+6wQ2sIh46Ybpqwne0L0ITNFeZwSUAiLXg=; b=S+arBEYpJ8zBq7n1Of/xtCkNu0a1jw5TXrn3wIl2hEbaPagi/jz7GEaFgytv/5/pbJ fhDVz+Eq0Ti4dR8HAj3hjuQ33dDU+fbIoxxw6rg4EtjFQ6jLhSMmFiUCRu+TLSyWtJoM seoWjNTHBKDq46vxaqLGiKmCmfpHFinIE71IEdP+b3VN1AWV8gl0jZ9ZX/vNDW2PVBvj YJhgKvCtUnpQMemd5XlU9YTY/5G9544jglk1jhPfY80MUQRh/d+JYsJQs0yeHLYBay5I 1sctFqd7Y37AbjlCTKXuj2wxqObtzGT+gf0Enz42QPalzH99ro6U5cFladUuUBYltqvH UoJw== X-Gm-Message-State: ALQs6tDkdhK0fY/oUmE0whklh/l1XgSBgo2Ht8VYezaXQlEMSMv7Olai hae9SXA6zC3lWKQBpP3+Tk6now== X-Received: by 10.98.251.20 with SMTP id x20mr3173563pfm.48.1524854492789; Fri, 27 Apr 2018 11:41:32 -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 o4sm3460359pfg.129.2018.04.27.11.41.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Apr 2018 11:41:31 -0700 (PDT) Date: Fri, 27 Apr 2018 11:41:31 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com 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 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> 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 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()?