lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch v2] cgroup: pretty format /proc/cgroups
On Mon, Nov 15, 2021 at 01:12:53AM +0000, Wei Yang wrote:
> Current /proc/cgroups looks like this:
>
> subsys_name hierarchy num_cgroups enabled
> cpuset 3 1 1
> cpu 2 1 1
> cpuacct 2 1 1
> memory 4 71 1
> freezer 5 1 1
>
> Let's align the title and value. After this patch, it looks like this.
>
> subsys_name hierarchy num_cgroups enabled
> cpuset 5 1 1
> cpu 3 1 1
> cpuacct 3 1 1
> memory 2 71 1
> freezer 4 1 1
>
> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>

So, I know it's silly but the file is dumb \t formatted (ie. single \t
between fields) and am slightly worried that changing the format might break
some dumb userspace tooling. Given that the information isn't really needed
for cgroup2 anyway, it prolly is better to leave it as-is, I think.

Thanks.

--
tejun

\
 
 \ /
  Last update: 2021-11-16 01:13    [W:0.080 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site