Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1732626rdh; Tue, 26 Sep 2023 01:36:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIZhW4rbfFnUaaDE3pkQ7xSd7+LEqKzi64B0gLCxk1heFunxlygGukpIr63XFV5eVolzL0 X-Received: by 2002:a17:902:e846:b0:1c0:a5c9:e05a with SMTP id t6-20020a170902e84600b001c0a5c9e05amr9105067plg.43.1695717368033; Tue, 26 Sep 2023 01:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695717368; cv=none; d=google.com; s=arc-20160816; b=NSrpMDrWP4RXR+9+4O4BjjCzAsN3WmPoZAx1ksK+qzJgVtzxj7CPZQNBeTnpF2hssd w5ErxHDoylrpBjYf2Uh//YbB67bW9TllJxqib0JZuKF6Fl33BQu2OkP6cGBWiy2NF5Sb IcIymVT25BoJaNHDHHfD7fJL3cqKl3TzxLK7yr7VAg/VXrqMVdZJwIU9VcSN+jgFuYak gu0xPwo2tuozJujx1eZ+RItfsonnJjWbhwB1wFD+HFeoRxBMoPTYWQ0yFAHX0k/rNpbS Il8hMAELjMN+swgCGzUyMV3x79tqU9VLeMuzvclsxkrywCYbzGg0GNNvkWG4VP2np670 UEwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VB02rfAqrCwJrrIDo94dHomdWocZV8cYbgBNccAUQMk=; fh=NDA+NUhWenKrEiIM3+QfvDo8Uh9FFBsR8xNeaK36KFg=; b=0OZDPRbjqiMK6PvkHhZE9rf3ywudiNAF5e9h4dZsDt2mw1IDWHSQ+BL2jvKEVimsz1 Wzv3OZ9+tbKGOrNVqrXnoIhLIHXwmOo760YRXLjvEdD/dthyLq+tWVT39zJBFXr6frOu I+vFEKJ4iorDEx2lRUEzmSBxEJYodoGxj0W+nkNWnlmaDSASGdCF5DyyUSChrWiGWvoN ImwIxa50VkI8+SqAZP1zIWVc4g2543ObzVDxz1cly8vA2x8vjyMPA8J18SCyaU0ydpRX H51T+JiQf7Du7i7ru/nE18U0nAuGCY+vQSSOBMMKlZWeRqLaa+IS6UhLS7VpqtkhV9YV 0L/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ETp0Judb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id kw15-20020a170902f90f00b001c6223663b3si3158709plb.369.2023.09.26.01.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 01:36:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ETp0Judb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4A56C8091C5D; Tue, 26 Sep 2023 00:30:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233126AbjIZHaT (ORCPT + 99 others); Tue, 26 Sep 2023 03:30:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231908AbjIZHaR (ORCPT ); Tue, 26 Sep 2023 03:30:17 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C103EDC; Tue, 26 Sep 2023 00:30:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=VB02rfAqrCwJrrIDo94dHomdWocZV8cYbgBNccAUQMk=; b=ETp0JudbYO6jWOHR8dt1yjNuuo ANXen3hdy7Mz22SUO98P7L9/e4iniE1lGCr1mPQXHUkSKDEIyC8GY8Su3mmKooq6UR8d6xFR85zcx //zTrG/P1LfB768hKeFtlJYLjY1/58D/ZAf3KCd5yCxzkYcLzfmAHHJvTw7e2NyONn1XN2fQJr2uK 1uTsOWjHzM8iM2ZucnmHgkM4qVJOq36oRA7/r5QB4Nrisp3bzJzsRfSdJd/TJhlS3ToCjWIUHuDxb tl+k39Lts3qdYVgNiAWcnvm4qw3dYglXtHRpPYpchgRBAglGDQn3Nc9zQA5wO31Lc1qe7EsvI8gd/ d3wjnD1g==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1ql2W5-00FnWf-1E; Tue, 26 Sep 2023 07:29:57 +0000 Date: Tue, 26 Sep 2023 00:29:57 -0700 From: Christoph Hellwig To: Liu Shixin Cc: Yosry Ahmed , Tejun Heo , Zefan Li , Johannes Weiner , Jonathan Corbet , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Kefeng Wang , Andrew Morton , cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm, memcg: expose swapcache stat for memcg v1 Message-ID: References: <20230902100728.3850149-1-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230902100728.3850149-1-liushixin2@huawei.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 26 Sep 2023 00:30:26 -0700 (PDT) On Sat, Sep 02, 2023 at 06:07:28PM +0800, Liu Shixin wrote: > Since commit b6038942480e ("mm: memcg: add swapcache stat for memcg v2") > adds swapcache stat for the cgroup v2, it seems there is no reason to > hide it in memcg v1. Conversely, with swapcached it is more accurate to > evaluate the available memory for memcg. Why are we adding new features to the long deprecated cgroup v1?