Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5320872rwb; Wed, 17 Aug 2022 15:34:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR4z7uIvCEdgdrqZAzbLMbrwwFXkCABjT9gsLsCXFBikhotbGs7fdi6anKSvGvumxA0lmSr/ X-Received: by 2002:a50:fe06:0:b0:446:bad:4b0e with SMTP id f6-20020a50fe06000000b004460bad4b0emr187107edt.20.1660775694946; Wed, 17 Aug 2022 15:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660775694; cv=none; d=google.com; s=arc-20160816; b=o/TpSgNIeLXYY5y676EKO8J2VGy6U7bQZML/r9Agq8LskXZ9mptN6PO2MVENVbc1P+ CUx0bovj3w2X14Tv6hsJL/dv8/o24hZqagLbAXrllWmhHaKejzC8m47DqVJ/dc5ZTyaF 2wz7F6Bron+MNAAWOLy0h4SoVVfPCbkcgbcdFgMpa4Zghn2kLKWkT1z+7iPFDgl6YZDF IZIOd2folAwPJisw9MeYzPCavoHDgJ+97/pr4buIK2YjVO6gnOUaHKNqqeXOrGHt1E13 SqOeSN+GZwtFafVlCGNm8SJ7sPTZOPttqPscqdWsSQYIsemxayuncp0b26xUYdKMNYP4 4YeQ== 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=jubgmtu9ZCV2QamN97BJw9SKo7GeHiKN8FVBsuK4MpI=; b=RUvmLC1TqOw2PdIJx5NAU4N/QOrsazOQ1L0zhBIHCzIq5CT8D9DkJHB7H+9DZlZmwM NJwp6oPIBVdRAosxjOl1blK2i07p2svqAjNn6otUJF+TFdZrm25Zzd+wbxU1uB93ulQk l6EOHw4Btmym5YWHMSLPnK+2LQfKVC/ciilCfTwIuppiBr+dG2kbSgF+6K1ZsHbEul32 uNZA6YuhOewqomrDnuE50h88BgQZmtBuHYF80xPc9G112ToP9KEyqrS1f0Qy5yJaof0t pzg/7ci7qv5HEX++Zryh6bfBOWg2Mfeb2OpEqVB5v8zbim63sGkA7g0ubZ3CO9IIAJt+ OvFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ht0aNzrR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18-20020a0564021e9200b0043bb69a32d6si15095593edf.561.2022.08.17.15.34.29; Wed, 17 Aug 2022 15:34:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ht0aNzrR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242412AbiHQVKu (ORCPT + 99 others); Wed, 17 Aug 2022 17:10:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242385AbiHQVKk (ORCPT ); Wed, 17 Aug 2022 17:10:40 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0152D9F743; Wed, 17 Aug 2022 14:10:38 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id q19so13071881pfg.8; Wed, 17 Aug 2022 14:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=jubgmtu9ZCV2QamN97BJw9SKo7GeHiKN8FVBsuK4MpI=; b=ht0aNzrRUImTnu8m1fHSTGs+ufFWe/8x7bzHLosVnh7BI1beTfMKcxipuQ0yK5aeis 9slQDNzhO5mKIxJGUa2m6YRI87WzGWk37jrmGvTQhUY/oPtIPce3BMRowls9MzMKTwUB bkE2Da0iUdGcVkeONg7sUqORvzcdE5CZOZAWlY4Cx2EN0f5FkB5lNy5OAuwZvhcDaZRt KvHtVJDhe/ZpIpdLnaFfelO8+TiwhFpYyu6B63i+hB/qUo4iPV5H5ZGcvDqbGRHsZDJ8 fOT4hjPork4yl/xLMWag47Aynp0q/xot6f/Zvd+/f2Wv5yX6E6LbpcalrtAphtGsuB5S Inxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=jubgmtu9ZCV2QamN97BJw9SKo7GeHiKN8FVBsuK4MpI=; b=upwPGVX8fSXC+XLWhbRk0wvi2l5JPEJzHPH63U7uEFgt42tQxFdfIxYaWKP6qrj3pW 4sBQU4SHq5ffBYzMh8V6BpAeoQ8zoK3LziUltFgejWvgtrxOoVLSQvYNCzz/su6k84Il 8xFov3XkaCguvHFEZmgvNFupAOUP40NcAdgq/f7I6ZMLz5lpIIb0Jm+aZqkmZErDO7Pg moIZHY9Upv087s7JeNTdqSo/EHz5ytiU2cgS6DalEiju5IqZ6tLmnWZj5E+/4x53kSwv q2vzQ52+FJP4D8nYmgOmy5eTKgVgWYWCVFn1yjHprH4qK16uPeRpSXB+OD/PnPo0NZJk Nc9g== X-Gm-Message-State: ACgBeo3aft046BJE+4IyBJ7ipHCQZkfW/3T6Fg/YyBNDHB0FGM6L7IBf imXBA+3biUaM+rQZD5txuGEOLU7LDL0/frrMIv8= X-Received: by 2002:a05:6a00:4393:b0:52f:3603:e62f with SMTP id bt19-20020a056a00439300b0052f3603e62fmr13087pfb.23.1660770638491; Wed, 17 Aug 2022 14:10:38 -0700 (PDT) MIME-Version: 1.0 References: <20220816185801.651091-1-shy828301@gmail.com> In-Reply-To: From: Yang Shi Date: Wed, 17 Aug 2022 14:10:26 -0700 Message-ID: Subject: Re: [PATCH] mm: memcg: export workingset refault stats for cgroup v1 To: Shakeel Butt Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Andrew Morton , Cgroups , Linux MM , LKML , Yosry Ahmed Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, Aug 16, 2022 at 7:05 PM Shakeel Butt wrote: > > On Tue, Aug 16, 2022 at 7:01 PM Yang Shi wrote: > > > > On Tue, Aug 16, 2022 at 3:06 PM Shakeel Butt wrote: > > > > > > On Tue, Aug 16, 2022 at 11:58 AM Yang Shi wrote: > > > > > > > > Workingset refault stats are important and usefule metrics to measure > > > > how well reclaimer and swapping work and how healthy the services are, > > > > but they are just available for cgroup v2. There are still plenty users > > > > with cgroup v1, export the stats for cgroup v1. > > > > > > > > Signed-off-by: Yang Shi > > > > --- > > > > I do understand the development of cgroup v1 is actually stalled and > > > > the community is reluctant to accept new features for v1. However > > > > the workingset refault stats are really quite useful and exporting > > > > two new stats, which have been supported by v2, seems ok IMHO. So > > > > hopefully this patch could be considered. Thanks. > > > > > > > > > > Is just workingset refault good enough for your use-case? What about > > > the other workingset stats? I don't have a strong opinion against > > > adding these to v1 and I think these specific stats should be fine. > > > > The workingset refault is good enough for our usercase, but I don't > > mind adding all the workingset_* stats if nobody has objection. > > For now let's just start with what your use-case needs. If in future > there is a need we can add other workingset_* stats as well. Sure, works for me. > > > > > > (There is subtlety in exposing objcg based stats (i.e. reparenting) in > > > v1 due to non-hierarchical stats in v1. I remember Yosry and Muchun > > > were looking into that.) > > > > The workingset_* stats should have nothing to do with obj based stats IIUC. > > Yeah, that was just FYI for anyone in future who wants to export such > stat in v1. Thanks, Shakeel. If it looks good to me, would you please ack the patch?