LXC CPU usage

TFMvdBroek

New Member
Nov 17, 2021
6
0
1
33
So I've created a Ubuntu LXC container from a system template and a Xubuntu VM from an ISO.
No further programs are installed.

When I start the container, node CPU usage goes up to 35% and stays there. Power consumption goes up from 27W to 42W.

When I start the VM, node CPU goes to 1% load. Power to 28.5W.

How can a "lightweight" container use so much CPU & Power on idle compared to a full blown VM?
 
Sound like there is something not working like it should. You could use top or htop (needs to be installed first) on the host to look what processes are causing the cpu load.
 
Last edited:
So when I run the LXC container and run HTOP in the node shell I get the following:
Node_LXC.PNG

I also checked the CPU usage that is reported inside the LXC container and that is basically 0-1% ...

HTOP in node shell when running only VM:
Node_VM.PNG
 
Sound like there is something not working like it should. You could use top or htop (needs to be installed first) on the host to look what processes are causing the cpu load.

Do the processes in the screenshots ring a bell? Any idea what could be the issue?

Thanks