High CPU Utilization on idle KVM Guest

so noticed that my windows 10 kvm guest (running on unraid) was chewing up a cpu core.
the cpu utilization seemed to die down after i logged into the vm.
i logged out of the vm and waited 15 mins and did a htop and watched that VM’s utilization.
it seems that it would not drop below 25% which i thought was weird considering the VM was idle.
i turned off all the applications/services that were not running but that did not change a thing.
after doing some googling for a while i came across a post on the proxmox support forums about this exact issue.

they suggested adding these into my config

<clock offset=’localtime’>
<timer name=’rtc’ tickpolicy=’catchup’/>
<timer name=’pit’ tickpolicy=’delay’/>
<timer name=’hpet’ present=’yes’/>
<timer name=’hypervclock’ present=’yes’/>
</clock>

after adding the above settings i noticed that the vm is now idling under 8%
now its not as low as i wanted it but considering there is an antivirus scanner on the machine and i am doing snmp polls to the guest every 5 mins i think under 8% is great,considering it started out at 25-30%.

Source

Leave a Reply

Your email address will not be published. Required fields are marked *