Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp74736iof; Sun, 5 Jun 2022 21:34:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHEibhg1Dwx1zElZ6Oz0PdaSZJOJz84hgZQSaCNPaTKOghN/HEPM1OeKY7kJyIFvwmyAqj X-Received: by 2002:a05:6a00:1344:b0:51b:e3b5:54e2 with SMTP id k4-20020a056a00134400b0051be3b554e2mr14727885pfu.6.1654490055327; Sun, 05 Jun 2022 21:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654490055; cv=none; d=google.com; s=arc-20160816; b=Ofr4vihm0eQ7I+oYKMMRcCbrqoATxGp7gfm1Hm/JH9sHwQNi+6mE0qPoI2P6rRk5Ww TozhU2I9JcTatomDq8zS+hV8bwi2rK3evOXOOCjXfkfvfpbEM/dqONXZ5337fIUewQOX 4cJRfsdYPpSkegoWPMVWtrsHVcO/LUBbpJiQoX2BzqN95V9jmXto53iqFsA14rjNUeXz j78vnt3MGqaF29JapeNTHsX2NdlcMk5vFSLt2dHQHSDSl577TTgK18RHhaegHilIBlPF zpobJSsoSzMbx9/n1x0WO1ZV20IW/hHJiXG5ecymaySRz2y/YukkAl3EcRhrXOe8vA/9 7LGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=H5GzO1GVZTXiX6PTnZ0maVWHXWhxKwJkxQUe242iFjg=; b=oH+/lpU9JH+u8mr05uxkEhNGR82giQm3w69T2uK4CuQcPpNqLzN5KBDVSS5vDrHCr+ /2kGG4eDpvGXq4PNOP60FwA1torsN7H5pmPIKOq7GxuGCvKIMdMq3kxnrdCatQeRYhgL 3n1ps0slaI3D4HaauL9w2ZiIILW4fPkhrBA2XagaJjun9jCURYGxYIFUyoGYu7arOb3n 9QIAZylnhiDPerN3UkbO6BUyQio7S6Xruf78o5spowRJPDaqEIrR6HzlBckBV+9yg22d Jw1hNSO8OSNndMN+Gk2Kkaw7kHbdtIe69k8+1R3Jr8AcZR4JbJpTR5yoeK6pvth4Ot/B 2yHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=IhocYC3q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o6-20020a170902d4c600b0016759c39ce7si10949188plg.204.2022.06.05.21.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 21:34:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=IhocYC3q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CFA445DA09; Sun, 5 Jun 2022 21:00:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350560AbiFDB1O (ORCPT + 99 others); Fri, 3 Jun 2022 21:27:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350522AbiFDB05 (ORCPT ); Fri, 3 Jun 2022 21:26:57 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DB185EDF5 for ; Fri, 3 Jun 2022 18:25:10 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id y189so8327319pfy.10 for ; Fri, 03 Jun 2022 18:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=H5GzO1GVZTXiX6PTnZ0maVWHXWhxKwJkxQUe242iFjg=; b=IhocYC3qHy8EUVb5O0v/ELOjI6SsqyJxjKf/Vu8dLAiHITnBEkWby7B4+ZNGaEqDjZ e/DBzSAm/IFgW10mDHfNUIwmrHI8YTpXqXdqGwbC32iHYtxJ4/0rn+5m8mzQ4vFbaBAw oPGAiSYv+WCSjvluB4FT0nP11wfPhnUdLvrHu2zXZ3ohwNKcr4OljPj7JqbJFZe/okca 6FogBD7fWTBSaA1+Ld4DfHeJ1j1ald9nZ++kKpSSvAh0vIoYZ82LduuKRiCtLHM/Mb5/ R8sINUYQkO9mK/H10qcDYXe+OWlB5JHIDPkwrlNgeDNFhz0yjincgxl0VJMvJLh2QwjE wiCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=H5GzO1GVZTXiX6PTnZ0maVWHXWhxKwJkxQUe242iFjg=; b=i2EFoyTjaXQzT58mat64FuvWUNdoR1yxnbxMw5rdmIDmVwx8xXo3grHnHZOGEh2WZZ JXvjW7tWnEtVA+sMenhJs646JTc7VN+ubRI3HSEXSQxrRIZJkWg3/iVUP5bLJdGZmbEh IpIB8ax9mHoEDqpfwbJwNdXBQsObsswpH7B30IxtN21ZIRhjFTTjDx31fhwn65nZsS24 WgGmYN7VMqTdkFlT3ouR2yoMlrJ9O0ucdY0oun3quSJ01sA/5nUCaJivXLcxvwzJaOvN FBOm1GJjA/yAETT1I7UIQflY+OkxECE7Dna4dQ3xZ8FPzDuEnzSe/uz+QKMcGP9U+jTW ZX9g== X-Gm-Message-State: AOAM532DqhWNpJVwW2ftpwHxv+p9V5DbiI9RFCplKCWYExRGyQtrALCM C2bXCnsMiQmhuNSAcuV5c3S5Ig== X-Received: by 2002:a65:4bc5:0:b0:3da:ec0c:c5f2 with SMTP id p5-20020a654bc5000000b003daec0cc5f2mr11018632pgr.221.1654305884726; Fri, 03 Jun 2022 18:24:44 -0700 (PDT) Received: from [10.4.187.25] ([139.177.225.224]) by smtp.gmail.com with ESMTPSA id p17-20020a17090adf9100b001df2f8f0a45sm5983115pjv.1.2022.06.03.18.24.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jun 2022 18:24:44 -0700 (PDT) Message-ID: <68433856-6b7b-2e9e-6e86-77293da7453b@bytedance.com> Date: Sat, 4 Jun 2022 09:24:38 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] mm: memcontrol: separate {pgscan,pgsteal}_{kswapd,direct} items in memory.stat of cgroup v2 Content-Language: en-US To: Shakeel Butt Cc: Michal Hocko , Johannes Weiner , Roman Gushchin , Muchun Song , Andrew Morton , Jonathan Corbet , Linux MM , LKML , "open list:DOCUMENTATION" References: <20220603070423.10025-1-zhengqi.arch@bytedance.com> From: Qi Zheng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 2022/6/4 8:47 AM, Shakeel Butt wrote: > 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. Oh, got it. So do we need to keep pgscan and pgsteal fields? If it is, I can add it back in patch v2. Thanks, Qi