Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp702323pxb; Thu, 25 Feb 2021 12:51:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzstRxOHHLWZ935bgMCkEWPO6elUgKcsDdGplC73bRsgkldheeszgpMzfJbHjhbB/W8f0lx X-Received: by 2002:a17:906:9259:: with SMTP id c25mr4569840ejx.37.1614286286255; Thu, 25 Feb 2021 12:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614286286; cv=none; d=google.com; s=arc-20160816; b=riIxkWHYwac5h+qrqlJJec0aJbCRmELXRg6x7mhdpYUO2svLlbkpbjVZNXBuBtWthm iqL9H8Kh0I7gCDAALTTjbk1L7xdshCY0Rfdg8tPB+rF9F24I6XTrwE8b7DLXmib+Q9f1 7j55+BdqhDIeR6zXzEqAqyXLP6TYSIXZGMHLdZVeezsD/zbmIHgRr1VguVHdkEPTjWJw 0CJSh6Fo73izkNOq3pEjnqINpPh+2E3NGVheGVod+5nV8A7ydAGl9x3/Ym7KGGN++XAb EiOOTNPZyp4GHaGjabIhMU12SS61xNJekwDIiwFsUCQI9AY9gJcgqeuOabRy7a3nUvfR RTrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=QP8wik+2o5omyOnnYki4P85PvKiXC4TVtgCE2LHXuUg=; b=RhHZOAcA+sXiZUnLJ6bN04RqPg9CtyXvceWPZ4W3rOdFs6XZQctYnyc+LjXlm3ejxl Oy4L+47AM1VPDdWEJ/44gMk8/6t2/WhD6E+M0N22keLTBEEQvpU9ENkaERax+hMxn8/S tkcP3Msqjux/k+6+AwdgJ4f3atPP27FSoaA/58FAiMws2Sb1FyTKdFV++zFmnYvYzJLL JLUmNLMRLdja7qg2pFAlzK6slAeavRQzTUUNYjsc9D+I7EIketESu+s9aA5ZXo33MFmP nHXmeo9XHFcciUbT2MRe/1wYSkvYk7zxH2pgUsdKMVIg68V8mLFmbRQWnuRDhqEw4q8T ixdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KfPK9SYm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a11si4112164ejr.282.2021.02.25.12.51.00; Thu, 25 Feb 2021 12:51:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KfPK9SYm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232938AbhBYRWG (ORCPT + 99 others); Thu, 25 Feb 2021 12:22:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232746AbhBYRV7 (ORCPT ); Thu, 25 Feb 2021 12:21:59 -0500 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2536C061574 for ; Thu, 25 Feb 2021 09:21:18 -0800 (PST) Received: by mail-oi1-x22c.google.com with SMTP id o3so6797595oic.8 for ; Thu, 25 Feb 2021 09:21:18 -0800 (PST) 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=QP8wik+2o5omyOnnYki4P85PvKiXC4TVtgCE2LHXuUg=; b=KfPK9SYm6gD/9Iv7tlbdngynvJMG/5ekBBKEfv0A89GryOsGFaL3BHQW2BYtE1cplT Dq+mg3kRrGUgQkkJL47CLVd9aYgeF3REdYPdQSxyXL+cNTiDRQ2e69qPiWDc+C4HVCAV 5ntef4kB8VHzUM6jrnJ79Zu4Kk3ymdI+WuYZNAWxZl26HFfGmeI8fcgMZjt9tG8GqEqB JU++T4rni/U2/vv1OOVxqK1NrRBtG/ZJxoJ6Ad4/j8Z/9HzrXIOBBmnmdQ6OAbWFMTRF jXhmXP4/210cF8CxzipMuy1PV3Ix73ZeHyUQNkNM3TpDI6qCeng8AIAmDEH+fUZ1TgyO S3BQ== 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=QP8wik+2o5omyOnnYki4P85PvKiXC4TVtgCE2LHXuUg=; b=bUp7qVSkMtzY1fON8StiFQpcTvsOiEOJe7k5UNzACoL1AFSGfxWo5aZyolovAV1JNx YoQbMMfwlnFuxUe/3Xr5OlDTaL82lO6yNS2JQ7v51MNOm0Ql33SnV0Ao2NqXzfmmfcAV 54eHntkn7D9+OuGccv/0OjsvGO3DxoPSiXG24lunlNIJtroN2xoiXLkA6OMx4/CDZbPN LQhg2ZwVna2DW5ALhWOcfnJ216Z42rUUjAiFp1NE5jgwL23lZbu1r1JtVU6ENPM13HJi FSJb4r2yyS9hJFrzdMgMcyqqSR3CKRvssqiw+XITP2tRoROxruR+W8ufNAAVooPzM0K/ qYrQ== X-Gm-Message-State: AOAM533gfx0FvB7lYc/gQjxgJUxOlfesQ2A8UAyMHjaMPwnKFO3d5Vi2 4hTkDm5c/yAFT+6vO+OtmqWFnA== X-Received: by 2002:aca:5f44:: with SMTP id t65mr2721122oib.46.1614273677560; Thu, 25 Feb 2021 09:21:17 -0800 (PST) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id g18sm1235379otq.33.2021.02.25.09.21.16 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Thu, 25 Feb 2021 09:21:17 -0800 (PST) Date: Thu, 25 Feb 2021 09:21:04 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Roman Gushchin cc: Hugh Dickins , Andrew Morton , Johannes Weiner , Michal Hocko , Vlastimil Babka , linux-mm@kvack.org, kernel-team@fb.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm: vmstat: fix /proc/sys/vm/stat_refresh generating false warnings In-Reply-To: Message-ID: References: <20200730162348.GA679955@carbon.dhcp.thefacebook.com> <20200801011821.GA859734@carbon.dhcp.thefacebook.com> <20200804004012.GA1049259@carbon.dhcp.thefacebook.com> <20200806233804.GB1217906@carbon.dhcp.thefacebook.com> <20200806182555.d7a7fc9853b5a239ffe9f846@linux-foundation.org> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Feb 2021, Roman Gushchin wrote: > On Tue, Feb 23, 2021 at 11:24:23PM -0800, Hugh Dickins wrote: > > On Thu, 6 Aug 2020, Andrew Morton wrote: > > > On Thu, 6 Aug 2020 16:38:04 -0700 Roman Gushchin wrote: > > > > August, yikes, I thought it was much more recent. > > > > > > > > > it seems that Hugh and me haven't reached a consensus here. > > > > Can, you, please, not merge this patch into 5.9, so we would have > > > > more time to find a solution, acceptable for all? > > > > > > No probs. I already had a big red asterisk on it ;) > > > > I've a suspicion that Andrew might be tiring of his big red asterisk, > > and wanting to unload > > mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings.patch > > mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix.patch > > mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch > > into 5.12. > > > > I would prefer not, and reiterate my Nack: but no great harm will > > befall the cosmos if he overrules that, and it does go through to > > 5.12 - I'll just want to revert it again later. And I do think a > > more straightforward way of suppressing those warnings would be just > > to delete the code that issues them, rather than brushing them under > > a carpet of overtuning. > > I'm actually fine with either option. My only concern is that if somebody > will try to use the hugetlb_cma boot option AND /proc/sys/vm/stat_refresh > together, they will get a false warning and report them to mm@ or will > waste their time trying to debug a non-existing problem. It's not the end > of the world. > We can also make the warning conditional on CONFIG_DEBUG_VM, for example. > > Please, let me know what's your preferred way to go forward. My preferred way forward (for now: since we're all too busy to fix the misbehaving stats) is for Andrew to drop your patch, and I'll post three patches against current 5.12 in a few hours: one to restore the check on the missing NR_VM_NODE_STAT_ITEMS, one to remove the -EINVAL (which upsets test scripts at our end), one to suppress the warning on nr_zone_write_pending, nr_writeback and nr_free_cma. Hugh