Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to handle more than 4 fields in cpuacct.stat #231

Merged
merged 2 commits into from
Sep 16, 2022

Conversation

jellor
Copy link
Contributor

@jellor jellor commented May 16, 2022

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 guodong9211@gmail.com

Signed-off-by: Guodong Zhu <guodong9211@gmail.com>
Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jellor jellor requested a review from estesp July 21, 2022 16:10
@jellor
Copy link
Contributor Author

jellor commented Jul 28, 2022

@AkihiroSuda PTAL

@kzys kzys merged commit e8a4323 into containerd:main Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants