Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp352017ybb; Fri, 3 Apr 2020 04:05:09 -0700 (PDT) X-Google-Smtp-Source: APiQypLQ5aMUs5BJcerX9l2Ew3o0TNU7xnPrKuIP8/x/Y9AlfUU9/Ras5uZlG3z1QvTcgb7Jco0Z X-Received: by 2002:aca:4c12:: with SMTP id z18mr2437711oia.43.1585911909079; Fri, 03 Apr 2020 04:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585911909; cv=none; d=google.com; s=arc-20160816; b=htUSTd/rD/K2U9m3ZvJzWfBmvqHA9zwl4//pxqj312afOwOb7eqgc+0t53EvIkc55O V1BZxpsjX9iHZv0JtRZlazn878eTQ82qcm1rySsF/Hbww158hIobTD67q2D+zQa8C0y+ GXURn+209GU7EiLEYOdANIM3tnVgksb8Bx2uLcMNWrDEG96TTiHmhYt3K55Bbw9SZBdB pfVRwTidjuFw6fEo9LQ2wILVs0HywmKnbrwLx0bHuS2Mw5JF+ci51hP1/PX2+G5FHtnI ZWCWYsQaF3TBe81b1TXAHPgZAAhblbKeJuDcgOjnyb7kQkpT4s/6JkvsiOx3k8rKlf3X /9FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=uKZeJ3QaYya1YXVrP4ptZzn73kQ2uIA9YdMAiYW3qiU=; b=gc65E54kGeYGwLxV8AwAyghsTJ+qSK4crCJv/ldw9uwHvVB/8Ll2JQY1sqMNVngoSO /kmcE/jXOx0LH+ICkOEJiPQERHVy1UTl6mR1cXMSekH40xYGyEf11Nt3JABxAjBIgmK9 xQtAZLF68hEqbUZWJcfgaZE3f0IyMDiAh+H72+wyZizoiKMuY1yVxbtg1P1bQe2/1blH JZt4Ryl7WCgSRTXp/SIZ/4jNYFV11T54u0WZSGhXENbVWbJs0aJ7OjFhnfyhi6MfyRB/ IZdKEpHenSCcHTrD4Wj2e/wlSMpZ2HJKOPxE+PP6iwLX57bZVUgc+KTmGWapE4viMw+p 3+Uw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k13si3497713otr.165.2020.04.03.04.04.08; Fri, 03 Apr 2020 04:05:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727911AbgDCLEC (ORCPT + 99 others); Fri, 3 Apr 2020 07:04:02 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45307 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727792AbgDCLEC (ORCPT ); Fri, 3 Apr 2020 07:04:02 -0400 Received: by mail-wr1-f66.google.com with SMTP id t7so7969651wrw.12; Fri, 03 Apr 2020 04:04:01 -0700 (PDT) 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:message-id:references :mime-version:content-disposition:in-reply-to; bh=uKZeJ3QaYya1YXVrP4ptZzn73kQ2uIA9YdMAiYW3qiU=; b=bRFXPUocPPDDxK5sTdqdPo3dTezTWkCDR3FPrBlD70efz4aQukbSurMULRRL4RHcsv g+VxxG2TRkdFv7IOV4dZP9Rkqkp87IfR4AKm4oYyA5qTeQD6DIfjMe9SxH9fhH6rrPJF wyjHirBB1en9UNpCj/I1EPrzvT5lZpL096AOD3c27zq3oovx+DT9PYsnQsfr8HRzsJ/0 dXkb/QXv5UGrQEK4PrAHq61xAgHeNsR92NJUfnltfFwVoPdrAasUvoCn+XkjYnTNWjF7 638MoFZsuD1l3Gfg9l/ys5uLkPD8O0/Ta6TCrb1vTFV0D9QYF1Seh6XNjco+r5OdSO0M Uz2A== X-Gm-Message-State: AGi0PuZOKMJKOGT8m4HG9pXqEDlvtdc0oRB1+RK9GCoixqesGlKql90q ynOoFdbcilGEIMsb0asScQI= X-Received: by 2002:a05:6000:1205:: with SMTP id e5mr8928579wrx.73.1585911840404; Fri, 03 Apr 2020 04:04:00 -0700 (PDT) Received: from localhost (ip-37-188-180-223.eurotel.cz. [37.188.180.223]) by smtp.gmail.com with ESMTPSA id 189sm11405996wme.31.2020.04.03.04.03.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2020 04:03:59 -0700 (PDT) Date: Fri, 3 Apr 2020 13:03:58 +0200 From: Michal Hocko To: Jan Kara Cc: NeilBrown , Christoph Hellwig , Trond Myklebust , "Anna.Schumaker@Netapp.com" , Andrew Morton , linux-mm@kvack.org, linux-nfs@vger.kernel.org, LKML Subject: Re: [PATCH 2/2 - v2] MM: Discard NR_UNSTABLE_NFS, use NR_WRITEBACK instead. Message-ID: <20200403110358.GB22681@dhcp22.suse.cz> References: <87tv2b7q72.fsf@notabene.neil.brown.name> <87v9miydai.fsf@notabene.neil.brown.name> <87sghmyd8v.fsf@notabene.neil.brown.name> <87pncqyd7k.fsf@notabene.neil.brown.name> <20200402151009.GA14130@infradead.org> <87h7y1y0ra.fsf@notabene.neil.brown.name> <20200403094220.GA29920@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200403094220.GA29920@quack2.suse.cz> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri 03-04-20 11:42:20, Jan Kara wrote: [...] > > diff --git a/mm/vmstat.c b/mm/vmstat.c > > index 78d53378db99..d1291537bbb9 100644 > > --- a/mm/vmstat.c > > +++ b/mm/vmstat.c > > @@ -1162,7 +1162,6 @@ const char * const vmstat_text[] = { > > "nr_file_hugepages", > > "nr_file_pmdmapped", > > "nr_anon_transparent_hugepages", > > - "nr_unstable", > > "nr_vmscan_write", > > "nr_vmscan_immediate_reclaim", > > "nr_dirtied", > > This is probably the most tricky to deal with given how /proc/vmstat is > formatted. OTOH for this file there's good chance we'd get away with just > deleting nr_unstable line because there are entries added to it in the > middle (e.g. in 60fbf0ab5da1 last September) and nobody complained yet. > > What do mm people think? How were changes to vmstat counters handled in the > past? Adding new counters in the middle seems to be generally OK. I would be more worried about removing counters though. So if we can simply print a phone value at the very end then this should be a reasonable workaround. -- Michal Hocko SUSE Labs