This is for PVE Manager 6.2.11 running on a single test dual core box with 1 socket. I see that cpuunits can be applied to the cpu resources/hardware of both containers and kvm machines and I had hoped to use the information from the manual to give a low CPU priority to some containers which run low priority, background tasks, but without much success.
As a test I created a simple container running archlinux and a VM running W2012. There are apps installed so both the container and VM and will use all the CPU resources they can, given the chance. The container has 2 cpus allocated, unlimited with cpuunits as 10. The VM has the same, but cpuunits is 1000. Neither are memory or IO bound.
With both running, each gets a little under 50% of the CPU time which wasn't quite what I expected. I thought perhaps the VM would get 100 times the share of the CPU or at least a signifiacntly higher share than the container. Is there a way to do this sort of tailoring - to give the container a lower access to cpu resources so it gets 10% and the VM gets 90% when both are running the CPU flat out?
I can see that I can use a cpulimit to stop the container from getting more than say, half a core, but that would seem to mean when no other container/VM was running, it would only use quarter of the CPU resources available.
If the VM isn't running or doing a lot of IO, I'm happy for and would quite like the container to use more CPU resources.
Any thoughts appreciated
As a test I created a simple container running archlinux and a VM running W2012. There are apps installed so both the container and VM and will use all the CPU resources they can, given the chance. The container has 2 cpus allocated, unlimited with cpuunits as 10. The VM has the same, but cpuunits is 1000. Neither are memory or IO bound.
With both running, each gets a little under 50% of the CPU time which wasn't quite what I expected. I thought perhaps the VM would get 100 times the share of the CPU or at least a signifiacntly higher share than the container. Is there a way to do this sort of tailoring - to give the container a lower access to cpu resources so it gets 10% and the VM gets 90% when both are running the CPU flat out?
I can see that I can use a cpulimit to stop the container from getting more than say, half a core, but that would seem to mean when no other container/VM was running, it would only use quarter of the CPU resources available.
If the VM isn't running or doing a lot of IO, I'm happy for and would quite like the container to use more CPU resources.
Any thoughts appreciated
