-
Notifications
You must be signed in to change notification settings - Fork 16
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
CGroup v2 issue #29
Comments
Hi, I have the same issue as @MaxiStefan on my system. I can't have My platform is Ubuntu 22.04 LTS - Linux 5.15.0-58-generic and in |
Hello, Maybe you haven't regenerated the grub configuration ? ( |
Thank you @gfieni for your quick reply. I have just forgotten to regenerate my grub configuration... Basic mistake, sorry 😅 ... Now I have the |
Hi, Thanks for getting back to us. I did regenetare my grub config (prior to making this post) with no success. cat /proc/cmdline returned the following: BOOT_IMAGE=/boot/vmlinuz-5.15.0-58-generic root=UUID=f3a6250d-896d-440a-9d53-18f61dffbebd ro quiet splash |
In the meantime...on another machine I installed Ubuntu 18 and although this mentions that linux kernel 4.15 should have arch/x86/events/intel/rapl.c, if I run perf list | grep power/ my output is empty. So on older kernels with v1 cgroup I cannot seem to have access to RAPL events and on my new Ubuntu version with 5.15 kernel I cannot create a perf_controller but I have access to RAPL events. |
Hello,
For Ubuntu kernels, the RAPL module is inside the
|
So I did change the parameter in the grub file and it now seems like i have the cgroup v1 active and managed to create a new perf_event:cgroup_name. I was a bit cautious to change anything in grub that was not mentioned in the documentation I followed for adding However, just in case I will encounter any errors in the future... I have also rebooted my ubuntu machine with kernel 4.15 after sudo update-initramfs -c -k $(uname -r) and modinfo rapl gives modinfo: ERROR: Module rapl not found. If you happen to have any ideas and some extra time to help me figure out why that might be the case, I would appreciate it immensely. It would be amazing if I could also make this machine work...Otherwise I will simply continue with the other version and test if I have any readings from my individual containers. |
Are you sure the |
|
Hi,
My distribution has cgroup v2 installed and I tried to follow the instructions from this issue:
GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=0"
Additionally, I tried to follow this to manually manage cgroups with cgroupfs, however, I seem to have errors when editing the cgroup.subtree_control file to add perf event controller
For reference, the only controllers I have active are: cpuset cpu io memory hugetlb pids rdma misc (cat /sys/fs/cgroup/cgroup.controllers)
Any recommendation for making this work on a Ubuntu 22.04 with a 5.15.0-58-generic kernel version? I am simply trying to use smartwatts and the sensor to measure some container level energy consumption on my machine...no kubernetes cluster or anything on top
The text was updated successfully, but these errors were encountered: