Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1167940iog; Thu, 30 Jun 2022 19:09:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s8hOwM5fxgKS+X2Am/PAC/d8DFDoH0Lf3MI1B7ieKDDwWvIaPjEeDJObY3gIJBrDadgDGc X-Received: by 2002:a05:6a00:1688:b0:517:cf7b:9293 with SMTP id k8-20020a056a00168800b00517cf7b9293mr17612278pfc.7.1656641361067; Thu, 30 Jun 2022 19:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656641361; cv=none; d=google.com; s=arc-20160816; b=KpKFrVrGzH3ZsjAcrCM81NEKLFe357h1zJ+HpNxukoxSJoDdVXhGrBt6SoffGC0af/ a1F75Vx8Mf3gz/7tzqTOsHk5D0wOS6g6mH81ONRJOK38cR4foXzGuX90LGfoEjlp7CLV 9ghEr3Gj0I6eqN/fSl4KzAi6DtEP+2faG5lhGmJS23Qy3Rsba3uAYOj0PYikt5ArLHv7 rsq8ofXbHqB0XbaBx3F2KU6JjZDOwzHJghexkLl5v7ZMXFR+Pv2rikMkS2QKxCJ+8hBE i5EIFF2yQzGmkwMm0npgQIgt1arrug6JoGIedbomJg+c/v+cFeiMwmZRSR4EFwFXCQSs EamA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=4h/L/65DXCCqgoX0CyRs3Ue5LVVhYRMDWeF/GQ7FWhM=; b=o263IZQYolUyYrPqr6yrpa3OlVrg10r92Vp3HyVtCrXxB+wcGEh4Ah2iK7pkAyBxFn aufDBEohk6t9tEjqzwnEN7ELTFa8/QhaQkhK6NRI72/xRKBz3kBxbHmdBMTVTum3dqcF maMG65zPzJzBWcN7ETaJHpV8pPyw7/SfGcwvDYmjj5U+Ato0L+Hq2eR9Q03TNvmhOrol lryIvxWjMxRhO+5Nmr1xHvtw1uA0Y9Wzc/PNeqKUsy8WYc0ndKwaJBaQq247TBGpbe3L vXWVbASlW87lZPK6GS/VEFJRVVa2YeQUOvEAqFvokawovQ+0FA0CL3Kak5iDFsc9iDAh LRFg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk6-20020a17090b4a0600b001eee0c42b51si9522882pjb.190.2022.06.30.19.08.53; Thu, 30 Jun 2022 19:09:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232214AbiGABuV (ORCPT + 99 others); Thu, 30 Jun 2022 21:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiGABuO (ORCPT ); Thu, 30 Jun 2022 21:50:14 -0400 Received: from zg8tmtyylji0my4xnjqunzqa.icoremail.net (zg8tmtyylji0my4xnjqunzqa.icoremail.net [162.243.164.74]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 95D8917594; Thu, 30 Jun 2022 18:50:09 -0700 (PDT) Received: from [10.8.148.37] (unknown [59.61.78.232]) by app2 (Coremail) with SMTP id SyJltABXOEW6Ur5io5YBAA--.508S2; Fri, 01 Jul 2022 09:49:47 +0800 (CST) Message-ID: <5a6df5c4-e24d-1171-87a8-b013f861f0d5@wangsu.com> Date: Fri, 1 Jul 2022 09:49:46 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH] cgroup-v1: use find granularity format identifiers to make /proc/cgroups show pretty Content-Language: en-US To: Tejun Heo Cc: lizefan.x@bytedance.com, hannes@cmpxchg.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220630082539.83602-1-linf@wangsu.com> From: Lin Feng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: SyJltABXOEW6Ur5io5YBAA--.508S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtw1rGr1xCw48GFW5Aw15CFg_yoWkGrg_ur yktws2kw1DGFs0v3ZFyrsxXrWDKrWUWr98Z3y0qry7t34rZFZxGF4Fkr93Zr1rGF47AFn8 CFZ5tw4j9342gjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbc8YjsxI4VWkKwAYFVCjjxCrM7CY07I20VC2zVCF04k26cxKx2IY s7xG6rWj6s0DM28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI 8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr1j6rxdM28EF7xvwVC2 z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcV Aq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6x8ErcxFaVAv8VW8GwAv 7VCY1x0262k0Y48FwI0_Gr1j6F4UJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr4 1lc7I2V7IY0VAS07AlzVAYIcxG8wCY02Avz4vE14v_KwCF04k20xvY0x0EwIxGrwCF04k2 0xvE74AGY7Cv6cx26r48MxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr 0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0E wIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJV W8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAI cVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUhtx6UUUUU X-CM-SenderInfo: holqwq5zdqw23xof0z/ X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, T_SPF_TEMPERROR autolearn=ham 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 Hi Tejun, On 7/1/22 09:09, Tejun Heo wrote: > On Thu, Jun 30, 2022 at 04:25:39PM +0800, Lin Feng wrote: >> The listing subsys info is unaligned with the header columns and we can >> make the output more intuitive to read by specifying "left alignment" >> and "fixed length" format styles for seq_printf. > This has been proposed before but the file is useful only in cgroup1 > which is in maintenance mode and the format has been like that since > forever. Given that there's some chance that it can break dumb > parsers, the choice has been to leave it alone. It's such a dumb file > format to begin with and just leaving it to wither and die seems to be > the right direction. Thanks for your explanation and sorry that I missed we have such a consensus before. I had considered that if this change would break the parsers, but it's likely that it won't else the parser is really a broken one and needs some improvements. On the other hand, cgroup-v1 still has many old users and kernel still has to maintain it for some time for back compatible reason, so I think this tiny fix should not be a bad idea. Thanks, linfeng