From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.8 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C05ACC433DB for ; Thu, 25 Feb 2021 17:21:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1192064F19 for ; Thu, 25 Feb 2021 17:21:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1192064F19 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 757D46B0005; Thu, 25 Feb 2021 12:21:32 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6EDFC6B0006; Thu, 25 Feb 2021 12:21:32 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5CFEB6B006C; Thu, 25 Feb 2021 12:21:32 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0097.hostedemail.com [216.40.44.97]) by kanga.kvack.org (Postfix) with ESMTP id 468646B0005 for ; Thu, 25 Feb 2021 12:21:32 -0500 (EST) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 0D7E418384075 for ; Thu, 25 Feb 2021 17:21:32 +0000 (UTC) X-FDA: 77857456824.27.AD4FDA9 Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) by imf10.hostedemail.com (Postfix) with ESMTP id 50DD54080F77 for ; Thu, 25 Feb 2021 17:21:18 +0000 (UTC) Received: by mail-oi1-f175.google.com with SMTP id l64so6798182oig.9 for ; Thu, 25 Feb 2021 09:21:23 -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=tTndZqlLDCUd2XBwTTHc6AaMS6fmFDewZml/qLHHvco99dn3Vpq68qKHeiu12A2jTe y4js9XvB6C1/LVAwBZg1nNguFQCztviXa1qXDTILJpqAnBCereWOGsDcKKdbRtmMQFiM 3b+Ab/L7RGjXvIWt9zv9gub3/YTddbtMlY4HZ8nA4+oQTr9a4wCzX0ueqkQopye7PLlY nnYAtXKXyxpsMpA9zylRkguI3Do8JrLYtj5nTrbFpWP58ompAWOwOtnUspFtEA3n5hq+ nL2gYmGe+5SwX0jZJyTwaeBCiL2gzkRunM8IAoreHtnam+tBwff/wwq/1yWENwoUdABm 5W7g== X-Gm-Message-State: AOAM530XWPwIBrQucPImnUo98QCMnbt3pJ11eTT/3X5H6fr8SHCTO0ti nCCb96E8/fB89IdXQdVOBXYDsg== X-Google-Smtp-Source: ABdhPJxT008u6Mx8R7E2Rb9HdqEjl0MRBTlVsijJC9UySPKw0Ot8rczlZ98TR1RSzBxf4YZiTnqu+A== 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 X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 50DD54080F77 X-Stat-Signature: hfp1tw8py36t7o793o9msiatk5y35fw1 Received-SPF: none (google.com>: No applicable sender policy available) receiver=imf10; identity=mailfrom; envelope-from=""; helo=mail-oi1-f175.google.com; client-ip=209.85.167.175 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1614273678-934522 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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