Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp117360rwb; Tue, 25 Jul 2023 12:53:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHaqtfhlAMruLy98f1B3wlH+XApf+WfPA8Ft+A64xDUdztLi3sUVdURNJnHSxArXSCOY49o X-Received: by 2002:a17:906:c1:b0:99b:50ea:2f96 with SMTP id 1-20020a17090600c100b0099b50ea2f96mr241545eji.12.1690314822042; Tue, 25 Jul 2023 12:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690314822; cv=none; d=google.com; s=arc-20160816; b=OpvJecvhVNTME0+fiYhWlfyJAWFCyH9PPGRLKWiHlVyU0cGUmCbD03y8sNK1vM7Z/M ffGspVyPMSYOWyLg8GBJU971duSHh1qzs/JCcJYG1CSyyzEs2PUkSGuTPBVhGrIBh9Vq q88UGYLurGtHM+Gq3hgUE0XlXYT9gwWpbxgf1a9+ZGXnjoVnHVBsobyhKVyxFuwJS+xV HadubxVCgiptLunjv7bhMaxCrzHqexegokdFq6a0zoD9E8UjLiWr0vTLl42WVO7p6Gl+ D189tpHvfwLdDfl/5EbCbrlyvEz8oWa/BPqIws6PJSP81LmeSxcWA9JsLmHVCqAHXqO8 N92g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gccFtzx/Ez7hMBziN2qyyxk5R7pKLnaq2lGrOQwbiIg=; fh=a0GGKSJYmkkK1HMAFKvGycTBymC95DAVQytqT6tlx5Y=; b=rT9tGlRtzMMoTZzX/V+RczLijIoKIiktczc427kUck//vcpHUQ1X6Dv2jD+1d93Eyv ZeQ5p48Ow2OdLXCQHcEAn0pXXHz5j275DRyeduXSV1aaOOTtBexud5+JCqAYaJVpabgG 11HgLDbVGJY0WILiDauI6847BQX06eHVM3zAv/l/WYDZKBBNudMpOHUh9KOg9wNvesK0 PmSGDWDjw6VwlIbGYFl8EyDiAe86eBj/NoYKSUsRrCMaqNpGetuw75FfPwA7l/IBi1V0 GqEnHMjY5/5D2Zm/ODOgumUMoFzkJsNkyRbAS1dQjOLMfvqfmmOjGqQnAd8joG7a8bXz iCWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=k0n6UJsh; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i24-20020a1709064ed800b00992dc9d3b33si8049136ejv.863.2023.07.25.12.53.17; Tue, 25 Jul 2023 12:53:42 -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=@google.com header.s=20221208 header.b=k0n6UJsh; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229502AbjGYTZo (ORCPT + 99 others); Tue, 25 Jul 2023 15:25:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230302AbjGYTZm (ORCPT ); Tue, 25 Jul 2023 15:25:42 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7251F1FF2 for ; Tue, 25 Jul 2023 12:25:41 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-9939fbb7191so43936066b.0 for ; Tue, 25 Jul 2023 12:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690313140; x=1690917940; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gccFtzx/Ez7hMBziN2qyyxk5R7pKLnaq2lGrOQwbiIg=; b=k0n6UJsh+lZ+hTFQLHMj4us4wXltqc2G5v/vYmRmdyhuGwj/r3CqrJQDQxYE7M80HV wCdCAHYMJw9hGgaxndA5Yw5povenCAxQCF3buKcM3DMGQeQ/QkKeRqwsSoWAxirUzBFu UkmK/vSMxzsFGgwBVpCUK57IAtboaemAE7ebrGWETSgDp9xmV0NDxqEsx/W/U8ADDfcD 5HNiz8T5RsSwulHQJVJMRYhWuv5n78tVzHmeurEiseDIKMSTADQIF9p6LCbuFCjM3uuJ O3Lp/YaO+gnCWAMU/TpQ63dzghPVFrKFG0NlQ7eRmy7GbIg85NO/vUpytbZsiSXE3FIh M8/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690313140; x=1690917940; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gccFtzx/Ez7hMBziN2qyyxk5R7pKLnaq2lGrOQwbiIg=; b=KWZS6FGpUq8pZ0HFw0XwFruT/9kyAUpuu6trqiq/y0rNKslTigUbEh5UComEilaF/t sNQP8Od9Wxc1od98PNrafDFsaSvUv4bzOLcCdJhFowvDuM+kMElJuDs0xaCYKSOgHdxR rWy6P3zwS2GOrnq/PPgewVO+6ukhEHBPB8UvJSKRqjviGTGnXtMdkU4z88a+eEGB6AnJ uXMQDQB9oNV5R5jY0DAi2XUbfgHfR1UT0rAri6fQADFMshXWzLvKZEpZlLLsrC5FTaqF PIf6AA9e0qOBREh4ksgoZQS9tesFBofDTLFDMtogPI7KSvDYxJUpHqw8ERYwHNaKgQ8F Ucrg== X-Gm-Message-State: ABy/qLYSJTQLnYmokYaQAoobcySBtwQMU32heO+0df9MG99NlnsOmAgT ns/4EVtwBJMphIoxAd23ebwmfGSadJbxTpFxgnsGfQ== X-Received: by 2002:a17:907:1624:b0:978:2b56:d76e with SMTP id hb36-20020a170907162400b009782b56d76emr3811521ejc.12.1690313139847; Tue, 25 Jul 2023 12:25:39 -0700 (PDT) MIME-Version: 1.0 References: <20230719174613.3062124-1-yosryahmed@google.com> <20230725140435.GB1146582@cmpxchg.org> <20230725104310.ac652a03ab92357a162b1f92@linux-foundation.org> In-Reply-To: <20230725104310.ac652a03ab92357a162b1f92@linux-foundation.org> From: Yosry Ahmed Date: Tue, 25 Jul 2023 12:25:03 -0700 Message-ID: Subject: Re: [PATCH] mm: memcg: use rstat for non-hierarchical stats To: Andrew Morton Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Tue, Jul 25, 2023 at 10:43=E2=80=AFAM Andrew Morton wrote: > > On Tue, 25 Jul 2023 10:04:35 -0400 Johannes Weiner w= rote: > > > > Signed-off-by: Yosry Ahmed > > > > Acked-by: Johannes Weiner > > > > But I want to be clear: this isn't a regression fix. It's a new > > performance optimization for the deprecated cgroup1 code. And it comes > > at the cost of higher memory footprint for both cgroup1 AND cgroup2. > > Thanks. > > Yosry, could you please send along a suitably modified changelog? I will send a v2 once we agree on the history story and whether or not this fixes a regression. Thanks!