Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2799049ybb; Sun, 5 Apr 2020 17:14:45 -0700 (PDT) X-Google-Smtp-Source: APiQypIBKJoc1Ol5Ckb+LKYebFJ6epk687xg27Iz15ub3Q+Uqw/a8CPtwg4kHZRdnhkF0eSxfzu/ X-Received: by 2002:a9d:5e0d:: with SMTP id d13mr15936167oti.162.1586132084867; Sun, 05 Apr 2020 17:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586132084; cv=none; d=google.com; s=arc-20160816; b=v9xiCPigVmpDbfCIlSF7KJSAYx6gZKLSFmzvWGpwQ+WhC8mB6T4mbkjYU2a/vwew8I O+yVDnYWHHZO4lT6o+8JJm502DOWX4b5De1bbky+I1R0XHzY6bFhse9T+LLE27b0nRTV UYn1DlMPUlrb748EqPReonXjCkPMIZq9qNcdg+WVEv0pjVWJgSl0H7qPrRKix7ztBZwS eroe1ok0h/bf3Ssxgbg/aTqNxv7EgkhcLEmr78N/y2sahnCKY68zNExi1dmeS2bo6qte DxZMKeAQsTa955orJARlyKTgubSCqhhnkkyNNWNKbYnBuB8M9o6eI/sdUIIuVWLHQoe6 N3aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from; bh=Uysoc/AVe/yGHjIdogWG1nYeCLjC0IyUaMJ3kyrm8YM=; b=sVKrD8XEmO5JJjP0lZN5mspYu57SkUXJ+8kSX7BH/S3tGtYa6g3ReCYvpYkZw1MNuF h6XD41p7MqnwV0Ape00OCwiRPGgztquCV4rWxkFFInXokoioUOZh/OX+9fzXW3+5bdB6 W9tSG5v4H3ihwc5Oa2WsnT8UBRDUmkOBFh7LqhCb1A0m2VqA01guPtvRIBEjQK77xAVX GKj3s2fJbT8Avkzp783ACqf2+eOXzpCJqZNKLNHGF2GqciLKuqzLKH1+Q4pGCUxbi9wC 2oHZT1Hbi71B+JdEgyVk0uszP1GzsfK8FHGcs8wIiEbtsPfLM8UAziOaagiHPU/tHIMf IzsA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k18si7793688otf.285.2020.04.05.17.14.32; Sun, 05 Apr 2020 17:14:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727509AbgDFAO3 (ORCPT + 99 others); Sun, 5 Apr 2020 20:14:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:34064 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbgDFAO3 (ORCPT ); Sun, 5 Apr 2020 20:14:29 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 83147AC2D; Mon, 6 Apr 2020 00:14:24 +0000 (UTC) From: NeilBrown To: Michal Hocko , Jan Kara Date: Mon, 06 Apr 2020 10:14:16 +1000 Cc: 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. In-Reply-To: <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> <20200403110358.GB22681@dhcp22.suse.cz> Message-ID: <87pnclwjvr.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, Apr 03 2020, Michal Hocko wrote: > 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[] =3D { >> > "nr_file_hugepages", >> > "nr_file_pmdmapped", >> > "nr_anon_transparent_hugepages", >> > - "nr_unstable", >> > "nr_vmscan_write", >> > "nr_vmscan_immediate_reclaim", >> > "nr_dirtied", >>=20 >> 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. >>=20 >> 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. At the very end? Do you mean not have "nr_unstable 0" appear at all, but having "dummy 0" appear at the end just so that the number of lines doesn't decrease? Am I misunderstanding? Thanks, NeilBrown --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAl6KdFgACgkQOeye3VZi gbk9eRAAgpuSPME4j7VuvpAzToqgPRWUqCepTVE70zZqQHFCfaVdhSnZZPPW6qhi vrup/0wKoQBzB3zHQDDX9vEeIiwO5wyC3FTTN4moD8LhJ3i+hsixC3GPBw4Ptr1p V5scdcdecrGMOsAXcOIV9VFLpHe+Jn1ScakAPPU7mWi7mhUQ34U1vjTBTlPzzOQC 0mWJtmD4i8IIPDwX5W0g6cbDQNRmgFnwmPrNLIw62knSZgOZHb7tjG2MZ4HS73E5 xle7reCfleLezyB7HbJwBY352Oz6kUhb8ogiXcDk2iP8c7CqciUvkp20yPM2IkLB sjx62r5PKer719o0BdB+ISCJmQJ6IycMHXB9aptLoWi0Xw3JvOwWvY5C/bgDq96E R6R7Ekb77H8mhZmBNGYjOqJTib9QY19nhrp9PcAzlD8g2/5fw6KI1kW/K11ucaGa QBErUxFm5dreRivJZklhgLUStMd68i6ALdiNu8XQLoVILfVCGDaLJo5tNK9nWzGr sJ//OTsSa5/qw522j9EWHju8SB1jDgmG5upoyhxzTbNXhGLYbfwbVRjtZQdEwtU+ HmLHW7w/EGBcK4XaMZHp1uKUClxwwCRR4y+0pj51mNtfu8zZ+KqHXsNo+SZjJ8fX GQ05sBO9+Iayuy+Todsgcy5MXerd2nETnq0HNJBdo8gpZZkbURk= =znt9 -----END PGP SIGNATURE----- --=-=-=--