Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp281843lqb; Tue, 28 May 2024 15:46:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+4n3wciC1Z6tY61KWxlRgmEjZnoQz6zw1ZgoSShMEv1ArB8xlg76M2DhEtMY582iRunRQq0vWorOUrxANYahyGb19W2xDdQ7yuiT6CA== X-Google-Smtp-Source: AGHT+IEjvCaFYPxd6IVTs76O6qnwwolXf06gH7DHR13x+cTOS467Ui91Yyqan/KyjTd0fxEKtGFW X-Received: by 2002:a05:6a20:3247:b0:1b0:2b96:5f9 with SMTP id adf61e73a8af0-1b212d4b02emr12376751637.36.1716936380953; Tue, 28 May 2024 15:46:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716936380; cv=pass; d=google.com; s=arc-20160816; b=vT1ZC8nM+xJ9/f4MihAMWu0hvK8t903d5fH64NlVuBPrxxRqRpZsylVahBXMkJuDLV qV8U7bYfoTM83SpxBYeZszNZoachLZb78IzOKlfqfC5LC4DAZj82JuBwUYlzcjAuSMG7 JYDxgORj/MT3vV+Xw/mCv7RkgS0ETKdmNr+FuAXipjR4pLs1alrUejqw4QuDfruAzAIm XzuQ6KsFrjKA/tXIUfYSdnmqVaaCVGDORyinZh2idzPjmzFym1K2wQ55u9Tz+YLDE26t zwJ+n46MBwlTy78vNjkMmfKB2DDp7hI4aRs2Y0gF08I9fWZzBGJ48dw1FXlqrEB+5w7x TzRg== 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=x3eO+xsLGvYH6hdnnKdPPHQw9PwgGh+IMJx8r3KsF7A=; fh=oeIiKMO0R527ky1sV+jQGSP+BJp9kgnhtSe9cCHRXEM=; b=qvBZ0jwoS5es24fsv/9Q6dF7ReIzWI67UGmTi0tWw0VG+68ppcRB2m+JjDFhwEysAE 3ip/iDq4avvUxP4AWropkh2JZvda4zOUvqQqASt417aNM39vtUw9tR+z64F1+Z/ts7eL jracjPQ9ago8n75xZhRBuJlTpvwyceVfiQYhNQ+4bJyP9y0MMtPWVhSEn2RUUkWA5rZp SOlKYA2E13qz5sSs/biqyN+bHTW+yLw4QhBY0m99IPCDpc8lAmIY3nJWevLme7qary1d vGeXJA94U8w761mmQ384om7p/bqqPW4ECKtAUehshE6Jt9/W9lFgy6S9EgwVVO8y0nDg bUsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="weW/IfQD"; 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-193199-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-68221b73f42si9269331a12.6.2024.05.28.15.46.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 15:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193199-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="weW/IfQD"; 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-193199-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193199-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 43D182868A8 for ; Tue, 28 May 2024 22:46:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 854E913E40D; Tue, 28 May 2024 22:46:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="weW/IfQD" Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (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 6923317E8F3 for ; Tue, 28 May 2024 22:46:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716936366; cv=none; b=Av9v864e42ubjpU7CjgIuj4QVmWvwmd3E412bl0lOEKRrYW+/UBxx2KsygRKps9v0QLxnirXWhI8H5Vq9uDsr4H6B9PeE7alo4sQBaicyK8PeP7fEd0j29hwyLDaVBOE+s0OlDY0h6uWoFauxr7S/xMwcbzhaf9ogfIh0n7wbGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716936366; c=relaxed/simple; bh=x3eO+xsLGvYH6hdnnKdPPHQw9PwgGh+IMJx8r3KsF7A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=dKCwggcOe+dNL5zkMapUWHQhq5amE3eIc/1k4x/thSvkttpeuPjA+D3R4Vo42uazrHnj8dn3zzEMfzRxsXKH62c3NKO6oFq7K+/a5RYSjPm5+w6PCQLJbE7oZGKQfhkc4b3+FdKvBwA9mjRhUQ8nF7rHuzxOlsEVAZLudJ963Xc= 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=weW/IfQD; arc=none smtp.client-ip=209.85.128.172 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-yw1-f172.google.com with SMTP id 00721157ae682-62a08b1a81bso13136007b3.3 for ; Tue, 28 May 2024 15:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716936364; x=1717541164; 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=x3eO+xsLGvYH6hdnnKdPPHQw9PwgGh+IMJx8r3KsF7A=; b=weW/IfQD1s+dFJvVDhmmiKx356BZ1PmgxYYQpLMch8nyUAw3LhU6y3bKpc1MjgeEgI oY/iedTHWQTn4P35NJR0ZR/tMDhA3wEeU3ezSyzwyh68xcQ2NxMI6vNNTCmwkwoMq62d M+8U6uzATkTNqz+YfNBnpd8KFvoEl3B0Ukg65kknmByUQrG/IBOUyz1rpW4P0vEx6rsw 2buwlLTAOT5p+6lbqt0E24YtQiBqce4siE9ZIlemuRglje5Y4dZufgdR1JkHNgNNEPAB GF4p8Tfd2NhhuUpQAAgyOHi3ZfCDA2ASb3z+joJUYEwhMoeRaty7uyelKerelnJXKlQe VVkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716936364; x=1717541164; 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=x3eO+xsLGvYH6hdnnKdPPHQw9PwgGh+IMJx8r3KsF7A=; b=uO/FF6tcDGXovyAuMrYGrzLvlTKLND1GYaefphzEm8Md/MceMHY8ylkSPuBCtq2cPq ypX0Jt81iiQYtqE7I9BLF5dpf0GLOcy/bk1YL1EdqDojERnV/e5Fewu3+4VWTfoxUffG 85u4VAh56cN27Z6iINw01uMv0/hGKE0Nxvea8tq/FGm2V/Rei8QPzv2grivxOZnuQcBY LTc4d+VWXDB5VW9DqFbQh+O6U/oZpQznKY4wuC8grVy+BtbvETYxtq6cdOfpCqjtO7Hg bvJAZVO4sr8gjW24xR8gWnvP+WTuu2cvcUIoTTE0mZYRpZuLeXsM8vYRaz4zlo3c+wmt Gkhw== X-Forwarded-Encrypted: i=1; AJvYcCV1+wo9+gosjcx3okQ8ufIh9MIUSxJIijeOtLtZOLhlgDr53UBoPUSxEc+nWJasyzss5W7u63gWPlwVhWIVkKkbgv2qtXOBJIufvTrC X-Gm-Message-State: AOJu0YxK8nXA+IcLoOJuuuMSx+xCDZCEaEHV3EKDv3u67yVSjY0I0FWC zt1EH3uA8Mfp3nVuRrgZDJM1BXf8/Be8zthz+li4r7sx5AkhUWQc9M+DWCk2piKzUWAqbRJOc3G 4lIDP+7jcm+UCdCbKGq8n8o/0DhwaXnsVdZIo X-Received: by 2002:a81:6dd0:0:b0:627:dd68:7278 with SMTP id 00721157ae682-62a08d86f59mr136358967b3.19.1716936364259; Tue, 28 May 2024 15:46:04 -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:45:52 -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:42=E2=80=AFPM Tejun Heo wrote: > > On Tue, May 28, 2024 at 03:38:01PM -0700, T.J. Mercier wrote: > > > > I think it would make sense to introduce something in a similar > > > > fashion. Can't think of a good name off the top of my head but add = a > > > > cgroup. file which lists the controllers in the subtree along with = the > > > > number of css's. > > > > > > BTW, there is the 'debug' subsys that has (almost) exactly that: > > > 'debug.csses' -- it's in v1 fashion though so it won't show hierarchi= cal > > > sums. > > Yeah, something like that but hierarchical and built into cgroup2 interfa= ce. > Would that work for your use case? > I think so, I'm checking this out now. debug as v1-only and non-stable interface files doesn't work, but the same sort of thing with a stable interface on v2 seems like it would. > Thanks. > > -- > tejun