Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1976804lqt; Sun, 21 Apr 2024 18:38:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtX2g+I2eavfo6zlVV0+EHygUXeFNpo8C6u+D6tcIJKpJczbw9cyWu0Ybr4Bl/HPxHedLvqORvntXhFgyDvdcHBzUjf2EMM1Z77MnArA== X-Google-Smtp-Source: AGHT+IG1ORsTPApT84rG3Hn76+dcMBBOXzlglZCAKB3FwT62h+m8LnOCeCpsmj+jYfhhSsSl5kRK X-Received: by 2002:a50:871e:0:b0:56c:5a49:730 with SMTP id i30-20020a50871e000000b0056c5a490730mr5044680edb.19.1713749881372; Sun, 21 Apr 2024 18:38:01 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a35-20020a509ea6000000b0056e6a049178si3071357edf.268.2024.04.21.18.38.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 18:38:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152670-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=@vivo.com header.s=selector2 header.b="d2RHM/wW"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-152670-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152670-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.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 C2AD41F21163 for ; Mon, 22 Apr 2024 01:38:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C926442C; Mon, 22 Apr 2024 01:37:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b="d2RHM/wW" Received: from HK2PR02CU002.outbound.protection.outlook.com (mail-eastasiaazon11010000.outbound.protection.outlook.com [52.101.128.0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23CF72579; Mon, 22 Apr 2024 01:37:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.128.0 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713749869; cv=fail; b=k4uvek7CJmNSFYQe2HsTq2Ua+mu12/kFlJbsgt5bBuiBLSj8fq1rVaOKFp61OarhnNOg5petqXLphL3nMnpbOSgyE3m880xcxYbyHcTgqkRH+tVM0ldhtZ/FSKdql11qWibFDANkLYkhhYfk3GseQ5dv/ympdrJ8FncpJcEiLFw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713749869; c=relaxed/simple; bh=LlSYaVeR/cNhoM9/JCk3z4XyQvMK3cCNHok05YTwiy8=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=DrHDhzFKbO9fnUaLLqU4980OjtZU/uGjDyZxgDByDp5j9vfkQGtQn0O6LirzrQ+1Jx/CmEySgFu4t+rBYyJ5L9h7Zsk+3yAqABHpm5fj8Ycc1wAz8H+zcHS5dIdySDeCyOwYhONJFzgi6vVWZGe/8i3QTupZuF0sDZl7pYrVvH4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com; spf=pass smtp.mailfrom=vivo.com; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b=d2RHM/wW; arc=fail smtp.client-ip=52.101.128.0 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vivo.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ehVKtO5RTK9jBRBP4wsE4d/qfAwF86zaEOHaMdPhA4/pF0N5jIDF8xlMoTFrgrVuhZdBqwFda1YtrSqNIRbVDuQlYh4uBwUI4tKhBkjfcnECl/nhBUfS8amNBufLPJtQ62muLYeEwRPH0mgzE3ekDQZBkVG0OVm0/D4DRyWynOWJ2/yGA8mDd6BEoBCFaYaESa9ockRoVbnG10JXjPy9J9NPFiWFqyvWHDfoXnLDsxhwYVAzcQzoxESw7ak6mh3XGevEz+yUoT/K42o4X58FekZ6Pr+9PjuTUlZccEmIgmLana2Tz+r1Q/OQ4rfSxp2FI5e7pWk2DR2Oa9mv9aLOTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LlSYaVeR/cNhoM9/JCk3z4XyQvMK3cCNHok05YTwiy8=; b=GDr4mYKpbUkThWuhcDhgsNGtxrgi/xJBEqm0Qx1aXAP1xYMT1kiPg67AA+9l+EhI2oTMeQsXvov5Ak15zx2yRryR1mcOR4KvLEtonUgqltWLXJ+26TFzfBljvl1hURSoFtaXH7IBmg7iquKqwLjueO1o/1Z93QMrmC9Is6L8auxt13plPom8DhbpthyNUF+GDeMQTSpT3pySADbf+WHWYUPhVc5cDBFM++WobRIizakorCqji/zYIcyZo3WdoU3FwPjkMfLgfPElC7oDv/YFXBNXBj2h/kEtqQ1h9K2dETcSdtXLw26R3UxdfO/Co0Ga+wkwkqUQeutiTHT80GE5UQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LlSYaVeR/cNhoM9/JCk3z4XyQvMK3cCNHok05YTwiy8=; b=d2RHM/wWq5OnaQqpj+8oX8+JFN4SBacIAtWMVOunjJx4PLsG/ZtSy726y2KvnYjVuEXtOn0R3NbEzmXW7fTKTWrMj4EfpvlNjkDzx0XNJ6SxgC5ip8+Gtd016cPXhsH4txt6htngZ7ZSpcpgYHnlQH8XrHlgeCBGQyJy0FLKoIzsWqCn28oA7/VlOJ6v30z1a8CcO/J62+s6qdNbF9PGRjO00EHzHiV15wFqwXhEnf/PTsgEiFxaA77Wz90YdTeaF52kDv1zYYNb3FKVri9iCyOLx7n8xdPxRjaHUpi6X+IGcNSf4RlxixbcwbFtSGGx8+hsC4lS/67bfFNjy+t6wA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from PUZPR06MB5676.apcprd06.prod.outlook.com (2603:1096:301:f8::10) by SI2PR06MB5172.apcprd06.prod.outlook.com (2603:1096:4:1bf::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Mon, 22 Apr 2024 01:37:43 +0000 Received: from PUZPR06MB5676.apcprd06.prod.outlook.com ([fe80::ad3:f48a:aa04:e11a]) by PUZPR06MB5676.apcprd06.prod.outlook.com ([fe80::ad3:f48a:aa04:e11a%7]) with mapi id 15.20.7472.044; Mon, 22 Apr 2024 01:37:42 +0000 Message-ID: <252d97c9-4d47-413c-bc42-67499df25987@vivo.com> Date: Mon, 22 Apr 2024 09:37:36 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] cgroup: make cgroups info more readable To: xiujianfeng , Huan Yang , Tejun Heo , Zefan Li , Johannes Weiner , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com References: <20240409021826.1171921-1-link@vivo.com> <9d01ab99-bbfd-536b-a375-9c44f988aa9a@huawei.com> <945d1e73-21f6-4a56-81ee-9625491f3b26@vivo.com> From: Huan Yang <11133793@vivo.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SGXP274CA0021.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::33) To PUZPR06MB5676.apcprd06.prod.outlook.com (2603:1096:301:f8::10) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PUZPR06MB5676:EE_|SI2PR06MB5172:EE_ X-MS-Office365-Filtering-Correlation-Id: e7f6a209-8530-4f34-d6b2-08dc626ccd43 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?B?SXZuNnozQ2VjUkRBYm9kSTBtRTRiWnZtOFpwU2dDZ2ptTlNORW1DNmEyTHNp?= =?utf-8?B?MVRHc3JvN09HTm83Z3pkQUU5U3czU3NybEtMYjZtamFuYjhTL01ZTkFSenJL?= =?utf-8?B?SUpucGpXQU1RVjJYbUZFNUJ5MHEzWERsVXNGcElxNlhZMEIrRUtzWkVBcGNZ?= =?utf-8?B?YlJjRU1FN0JsQTQxVHBMYTBBbHo1Nm1WdldWRzFLNEZUR0pwck9CRHRSak15?= =?utf-8?B?NnZ5OWZzMExtTGxONVB3V2dBNTd2R2wvcGd6Y0lzSG5wVnJBdEpnaWE5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VB2Ni9j?= =?utf-8?B?RWVuYmI4QVRRUHpvNDdzZzNOalQrMjBuNVBBRXhBZ0N6QXNTZEdkWlRTZlFU?= =?utf-8?B?SklaYTY3VDZKeWlUcmVZTHpMdlNZM1A2VkdvTGtvamFIUENmemNqSnJMeEhM?= =?utf-8?B?MmhQK3BDcTBTM1hqdEpaaHJraFVDZ010dUlzUnF5Z2o1U2VjVVFNazkreGs0?= =?utf-8?B?S3B5alJYUmxFSGRmUkY4aEdkQkNZbTdVSlRqOWF1V210d2xYS2hCVUJlMFhH?= =?utf-8?B?VWdDdlJzbGx4Uk9PbzY4dTRJT2NrTjdMdllQREs1N3NxTmx5bmpkZVc3VEs1?= =?utf-8?B?QkgzOVErT0cxOWJBN0VUcE9sT3A0R3lzOGtwV3RvZFJDRWJXejdqUVNYMUdG?= =?utf-8?B?akxJOXVGUEhIdVlJU204SnY2U25qNzdYYnhGTTZ0MHJpZ2dPNXhMeEQ2eXVa?= =?utf-8?B?M2gyTGhHYUswcjlJUkhFWFJvSlRVOFJ4MVRHd0FOSjZoamJTSUxGeS9kM3Br?= =?utf-8?B?R0wxbXdOQy96alc2MVNhWnJmSEgramY4UDIrL1RHUjZ1NHJDR1N0bmd5b2N2?= =?utf-8?B?eGpndy9SZ2pOZGNUYXRTK2JPcW9XVkxpY1RaYzBxSDNEL2U3YkZKc09sQTU2?= =?utf-8?Q?XJBbUpG93hMI9V6h8ASAkzy26JsILyxy+F4jc=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PUZPR06MB5676.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(52116005)(376005)(38350700005)(81742002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?S0dqT0h4YUZ2UlVrQkJEVkRGbVJFaUpPY2Q0MWhvczlqSz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3BUVktTVUxmQUVYM29aaG1scTB1?= =?utf-8?B?VlBxK1RjcFFnenNDbUI2eVRSMjAvVWVWUWRhd1VkRk1scUp6a1gxYzQ1Qlpz?= =?utf-8?B?TUh6d1lEWStReXE4SjY4eDlmZlU1ckNqNjRsRDBGUFBmaDlkYkNUbktQRzRt?= =?utf-8?B?dHBZczk5SUorVUNnVDNnTWlGSlYrSnpqYlhwZE9tMFFEdVliZVpvakdEaUl3?= =?utf-8?B?ZkR6WU9TRjl4OGh1SURJU3JXMTRvdDcyYUdXY29HbGpBeElveENiQzVBL29P?= =?utf-8?Q?Kx59MoXvIfOmJEgMN22PIy8lB?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7f6a209-8530-4f34-d6b2-08dc626ccd43 X-MS-Exchange-CrossTenant-AuthSource: PUZPR06MB5676.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2024 01:37:42.1193 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jDJ3mHnLsbLVUFJvfPkRnNHL1ZHg8yKf+jGBlZzgxFrpsb6F531+zy1vjdjgOyNhyPrGQFBRRgjB+IKEA9ekfA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5172 在 2024/4/20 10:47, xiujianfeng 写道: > However, I don’t think this is the right way. Even though the > information shown by /proc/cgroups doesn’t seem as useful for cgroup2 as > for cgroup1 due to cgroup2 has only single hierarchy, it’s not entirely OK, thanks for your reply > useless, IMHO.