Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp279320lqb; Tue, 28 May 2024 15:38:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaQ3kwH74N3htOXwb/yRD+P9HqcqH9TZaCmrLLYiC5b80rf1S55Fjga+77bxbW2mj+fXn/gHLfKkYN7lipVZJcIhiej+A4wZ3bPq86+A== X-Google-Smtp-Source: AGHT+IGjXGnAmJAZWCEaKaqZoCFkMgYqSO+tuZINL4OljaLKfkTXiuntShsSRoY4PA/krctrfEtK X-Received: by 2002:a50:cc43:0:b0:579:c460:67d4 with SMTP id 4fb4d7f45d1cf-579c460a72cmr7112447a12.7.1716935932872; Tue, 28 May 2024 15:38:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716935932; cv=pass; d=google.com; s=arc-20160816; b=EL8PZA7PNNqtsuMgkolSNa1l6ibm7IPlQ42+n5moTZerBwYp1eWYlz0L34tsjxhb+I lQLZo2boxPd6ube6kLYspBMjz8JzJV2jFG0KsCTwMwGhPFLFenxyh03fqouLHfmfr1wR 4ulV+LiEazy732gg3ZV01w8MZmBxgMnIU6+pTGAfjDcpweWKDizH393C+e3GALcy3k+a KrLJncbSrxRyc/QnpA6+MxvOWNo0dNyDKHmriX9bAK19Du/e+bmPf24bY/WFDjYmfnpv eBubPvZJm3Z9OIRXyM220L1NP3Wg9taWw7b34MeNUvN0rVt9chlCVMbPw8cR2GH80x9p GLBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=2WvRjYFaFMZKL47YHVHy7KxFsHaztdsVymExOIYR4NI=; fh=JIKI1Cdz7dRxg45iP9+yYrahBHxWRYqPsoaMIMu/27k=; b=p4vXpeOS5mzzzSG/7NURbNXjf8Rur0vJTwlIpIC6IL5/CHgVWU44x3jqWH+dRZiE/o cihTEnfbTmlYGb6KBA3sjNKIOWQZPcW8jxaqNfVBnuhDITWkb+DXdOUUOj7C5FNHVZ6K D2vx3zJfnrOzyPs28ab754j978UbgULU1/zhRVyhWkT7QQFILc4gWe3I8U7VzyVj064M DcjnJaNWMSVEyXxMttPxbGNnMLeZAwDeco4fglH3h4u1OfDri6QGHkbNo0TpaKBdqAtL WUxVFUk19vedhV7X5lx8siQJsEv13gPKRmt5tvgqb98GhbgkumdyUA16+cVeTyeDvn7C Mn/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=y7NQPIRV; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-193192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-579cd9799fbsi3310524a12.594.2024.05.28.15.38.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 15:38:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=y7NQPIRV; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-193192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7571E1F26640 for ; Tue, 28 May 2024 22:38:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F6BF13E898; Tue, 28 May 2024 22:38:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="y7NQPIRV" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E52813E3FF for ; Tue, 28 May 2024 22:38:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716935905; cv=none; b=HxuFdsrmGKqi8lc6Pq36mC0nap1v/pILqHZkP5FMnYIk0YrJRhxZb2qjGE9v1WEo1MKiaB1Qr0gsMjshE3B1n+OJ7bEbJ7rs7qhpqjw7FnrluQI+OEZ71oEliAGBaHVqcuqIT2R0h4qDtnhbAbgloc94SarfHCLONqmY2zH1zn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716935905; c=relaxed/simple; bh=2WvRjYFaFMZKL47YHVHy7KxFsHaztdsVymExOIYR4NI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=u3gMXzaUn86FnSKfPoAE29Fzzz7NwvsqMVyKfI4wFPFOHPz4dCKTnky0BRXtx6fNwJsd7rYoXyVa7s3ivHgv2thW39ttVxUXA17jBTxy211p1KWfuVHqkgxJ4JqhH/6DodNBmUVjPGay2kvbSCz96WdSHHycYlUwic912AahL9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=y7NQPIRV; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-529614b8c29so2280304e87.2 for ; Tue, 28 May 2024 15:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716935902; x=1717540702; darn=vger.kernel.org; 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=2WvRjYFaFMZKL47YHVHy7KxFsHaztdsVymExOIYR4NI=; b=y7NQPIRVYB4BtV+SuyMm0IZN2LVZFod8MkXyAb5QjRq572C5rPbGkYA5NN9Ji4b5Qn ovtnkSDb7QFBVi+ao+J37Tivrs+vEwQgAmzVURqfFmDe7PCr5aK7SYH9v1ChW6ffqRpC u5SEc95zzG6qG2q6fxDqm8d+Q9n9HTLV2+qcjL/XJ9Bs3IvM+W9/Gd3c04FWKPqGTFA3 1xxZDn9oI5dMGRSsIUxKrJ0TD2hd01QXH+vOBWzXRuBAloiu6Ojqf1sdKrmcMkRT86aB x9F8B8EeH4aCPb0SpYe5F9cV4lGZ3P+sIGjtgqsnjCJyB/k49xXhTpcqC+r5iFFrPsXD SRnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716935902; x=1717540702; 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=2WvRjYFaFMZKL47YHVHy7KxFsHaztdsVymExOIYR4NI=; b=WeeSvQUq+7GSpTuXTuVR7WwfjOTJvwKQRXcEIfErzXk8IH/RNYCBEbaK0zrn/3maF4 6AcPoaG1N2SkBmw2eBRqtrXlojyhIuhyIBytg+RKjpccJ4gbXtEnOcXB8ghLJzbPjzQT UNneceOeRfbZsKcqNbeUNh5YUYAUp2KipR0rMBlYymPi/vLw2XMrPu471l+QjJCBBQZs CveU1qFJbRQ+z0Doi2u070nu6CFv5lC5cN1kthkvM3TKt7KNHsMwFPHQGgipTWRRGbfM LTqDC9iLqNEmWUP0r5kWwahLcH2jYWrmuLzKUdOTROAQMLJ21yo+LkprsHzJ9jeo9rRP jXGQ== X-Forwarded-Encrypted: i=1; AJvYcCXgb3YEhL2gz9iLNRFCIbW8FGrb3n34U2uRECpTvtTPcJE6SS4s/nHwcW3mRJ5pZlg835dMNMNWFjPTM6rHU07dVTojISQI4u0tqjPg X-Gm-Message-State: AOJu0Yx4YPBg/dUQmSkkyTgXSgNVdhavAYABiZ88Xv7SGpPnXvzdio1h 2KJ02qsZi4RbZAPcc66R6LuUOfM9uO5eYFWiDpP6UR6H2zaKiKCpLv5ILIk7XZoL5p00KOf+t4y AqCtSEg4Xzs3C75lfY2EksTBbcgx/5zYpDBQ+ X-Received: by 2002:a05:6512:224c:b0:516:d232:2516 with SMTP id 2adb3069b0e04-529652903a6mr13891084e87.6.1716935902153; Tue, 28 May 2024 15:38:22 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240528163713.2024887-1-tjmercier@google.com> In-Reply-To: From: "T.J. Mercier" Date: Tue, 28 May 2024 15:38:07 -0700 Message-ID: Subject: Re: [PATCH 1/2] cgroup: Fix /proc/cgroups count for v2 To: Tejun Heo Cc: =?UTF-8?Q?Michal_Koutn=C3=BD?= , Zefan Li , Johannes Weiner , shakeel.butt@linux.dev, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 28, 2024 at 3:30=E2=80=AFPM Tejun Heo wrote: > > Hello, > > On Tue, May 28, 2024 at 11:42:13PM +0200, Michal Koutn=C4=B1 wrote: > > On Tue, May 28, 2024 at 09:43:08AM GMT, Tejun Heo wrote= : > > > I agree that this can be a useful metric but am not sure /proc/cgroup= s is > > > the right place to put it. Its use of v1 controller names, listing of > > > controllers that don't exist in v2 and the unnecessary column are rat= her > > > ugly and unnecessary. > > > > At the same time, the info provided currently is incorrect or at least > > misleading (when only v2 hierarchy is mounted, it mixes the counts) -- > > that's what T.J.'s patch attempts to rectify in my understanding. > > Yeah, I was hoping to phase out that file once folks are all on v2. I'll buy a round of drinks when that happens, but aren't we a few years out from that? :) > > Thanks. > > -- > tejun