jiangcuo/Proxmox-Port

CT not honoring set cpu and memory limits.

Opened this issue · 1 comments

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

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

image