Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5460416rwl; Tue, 11 Apr 2023 05:58:35 -0700 (PDT) X-Google-Smtp-Source: AKy350bPFOb3re4/kQj2kaMVTtlzd5cHV0nMUSc4+8W4ps1/gt3Ix7qzXbK6XBN38/v45ojEMPtt X-Received: by 2002:a50:fc06:0:b0:504:99d1:68b4 with SMTP id i6-20020a50fc06000000b0050499d168b4mr7241118edr.34.1681217915355; Tue, 11 Apr 2023 05:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681217915; cv=none; d=google.com; s=arc-20160816; b=sOPdcwzhI3zJV46CCl9ZAJ7aRg81jTXz/aKKGK9V1k44JbvfVCp7YtbtwGdN3LUrVy ZL0nGq/OD0BUoxzpg0h1g4pCd5Xv1yIKbMK1FAvIfeJ6hGrHKs2nXftGgKaXoAIo/hOr LFoPj3uXfKI1r2Rn0aVfbzI8AgTaGQJifWZD8FK+fvUGzOtSnfLzYy4+AOCI+bGYXzGP hfWiUukV9vL4Dvsbv5Pb/C8MWtmhwgR71ySYwgsuSzYjTX6v8k9c5uKNVEaBYcBjjuJk QhFnnBhAtAGkYjqmYdLAqiUjHkoN1KOBnF+LuyByWNStHYiWc7oza8SMeOde+Zdnh9hF GwvQ== 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=EkSlnfLVrBuvRIjHTj4YkNGB03MrlcmP9bduCieRg3g=; b=P+IcxbC12gkVIAw0/wcF7ohAmIek9JCkn9xKqlRV91PM3FUBIBmKUXttORWCM+N5t3 B8qJ136LBtVlwRh2FUtNrI1Lg54un4AMvCboYBQPoXTPiOPiDAcgQUXVDQO9SqPXurxC qJIyv9zTK1ic9k0i15VpE3vI4L3akTp9QN0TNrBzRTyxcZ7yWFii6ybP1tvfl3ZgwmBI AcAegqrG1+R1k4BGln1E8ga70WRAtC6JbZoXM7vllqjZOTGxGnufO0Oahc8z5tYuXVLq npREAZD/iMvKXnGfC7H4gaYrVYQjKYYCe6dZJVAHc9PlCAha+4bcG2WyVDK8QFjwmJzo 61qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=ajgGNA5W; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o13-20020aa7d3cd000000b00504bbaf98c5si1989397edr.395.2023.04.11.05.58.08; Tue, 11 Apr 2023 05:58:35 -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=@suse.com header.s=susede1 header.b=ajgGNA5W; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229745AbjDKMxj (ORCPT + 99 others); Tue, 11 Apr 2023 08:53:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbjDKMxY (ORCPT ); Tue, 11 Apr 2023 08:53:24 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DE663A8F; Tue, 11 Apr 2023 05:53:23 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DF48E1FD6A; Tue, 11 Apr 2023 12:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1681217601; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EkSlnfLVrBuvRIjHTj4YkNGB03MrlcmP9bduCieRg3g=; b=ajgGNA5WZlfmxWLIlPe/Fpt1PDYRI4impchyX4YLBiQwzNnLCAlHV9BMmxRWvfKCM5FFn3 /u7FPMnBH9I30kLtg7c7jl5pJXsA9xlGV25vO6RWpBXBbAJdu/lpXaOrPHxT+3GRwna4T4 F81VTw+DSswzCM0ouu3Dmz/5JqJuNLI= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A7BB713638; Tue, 11 Apr 2023 12:53:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id QXQoKEFYNWR0IQAAMHmgww (envelope-from ); Tue, 11 Apr 2023 12:53:21 +0000 Date: Tue, 11 Apr 2023 14:53:20 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Yosry Ahmed Cc: Alexander Viro , Christian Brauner , Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH mm-unstable RFC 3/5] memcg: calculate root usage from global state Message-ID: References: <20230403220337.443510-1-yosryahmed@google.com> <20230403220337.443510-4-yosryahmed@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eqj63t727ravqnne" Content-Disposition: inline In-Reply-To: <20230403220337.443510-4-yosryahmed@google.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 --eqj63t727ravqnne Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 03, 2023 at 10:03:35PM +0000, Yosry Ahmed wrote: > Instead, approximate the root usage from global state. This is not 100% > accurate, but the root usage has always been ill-defined anyway. Technically, this approximation should be closer to truth because global counters aren't subject to flushing "delay". >=20 > Signed-off-by: Yosry Ahmed > --- > mm/memcontrol.c | 24 +++++------------------- > 1 file changed, 5 insertions(+), 19 deletions(-) But feel free to add Reviewed-by: Michal Koutn=FD --eqj63t727ravqnne Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTrXXag4J0QvXXBmkMkDQmsBEOquQUCZDVYOgAKCRAkDQmsBEOq ua0bAP9/m5FltliE3jipY2X5GBKY+6HwLMPDQ7kZw0YMt1coPwEAhI5ND5ReXLBV +llW9zWanuFkJ28pU6DrJah5+c1hBQ8= =0lKn -----END PGP SIGNATURE----- --eqj63t727ravqnne--