Received: by 10.192.165.148 with SMTP id m20csp3919190imm; Mon, 30 Apr 2018 08:34:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpFZ9y2q2JEtN7noEkRxdgAuMR8ohfzZ+YmvHiMYnLR1BuYuoY0iZIFW05DJxr0PbRgsCbK X-Received: by 10.98.8.69 with SMTP id c66mr495284pfd.189.1525102464714; Mon, 30 Apr 2018 08:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525102464; cv=none; d=google.com; s=arc-20160816; b=JOI41hxj7aymjKvR5by8XCueqKGock9qw0Q2jwEze4yP4H/KdWsFK+mUYqrdSLdcq/ WsWNT44xsBr71TGX9adWwQvCbhrqhjRczBIfCaz8VE3jA7CgfrvmxWL3e1zue7S1D+02 h91ToxKkF1fPUteJQOca51rhm1cKHFgjwefmWsCWm2ibzpqMCJb89oE7gT1gA+/DN1a0 IN56CTo6q4fGW9+ZyvDqJZdIVKoCDtkFGCJQ+ml8ikVWuOv5Z9qS4XWcShX0XG3LpxPY sijPM5DO24vHMM1Q8DlgvV1Vr7lIfwZWuCUB3EPyohkwxkSbEtMsidCMSggDfCdVpamg 33Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=DQpi9fxr1mnTEqokg5tTxmRTAVfa3x2uOZPAiYuGt2s=; b=LXud4DgBWxbzZMuJZlSfe8dVb1nZZTIBOiX/q5Sa/FaBlmUHqXHbskpynrjh3SxWtD G/gBuWBnkC2jLWSwOWN2y5ijF8rDP0Qrl6ZftazvVCRsG/0BUJ1oFcpTpUlIqCfHyiIK VAjxV+O1XgFUc46TwQbqVT+7Te18BQefCpanwFjLYege7CnzyBw/1efwNGeuqIP8plmB xRlVxnEb7BI8Rfw3iL7aEQ5XlR17B+e8Ayxlpm2jJBeeyvsiXXZ0CJo7VDPsJRYW4fqx bHpt8MlXhiuRmt0PMsa6wMtEc+zbPwDsGpzOw9VALkEkRg725QMPPLOZWuAa/VQ0E6db KmPQ== ARC-Authentication-Results: i=1; mx.google.com; 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 a21si7413517pfo.31.2018.04.30.08.34.10; Mon, 30 Apr 2018 08:34:24 -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; 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 S1754626AbeD3PcV (ORCPT + 99 others); Mon, 30 Apr 2018 11:32:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:46990 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752534AbeD3PcU (ORCPT ); Mon, 30 Apr 2018 11:32:20 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B61D0AE49; Mon, 30 Apr 2018 15:32:18 +0000 (UTC) Subject: Re: [PATCH] mm: don't show nr_indirectly_reclaimable in /proc/vmstat To: David Rientjes 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 References: <20180425191422.9159-1-guro@fb.com> <20180426200331.GZ17484@dhcp22.suse.cz> <99208563-1171-b7e7-a0d7-b47b6c5e2307@suse.cz> From: Vlastimil Babka Message-ID: Date: Mon, 30 Apr 2018 17:30:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/27/2018 08:41 PM, 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()? The counter is already in mainline, so I think it's easier to simply just stop printing it now than trying to replace its implementation with one that can cause cache ping pongs.