Page 1 of 1
VirtualBox burning CPU
Posted: 5. Oct 2020, 03:57
by Ochiroo
I have CentOS 7.x host and Centos 7.7 guest using virtualbox 6.1 I have disabled audio, USB in virtualbox but virtualbox using over 400% CPU. Guest is almost idle CPU usage around 30% in guest side.
Host

- Host
- host.png (4.71 KiB) Viewed 1384 times
Guest

- Guest
- guest.png (11.68 KiB) Viewed 1384 times
Here is VirtualBOX log1
Re: VirtualBox burning CPU
Posted: 5. Oct 2020, 12:55
by fth0
In
top, please use the 'H' command to show the threads.
Edit:
In the VM configuration, enable
System > Acceleration > Nested Paging. And don't use
System > Processor > Execution Cap, I haven't heard much good about it.

Re: VirtualBox burning CPU
Posted: 6. Oct 2020, 05:44
by Ochiroo
Ok. Nested paging is enabled
here is top -H

- top -H.png (47.46 KiB) Viewed 1338 times
Re: VirtualBox burning CPU
Posted: 6. Oct 2020, 13:32
by fth0
It looks like you have 2 VMs (VirtualBoxVM processes) running, and only the VM with 1 vCPU is generating high CPU load now. You may notice that all threads belonging to a single process have the same %MEM, VIRT, RES, SHR values. Watch the situation in top to see if the CPU load stays with the same threads, or which threads from which process are affected.
Re: VirtualBox burning CPU
Posted: 7. Oct 2020, 03:52
by Ochiroo
Yeap i have 2 VM
thanks for advice finally i figured out it
Re: VirtualBox burning CPU
Posted: 7. Oct 2020, 17:15
by fth0
Thanks for reporting back!
If you write what you've figured out, it may help someone else when reading this thread in the future.

Re: VirtualBox burning CPU
Posted: 12. Oct 2020, 06:11
by Ochiroo
Issue was my fault, I had 2 VM. I have assigned 10 cores to VM1 and assigned 4 cores to VM2. VM1 configured properly but VM2 USB and Audio enabled and disabled Hardware virtualization (Nested paging). When disabled usb and audio and enabled Nested paging. Now core loads reduced to around 3-60%.