Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp125483iof; Sun, 5 Jun 2022 23:07:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWBhpmvm1G03dyinl50IH/mmeATvFzvwVjQGPwl+1lhH9nrsedTWm2upuQLq4OCszFfeDd X-Received: by 2002:a17:902:714b:b0:162:ed0:25e5 with SMTP id u11-20020a170902714b00b001620ed025e5mr22609181plm.168.1654495652642; Sun, 05 Jun 2022 23:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654495652; cv=none; d=google.com; s=arc-20160816; b=kU3Cl8oARen2xIHnCH5yLkdxUohmUplmCQ546VlbTdXN9mvnIYR95lXC8Y4IxLDh4h 6796azc8tbk5i65zH5GbdPzDmxUujLTx09drUYK1ty9gKO8fjJ2htKMsnylYcbnkNSQE suVICjQ5yYDAm3UwBy8adtMH5nCQhL9sZNNTU0v0X34v+tP8y+X0ahAlzM5+nsRFdl8X NQx3S0JYkmt0TgW6YHisJvT1miB68D3uzHknREOSp1V9y5doWOumW6Hs27jdVAgqZ+6U MsgWUU1JVBdQzBL4DLUEcEiPyBS5wvxDvxhqZZ3zoTbEt3ZoD0gMo+oF+A1dc35axLh0 WGOg== 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=jdDGlC0lns52Uw6ScJUD6BF1PLqziLviHb7d6w1wTpY=; b=Z+7owYTLMkEtUzZf4lrIZPtlqrZ5EOedekOAx7HXYZkj/g6fm7/22ycfdP9xSyADFa g8BSdd6rS9BtFKaEXQBikLq8W8Uc5BD8t6AjAp3jUv6V7atAEPOLXwMTA3KjkI8e/6EJ 2VY0uIE2kkEpJL9VLYI9qpj6Yz+CoEriRQFhBT6EdBf0yCdSZ1ks5Ve9I4rhvhHQQ8B6 FhvHiXZBngx09r3+4h9Xt3U+ujoKSq0qyPpc2qvexkwXwra+oaeVT+l4bKKIMFzK3+yt fz14fxPoRHOf4v5jlV69S/JnjQ88hCADtF/vRxN9RtEaCN+jyRv8OkazMZ8SjpIYSLWb G8hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=a1Zr2vgN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id nm11-20020a17090b19cb00b001e0552f722asi7789383pjb.87.2022.06.05.23.07.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:07:32 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=a1Zr2vgN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 45600D7724; Sun, 5 Jun 2022 21:57:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349834AbiFDAr2 (ORCPT + 99 others); Fri, 3 Jun 2022 20:47:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231961AbiFDAr1 (ORCPT ); Fri, 3 Jun 2022 20:47:27 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0917D1FCCF for ; Fri, 3 Jun 2022 17:47:26 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id b135so8293022pfb.12 for ; Fri, 03 Jun 2022 17:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jdDGlC0lns52Uw6ScJUD6BF1PLqziLviHb7d6w1wTpY=; b=a1Zr2vgNvc3YZOeZA/WXKlisS5gVf19VLX5J0A4ciKLN+8Pm1fQhX+nIecPcWwXdWp hAL9Odinf0A8wu0W9tTPISn9n0/y4NlhTgE1wKRLDFQSyxusv54Aq5Q8BB3vYydv4np6 fKbJgW9ijRf6W3+v2BDRE/KaP9xPKSNRb50bjwbLNUc1KmWevMv2H1orcSIGQ39I1mgc ntJK7CxT+W66XgRSN/HtGl5p+PaJrdL15mZJITgd5S2g6B4x3S315kxB6XzTV5cX+ozI LN2ZBtwrGzfwjvjk5l6d7jZawaIObnefzF147DnanowtkHUp3LkSWDM78JziRD0HvMKh yRRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jdDGlC0lns52Uw6ScJUD6BF1PLqziLviHb7d6w1wTpY=; b=V8aAhYiBmjpoc++KwhrjLHRO05CvMMdEGEu5+9tUpWTl+QPzC4vcTMrIij6OaTa0/G XjQgfPzF6eO4ocCMpkm2r2WATQqkT+k+LPTjCdSdCa8GxvUz4gvdBA88ScG01vFOw6so HZ5dw+rbgoNkPpLToyv9XYmtrR/x3sQYEyWofx0nUnePvpAzFSMnCo1ggzSlUlDt/Twn BBzAqL+Ab2+fAs4dYxsi5e5+qo9lV8mTJSX6nKuidA58h9ZMahFWA/IrmbwB5VRBNgnH sZxF7PWXrDiEN0SYRkosKye1/wpMgjIfVhxxBs7LSIjhBxc4CXs+U6L55dmtOCIKzkbX Redw== X-Gm-Message-State: AOAM533c3+qZgNiJQFY7XGLamfktfUMAIz6TLeS3YZP/BZNoEIvGgIFk UI063yby962pKwY35DBEy6o/yu82yvflYAo7LLN1LQ== X-Received: by 2002:a65:61a8:0:b0:3fa:95b8:66c4 with SMTP id i8-20020a6561a8000000b003fa95b866c4mr10961843pgv.166.1654303645308; Fri, 03 Jun 2022 17:47:25 -0700 (PDT) MIME-Version: 1.0 References: <20220603070423.10025-1-zhengqi.arch@bytedance.com> In-Reply-To: <20220603070423.10025-1-zhengqi.arch@bytedance.com> From: Shakeel Butt Date: Fri, 3 Jun 2022 17:47:14 -0700 Message-ID: Subject: Re: [PATCH] mm: memcontrol: separate {pgscan,pgsteal}_{kswapd,direct} items in memory.stat of cgroup v2 To: Qi Zheng Cc: Michal Hocko , Johannes Weiner , Roman Gushchin , Muchun Song , Andrew Morton , Jonathan Corbet , Linux MM , LKML , "open list:DOCUMENTATION" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 3, 2022 at 12:06 AM Qi Zheng wrote: > [...] > > diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst > index 176298f2f4de..0b9ca7e7df34 100644 > --- a/Documentation/admin-guide/cgroup-v2.rst > +++ b/Documentation/admin-guide/cgroup-v2.rst > @@ -1442,11 +1442,17 @@ PAGE_SIZE multiple when read back. > pgrefill (npn) > Amount of scanned pages (in an active LRU list) > > - pgscan (npn) > - Amount of scanned pages (in an inactive LRU list) > + pgscan_kswapd (npn) > + Amount of scanned pages by kswapd (in an inactive LRU list) > > - pgsteal (npn) > - Amount of reclaimed pages > + pgscan_direct (npn) > + Amount of scanned pages directly (in an inactive LRU list) > + > + pgsteal_kswapd (npn) > + Amount of reclaimed pages by kswapd > + > + pgsteal_direct (npn) > + Amount of reclaimed pages directly No objection to adding new fields but removing 'pgsteal' and 'pgscan' from the user visible API might break some applications.