Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2861062pxu; Mon, 7 Dec 2020 18:46:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwAXPSaWpDLTb6ngksZ9NNdlTKLlhNKQ+EyTaQPXMIKm6BxqJLQro8vbdTMlTlQGJ59k4U X-Received: by 2002:a05:6402:2292:: with SMTP id cw18mr11211888edb.336.1607395597399; Mon, 07 Dec 2020 18:46:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607395597; cv=none; d=google.com; s=arc-20160816; b=F/yjjBDa5QeZdv3t83NsUHBBBRw0up+t0YTQ8mMJhduYMWKgM7mxRQOGyCkhL1mBAV OKsTbDmqf9QpyFLK9or4H8lRY0xuzy7Kjpc6phUkZrFQNE7xwtApWYgWUhKdNjGN6FLQ FtF5INFN6oVLJu/Q4Wh5FBdOUBcDjQ0JQCWodhG60il0EtmK5/7xjZdxqYDrJcFCaTOK oDkKgRF2a5HwKI39HQvVeXmQ+n9WyMUsp28FGACcCxAa23aMfUv3kjxIwHkIhSBCgARa nMVW5jZa3ublTx0L0xDRMmWCNKxF91Zzgwr5j3+KM9JJc4Jon8nGJIFiFFDGomCatuLi O8bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Jdb7C5Aq6omc7IwwxIaz9ZxTwUguDQHTm2UuR3rHd+Y=; b=KBOaygEpQ3/PLQpwJac6RssGzR29+g92fUeOswME9w+zqdMd0oS/aWER3EC6xlvdch BEZrjd9wn07Jkgtzu0YRPERJH/XbThTk6hWHP5vNEcECeITinPIKLwcShmXLu3Ikvtxs ALZGXyr4yaQzsGrMeTjswkxyPs7Pir4Hd3IF5BYhWOmsu9ePTOvDz9vOdmCg4gQ8x9Tg PnGb6/ai2ydXof7srx81CY5J7mqLlJZY+dpHH+unfPH0lyiQKD89TKXbweI5JUc2xDfr tn0oE17lRX5K00Yp+MRN/+OQ4auba9Y7ez5HdLezm5xcFQUS60oNtMyi8F9q7d3jGncW xLxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b="ydR/LN6K"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si7858454ejw.724.2020.12.07.18.46.12; Mon, 07 Dec 2020 18:46:37 -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=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b="ydR/LN6K"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728116AbgLHCoP (ORCPT + 99 others); Mon, 7 Dec 2020 21:44:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728081AbgLHCoO (ORCPT ); Mon, 7 Dec 2020 21:44:14 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C13CBC0613D6 for ; Mon, 7 Dec 2020 18:43:34 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id p6so6198647plr.7 for ; Mon, 07 Dec 2020 18:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Jdb7C5Aq6omc7IwwxIaz9ZxTwUguDQHTm2UuR3rHd+Y=; b=ydR/LN6K9fneUKUhkvE0+Qv6s3BVCHWfdKrE8qmGsJQvTKxAvH9WDn3PvEV1YToQ++ ENpqHWssU08a9ws5Cz79XXu2j8Q0956aFERX3PY4UC1SSHoXCBCdCGV/rgwtWULf+KOC szt0cHALCdHrYWL4imlZnAkQp9vw0sgOXP0WXl1BcK0B2RH9Ba1SV/nEg7H9W2ZSk00y risTzoaMsDDNspp3wyshZifGP61j6MGm1spuBHXbJ9fRUy491LUSUAXxifd/Pyb/+qJy R6tsRdYWrGbaeU6n5MgdwPuTfvydofDO5YHGF6V+LZJ0YJeNSm19aKSbA34QXd277huE dLwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Jdb7C5Aq6omc7IwwxIaz9ZxTwUguDQHTm2UuR3rHd+Y=; b=UWPkuXwYei7JIP486dV+09pTFx2witzF5y3ArxrEC8R5PhLH7kQDNNVhc1Dazulcw/ RUdtMd8eY0XG0CJH6k6ZrfcycaDpZWMKfvSLGQ1r1NZZYSIRoc7tskDAh66E/EJ0BhMh BcjOC6S4brr2N44ChS8DD4l4iB71tULMAV22o/XYVYXbYgkwM6119456bux4rRCTP7ia PJcPU9zodn1ugbwJAJI+2Z7vhsFY3FEMbcV/w4H1j6BjTsu7cBflgvRja3bft2mJubuI njZNy6CiYO1WMTsBP0HC5VoGDFimJiWDgU2z8mWgsSUwEVtBIU4FiQP7z/LF1tijxR8h svWQ== X-Gm-Message-State: AOAM530Ej9w9AzASWBVVyLYSnNrjOlIXSaRG0iOUEchuRI4MyEfnNltH bBC05ycHB4DVeG9d2Xge4OD+LTQJZHi7GGOrGO8LLA== X-Received: by 2002:a17:902:bb92:b029:d9:e9bf:b775 with SMTP id m18-20020a170902bb92b02900d9e9bfb775mr19302708pls.24.1607395414374; Mon, 07 Dec 2020 18:43:34 -0800 (PST) MIME-Version: 1.0 References: <20201206101451.14706-1-songmuchun@bytedance.com> <20201207130018.GJ25569@dhcp22.suse.cz> <20201207150254.GL25569@dhcp22.suse.cz> <20201207195141.GB2238414@carbon.dhcp.thefacebook.com> In-Reply-To: From: Muchun Song Date: Tue, 8 Dec 2020 10:42:58 +0800 Message-ID: Subject: Re: [External] Re: [RESEND PATCH v2 00/12] Convert all vmstat counters to pages or bytes To: Hugh Dickins Cc: Roman Gushchin , Michal Hocko , Greg KH , rafael@kernel.org, Alexey Dobriyan , Andrew Morton , Johannes Weiner , Vladimir Davydov , Will Deacon , Mike Rapoport , Thomas Gleixner , esyr@redhat.com, peterx@redhat.com, krisman@collabora.com, Suren Baghdasaryan , avagin@openvz.org, Marco Elver , Randy Dunlap , Joonsoo Kim , LKML , linux-fsdevel , Linux Memory Management List , Cgroups Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 8, 2020 at 4:33 AM Hugh Dickins wrote: > > On Mon, 7 Dec 2020, Roman Gushchin wrote: > > On Mon, Dec 07, 2020 at 04:02:54PM +0100, Michal Hocko wrote: > > > > > > As I've said the THP accounting change makes more sense to me because it > > > allows future changes which are already undergoing so there is more > > > merit in those. > > > > +1 > > And this part is absolutely trivial. > > It does need to be recognized that, with these changes, every THP stats > update overflows the per-cpu counter, resorting to atomic global updates. > And I'd like to see that mentioned in the commit message. Thanks for reminding me. Will add. > > But this change is consistent with 4.7's 8f182270dfec ("mm/swap.c: flush > lru pvecs on compound page arrival"): we accepted greater overhead for > greater accuracy back then, so I think it's okay to do so for THP stats. Agree. Thanks. > > Hugh -- Yours, Muchun