cgroups
cgroups copied to clipboard
Support to handle more than 4 fields in cpuacct.stat
In some kernel, the cpuacct.stat has more than 4 fields.
# cat /sys/fs/cgroup/cpuacct/kubepods/besteffort/pod7a0c0cd5-4414-4a20-9105-993e7cbaf371/5a73789dcb4fd96e5d4946dd9ea7ed444c3c896eb51f6a98c8cff11e0b1ec48c/cpuacct.stat
user 32
system 89
sched_delay 0
should handle this case.
Signed-off-by: Guodong Zhu [email protected]
@AkihiroSuda PTAL