[SOLVED] VM CPU usage greater than 100% to be expected?

apoc

Famous Member
Oct 13, 2017
1,051
172
108
Hello Proxmox-Team,

I noticed that my VMs go beyond 100% CPU usage. Highest I could see was 103.85%. My host is running the latest and greatest PVE release (CE).
It is independent from the guest type (saw on multi- and single-CPU VMs, as well as on Windows and Linux guests).

An example:
cpu-usage-gt-100.png


Is this expected (because the overhead on the host is also accounted for) or is this an unwanted feature (not to use the term "bug")?
Thanks for clarification and with best regards
Thomas
 
hi,

Is this expected (because the overhead on the host is also accounted for)
yes it can happen. this is because qemu spawns a thread for every cpu you assign to the vm, and has its own thread for managing (or more than one in some cases).

if you'd like to avoid this, go to VM- > Hardware -> Processor
set 'CPU Limit' to the same number as the number of the assigned processors.
 
  • Like
Reactions: techtomic