-
Notifications
You must be signed in to change notification settings - Fork 250
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
/proc/stat is not work in cgroup v2 #593
Comments
Hi @hdp7891000 Couldn't you be more specific about the problem that you've met? |
Thanks. |
I am also using lxcfs in kubernetes with admission webhook. but I have same problem. My cluster is working on Ubuntu 20.04 and I recently upgraded my Kuberenetes version to 1.25 and changed cgroup v1 to cgroup v2 https://github.com/ymping/lxcfs-admission-webhook in alipine linux daemonset, I am using 5.0.3-r1 package in this project, this code normally mounts
so I added code to mount
(changed cpu mount point /cpu/online to /cpu) I could see all the cpu informations when I see /proc/stat. |
Couldn't you show the lxcfs logs? @mjrodan1
Couldn't you show lxcfs logs and contents of both files from inside the container? |
lxcfs doesn't print anything special. I think read_cpuacct_usage_all does not support cgroup v2, because there is no cpuacct.usage_all or cpuacct.usage_percpu.
|
it should print Yes, cgroup v2 lacks of the cpuacct support at all. There is no alternative for this. And this is the Linux kernel side thing. |
my system has two lxcfs images. this is my lxcfs pod's (daemonset) container log
this log seems quite diffrent with docker's log |
Hi @hdp7891000 if it's still actual, couldn't you post output of I'm trying to understand if your problem is the same what we have in #628 |
Hi @idoyo7 I'm not sure that I understand your question. Couldn't you describe with a bit more detail, which problem do you have with LXCFS? |
Hi @mihalicyn, mentioning #628 (comment) here for completeness. (using |
Including the latest 5.0.3 version……
The text was updated successfully, but these errors were encountered: