Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp130200iob; Tue, 17 May 2022 21:14:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9uey3FLrJMUfoIH/P0kB2ZUJrq3bpKu4hoROEnYImVAyZZgElMBIDUxDynCEybMOR1Qff X-Received: by 2002:a17:902:ce11:b0:15f:4acc:f1fb with SMTP id k17-20020a170902ce1100b0015f4accf1fbmr24789011plg.76.1652847286048; Tue, 17 May 2022 21:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652847286; cv=none; d=google.com; s=arc-20160816; b=kIpJqWpouNxoB/dIovle3M1PyaBMIBYj+gLU/F19qCzDrwiCUDQJPp4iSE+bks4+nh 7htfeYIwmESFSMG83/BOcvHYR2K8ZGVwYodvrGRAWfWInDQsAtyjY6jyx3aW3bwBq/E+ wqdreF1Bn17Mv5byw6up/jhqx7opXsDNww7I21nIGEFLyxoudMTLFD2ipNd6xV2Q7zaM 4o8ZlzU5RpWdD3BH6pdqi1V4x/M2hn/MCRTI9NfUHGgUx0a8rfRYWzCBFoF3mzGp2j3u 54zNFZKundKsK8bgntyrbYkEy1yMh2c7MJffZ71bntMRKdlAbLv6W+ZokItJ+CgiBNhp iqiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=he8Kh4nsGmoH7nK+y54vqneMul8MpEk4z1WiAwV5mNQ=; b=N+9LPNQsRLPe7XlcY1jKmT+jvPP8ozwViWEHjWlFdTsqXrN/ACLVXNdYb7/iat8C+T yd2uM4NdLXHok1TkLH3mJaFOAjyfvldMG2UqEwV66p1BZ9aajp0htJuYqn2vLuGBalVd NlzOv5GS27DOvqIqd/KAXmY6P0KwFvfD02jKZz0Yc0dl9hSMK2TZ72HiR1KLbhRUJVB4 0EJAdXFEkFPNy96Lx1/37Ugvj7x0RglE4sFc3+1n8zhrnsz5JWmblbX/PjC+6fTCuf/+ kheq6OBl/7lPtu86k6TQkS6VdeOJIVgz/OrwjYYImlG7agospnvsVnoqdb9/kTKQbd8b hidQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=tsprR4zm; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u9-20020a056a00158900b0050df9c0b61dsi1864727pfk.9.2022.05.17.21.14.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:14:46 -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=@linux-foundation.org header.s=korg header.b=tsprR4zm; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A6CD26D855; Tue, 17 May 2022 20:44:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232125AbiEQXwZ (ORCPT + 99 others); Tue, 17 May 2022 19:52:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232136AbiEQXwV (ORCPT ); Tue, 17 May 2022 19:52:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 814D252E48; Tue, 17 May 2022 16:52:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2F218B81D16; Tue, 17 May 2022 23:52:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D4B0C34117; Tue, 17 May 2022 23:52:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1652831537; bh=pEz6dre40UCCubkWjCpmYmIXIWT0QJP+YHG6iJ3oqAE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tsprR4zmK/oALRYBT6vfLxQ1klcvHAWxPcTURMr4US/hz7Uw0voe1Rd7mrChl8sdH 2miTXW+EY7qU+TEI2unOpAlcbme0xr2QXB48zpwSoZaqLZ+c/nu+dY2yTH5iNx0vo8 yhD8XhZUkOY2U6dkpIa/o/EV1/RwxLY79S8QzLW0= Date: Tue, 17 May 2022 16:52:16 -0700 From: Andrew Morton To: Johannes Weiner Cc: Michal =?ISO-8859-1?Q?Koutn=FD?= , Michal Hocko , Roman Gushchin , Shakeel Butt , Seth Jennings , Dan Streetman , Minchan Kim , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH v2 6/6] zswap: memcg accounting Message-Id: <20220517165216.7acd8434f8b25606836e21e6@linux-foundation.org> In-Reply-To: References: <20220510152847.230957-1-hannes@cmpxchg.org> <20220510152847.230957-7-hannes@cmpxchg.org> <20220511173218.GB31592@blackbody.suse.cz> <20220513151426.GC16096@blackbody.suse.cz> <20220516143459.GA17557@blackbody.suse.cz> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 Mon, 16 May 2022 16:01:05 -0400 Johannes Weiner wrote: > > > Flushing unnecessary groups with a ratelimit doesn't sound like an > > > improvement to me. > > > > Then I'm only concerned about a situation when there's a single deep > > memcg that undergoes both workingset_refault() and zswap querying. > > The latter (bare call to cgroup_rstat_flush()) won't reset > > stats_flush_threshold, so the former (or the async flush more likely) > > would attempt a flush too. The flush work (on the leaf memcg) would be > > done twice even though it may be within the tolerance of cumulated > > error the second time. > > > > This is a thing that might require attention in the future (depending on > > some data how it actually performs). I see how the current approach is > > justified. > > Yes, we can optimize it should the need arise. So far it's been fine. > > Thanks for your thoughts, Michal. Me too. I think everything is settled here so I plan to import this series into mm-stable in a couple of days. at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/ documentation-filesystems-proc-update-meminfo-section.patch documentation-filesystems-proc-update-meminfo-section-fix.patch documentation-filesystems-proc-update-meminfo-section-fix-2.patch mm-kconfig-move-swap-and-slab-config-options-to-the-mm-section.patch mm-kconfig-group-swap-slab-hotplug-and-thp-options-into-submenus.patch mm-kconfig-group-swap-slab-hotplug-and-thp-options-into-submenus-fix.patch mm-kconfig-group-swap-slab-hotplug-and-thp-options-into-submenus-fix-fix.patch mm-kconfig-simplify-zswap-configuration.patch mm-zswap-add-basic-meminfo-and-vmstat-coverage.patch zswap-memcg-accounting.patch zswap-memcg-accounting-fix.patch zswap-memcg-accounting-fix-2.patch