VirtualBox burning CPU

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Ochiroo
Posts: 4
Joined: 5. Oct 2020, 03:54
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: CentOS, Windows
Location: Ulaanbaatar, Mongolia

VirtualBox burning CPU

Post 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
host.png (4.71 KiB) Viewed 1311 times
Guest
Guest
Guest
guest.png (11.68 KiB) Viewed 1311 times
Here is VirtualBOX log1
123123.log
Log
(80.47 KiB) Downloaded 5 times
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VirtualBox burning CPU

Post 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. ;)
Ochiroo
Posts: 4
Joined: 5. Oct 2020, 03:54
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: CentOS, Windows
Location: Ulaanbaatar, Mongolia

Re: VirtualBox burning CPU

Post by Ochiroo »

Ok. Nested paging is enabled

here is top -H
top -H.png
top -H.png (47.46 KiB) Viewed 1265 times
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VirtualBox burning CPU

Post 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.
Ochiroo
Posts: 4
Joined: 5. Oct 2020, 03:54
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: CentOS, Windows
Location: Ulaanbaatar, Mongolia

Re: VirtualBox burning CPU

Post by Ochiroo »

Yeap i have 2 VM
thanks for advice finally i figured out it
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VirtualBox burning CPU

Post 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. ;)
Ochiroo
Posts: 4
Joined: 5. Oct 2020, 03:54
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: CentOS, Windows
Location: Ulaanbaatar, Mongolia

Re: VirtualBox burning CPU

Post 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%.
Post Reply