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

CT not honoring set cpu and memory limits. #116

Open
kimasplund opened this issue Jul 30, 2024 · 2 comments
Open

CT not honoring set cpu and memory limits. #116

kimasplund opened this issue Jul 30, 2024 · 2 comments

Comments

@kimasplund
Copy link

kimasplund commented Jul 30, 2024

So i installed proxmox on a couple of Raspberry pi 5 with 8gb ram.
Running any ct with f.ex. 1cpu and 1024mb ram is displayed correctly on the proxmox summary but the ct dont honor it. running "stress-ng --cpu 2 --timeout 60" will use 199% of available cpu. same goes for memory. the system will see and be able to use 100% of the host resources.

Screenshot 2024-07-30 115600

fix this by adding cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 cgroup_no_v1=all cgroup_cpuset=1 to /boot/firmware/cmdline.txt (it all needs to be in the one line after any existing text)
it did not seem to want to honor these settings by adding them to config.txt for some reason.

Screenshot 2024-07-30 122344

@AnnoyingTechnology
Copy link

I'm surprised you even get CPU and memory reporting, I don't get either.
Did you tweak something else ?

image

@mattjamison
Copy link

Same issue led me here and the same fix worked for me. Thanks @kimasplund! Also as noted by @AnnoyingTechnology, I wasn't getting container level cpu/mem stats before the fix, but I do once these parameters are enabled. 🍻

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

No branches or pull requests

3 participants