Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp275838lqb; Tue, 28 May 2024 15:30:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsgwfEZnxGzFUyFld4icX+FJmdjIDb66SbFMslYmPNaXld+CESvMgjmkS2rq5aF+wj2DSERMKxAyhCj1ZiVQwg4uekNXhfopE7e6L1NQ== X-Google-Smtp-Source: AGHT+IHnrUV5w8MRVGH9Ec0xvOO+mCJcaG5oPZ/3Lw29awReSAY/XWCzX4LEamWBGMJa2hf/AvCS X-Received: by 2002:a05:6512:4cc:b0:51e:f2bb:158a with SMTP id 2adb3069b0e04-52966ca8c0fmr8279819e87.64.1716935430610; Tue, 28 May 2024 15:30:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716935430; cv=pass; d=google.com; s=arc-20160816; b=Yh67bCETndCCRn8R4GFmk3ojpSA5bjHA3Uxj7eafhGFlgQsJz5DKokmewiMaak+iPS 4ZSpt4duz9RUCmk3vh7bPv0v99tdZ3i+TdxZ8zQUfWDosnKGNpvf8+PMLKpnADH0vJ8O TYd10zrnvw+R8gazQkhNmrye4up68SD/tQTwdVpTzAD2ZWuPezwuCX+xrIzpfTOfs9Ln tdWk06THkOu6qXW+PWZqH30AD1LDuQf9v7E9ZCn/Gxju2pc5/SUIntIYxMejYQtmVjPI E3ZYyzeFYNtWK03aupay4eMSb/8y+SrbpV+Gzp7mP3WwlpjI/XJ+IsOOPQGbglQUXENt sMIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=eNV0OLj7JMDhtZ28BPp3v4YifVkqJBF8MadCRS/sAeM=; fh=StPS7BtGMDW65VRDZ4GQAwDY3fbGozR25GzFxR5p6KI=; b=rrecRQLx6inVgfpHAK7fDSAsYxGp3wmBPO9NS1nJfN5zSjG5PwskFJKyEoj7jzuH1C zD85+moSU+sh1w17h6hCHDIWzEu7Ob9a4gFDLOLifnktMOIEm/+yx76gcKKjy4rBDbvY 0VjVRrZf9NGDWRMjPBSzFcN5hFNSScBnP9ZmyEgwyYEnmHoaC/hE2oGHfIgM7/dVbO+N n9P/XHgLCtetCcm2RksIO6QLbZsYAabiWYJIvxzUlxRSbp8qj0cg3T3DF87bc74LtFI3 WFWDdDC0Ak72p3j7rw9fq/nAQU4HiwCONQU9/4/j8yrKcBe87Mwwvuj/1NuExti/N7AM 2/Hw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Yppp7EZj; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-193182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc38d2asi543730966b.487.2024.05.28.15.30.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 15:30:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Yppp7EZj; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-193182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 56E201F265F4 for ; Tue, 28 May 2024 22:30:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DEFF13E035; Tue, 28 May 2024 22:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Yppp7EZj" Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 567AB8F49; Tue, 28 May 2024 22:30:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716935422; cv=none; b=kGaAVfcuiPNMZtvjGPtwBknmD3R9n+X0YUlkGgQZ5rF7Y90JysoIJ0ebkck4Sz6KAepRtcgf3aYOMeMe8Mq/NGA/jbbo962oU+vasHafW1FeVUHdZ9q1MJ7VCpy7ka9iCZIanXIn5izLmeTmaFpEJEA8KAEfpqPtiy9MpF79dSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716935422; c=relaxed/simple; bh=woIZt6yvU8XlK4yGOl4xSfL72qMsG85XvTU6W0oFtAU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KQ3/nFrAI3XsrpHsfOVpbjBHfC1hJMoZVU5YMAPLG9/RLJ8fTiv2JuQqaGZfT4QYbV1TULrhKMlc/jjCTQmS+F+ESVX7cJmKaT0Ms8UbHw/7YE3802m58vJ0Bhs61i8PtQzzaNtvK9u3BUyOkjlB7OCANWaFyE/vWKgsmPZt294= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Yppp7EZj; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6f8e819cf60so1159400b3a.0; Tue, 28 May 2024 15:30:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716935420; x=1717540220; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=eNV0OLj7JMDhtZ28BPp3v4YifVkqJBF8MadCRS/sAeM=; b=Yppp7EZjmfZEcEq5fEOrh+IX9/LSRoWFBBKCIQ1ZUkyS9WxW+rsC9V7o78fY7Kbbqj y7+01ZA7TVXD2LvG8w8xC2HpTzgxgrWIsXrB+0lPHx+4sAjEqBof43fYX7+y/0nCGIxv XYNjameK+hRsLamuLYBN+D1o7oa3hykR0Qt1ivF1lqahFJ97t02H2Tgfvh4CPrwDmkCO mDcl5bR0RgBUPrEucG6gaqamzFU3slX+6Ms/YDVOvVyUo9fyfX4DN8Ed4L6yTTYtDgY4 69jOF3gfZIa5NmwPgCTl8XpfDzWIFU+kdZdziyih4625WnwqQA2gHu76aWjukjdRcq42 d71w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716935420; x=1717540220; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eNV0OLj7JMDhtZ28BPp3v4YifVkqJBF8MadCRS/sAeM=; b=AOc9wEg7o6cewTFzxg1Zc88xc0erg94PVDZkZLvtJQ1kzTKvA9vYFAYF7i+q9cqn+d gvVSxKw6Buc5q5PFvOkkOGBay80u5i8eMW++4H1cQzpFp1xBBkSvlGggjS5XeQt7OGyI JSD88z7vATXZsXZAEYhbRFxAJmyUy9LtgLWYT3LCA7ruv71OYhdW5k9Hgbw9/+SkdWm5 4yG5uhCB1MjhSOuUGcn6tzz/RnJLvw9tYoHzlPDSCeApIPbMPBpza+5AY/TuBj/HWj0o msfM4lfCJ5ghSDX5e7zQP0Lf1cNEA9HkKZOhMPxXUCjbauyZqZ7MR4NIyXh1HakwQAhN ZDEA== X-Forwarded-Encrypted: i=1; AJvYcCUpLDqfLgNdmHbBlJ40/jKDjpaqEkaNBiPgwguZe/XIJaS2GH3JFt9N0keD1KwezVqNCHmxSR/Pt5wONZZnUbcluxW2vF4eAYhaXw0VqYLCTVg6BF4Z97YVvtjM9HAXIzx8e7LyXQ== X-Gm-Message-State: AOJu0YzRrXFvrOZonAwYXcxzSj39eeRQ5/SOes64S1ncI+UQy2nzULjM yuelTxEsdNBzqUQYbI8ZOdPWQLezAhG5P+r8qA2z3AkPnoeHL92d X-Received: by 2002:a05:6a00:3698:b0:6ea:e2d2:5e68 with SMTP id d2e1a72fcca58-6f8f3d706demr20349846b3a.27.1716935420518; Tue, 28 May 2024 15:30:20 -0700 (PDT) Received: from localhost (dhcp-141-239-159-203.hawaiiantel.net. [141.239.159.203]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f8fc15b169sm6923006b3a.75.2024.05.28.15.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 15:30:20 -0700 (PDT) Sender: Tejun Heo Date: Tue, 28 May 2024 12:30:18 -1000 From: Tejun Heo To: Michal =?iso-8859-1?Q?Koutn=FD?= Cc: "T.J. Mercier" , Zefan Li , Johannes Weiner , shakeel.butt@linux.dev, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] cgroup: Fix /proc/cgroups count for v2 Message-ID: References: <20240528163713.2024887-1-tjmercier@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hello, On Tue, May 28, 2024 at 11:42:13PM +0200, Michal Koutn? 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/cgroups 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 rather > > 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. Thanks. -- tejun