[FIXED] Beta issue? 100% CPU use for an idle guest OS
-
- Posts: 469
- Joined: 2. May 2010, 14:19
- Primary OS: Fedora other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux, other Unixes
- Location: Artem S. Tashkinov
- Contact:
[FIXED] Beta issue? 100% CPU use for an idle guest OS
An XP guest is consuming 100% of the host OS CPU while the guest OS is completely idle.
Host: Fedora 40, Linux kernel 6.9.8 vanilla
Guest: Windows XP 32bit, with or without guest additions
Processor: 1 CPU, PAE/Nested VT-x/AMD-v: both disabled, Paravirtualization: Legacy, Nested paging: Enabled
Chipset: PIIX3
Pointing device: PS/2 Mouse
Extended features: Enable I/O APIC
Display: Video Memory 30MB
Graphics Controller: VBoxVGA
Storage: IDE Controller, PIIX4, Use Host I/O Cache
Audio: ALSA/SoundBlaster 16; Audio Out/In both enabled
Network: NAT, PCnet-FAST III
USB Controller: USB 2.0
Edit: this is not limited to XP. All my idle guests (Windows 10 64bit as well) now consume 100% of the host CPU.
Edit 2: it's an extra VirtualBox thread that's consuming 100% of the CPU (i.e. when the guest is 100% loaded, the host CPU now has two 100% busy threads). Looks like a bug.
Host: Fedora 40, Linux kernel 6.9.8 vanilla
Guest: Windows XP 32bit, with or without guest additions
Processor: 1 CPU, PAE/Nested VT-x/AMD-v: both disabled, Paravirtualization: Legacy, Nested paging: Enabled
Chipset: PIIX3
Pointing device: PS/2 Mouse
Extended features: Enable I/O APIC
Display: Video Memory 30MB
Graphics Controller: VBoxVGA
Storage: IDE Controller, PIIX4, Use Host I/O Cache
Audio: ALSA/SoundBlaster 16; Audio Out/In both enabled
Network: NAT, PCnet-FAST III
USB Controller: USB 2.0
Edit: this is not limited to XP. All my idle guests (Windows 10 64bit as well) now consume 100% of the host CPU.
Edit 2: it's an extra VirtualBox thread that's consuming 100% of the CPU (i.e. when the guest is 100% loaded, the host CPU now has two 100% busy threads). Looks like a bug.
- Attachments
-
- windows 10 64.png (93.82 KiB) Viewed 6620 times
-
- 100% cpu use for an idle XP guest.png (101.75 KiB) Viewed 6626 times
Last edited by birdie on 21. Aug 2024, 08:39, edited 1 time in total.
Re: Beta issue? 100% CPU use for an idle guest OS
I didn't spot your post here and posted here about my own issue which sounds like it could be similar to yours:
I've also done testing on a separate Windows 11 machine installing Windows 11 guest machines from the same ISO image. The only other thing I could try is installing Windows 10, then using stock Windows 10/11 images, rather than my tweaked images.quizerti wrote: ↑27. Jul 2024, 12:34 I'm seeing unreasonably high CPU usage on my Windows 10 host when running Windows 10/11 guests. The CPU usage on the host machine doesn't seem to want to go below 32%, even when the guest is idle and has single % CPU utilisation figure shown in the guest's Task Manager in Windows.
As I type this, I have a Windows 10 headless machine running in the background at almost idle (<10% CPU) and it's chewing up 33% of my 7th gen i5. Normally this would settle down after a minute or two, but this isn't the case with the current beta.
-
- Posts: 146
- Joined: 20. May 2017, 05:07
- Primary OS: Fedora other
- VBox Version: OSE Fedora
- Guest OSses: Windows XP x86
- Contact:
Re: Beta issue? 100% CPU use for an idle guest OS
I can confirm and reproduce the same issue on a Fedora 40 kernel 6.9.11 host and a Windows XP Professional x86 host (with Microsoft Extended Support updates 'till July 2019) guest.
The configuration I have is slightly different compared to Birdie's one, though:
Processor: 4 CPU, PAE enabled, Nested VT-x/AMD-v: disabled, Paravirtualization: Hyper-V, Nested paging: Enabled
Chipset: PIIX3
Pointing device: USB Multi-Touch Tablet
Extended features: Enable I/O APIC
Display: Video Memory 256MB
Graphics Controller: VBoxVGA
Storage: Sata Controller, AHCI, Use Host I/O Cache
Audio: PulseAudio/ICH AC97; Audio Out/In both enabled
Network: NAT, Paravirtualized Network (virtio-net)
USB Controller: USB 3.0
The configuration I have is slightly different compared to Birdie's one, though:
Processor: 4 CPU, PAE enabled, Nested VT-x/AMD-v: disabled, Paravirtualization: Hyper-V, Nested paging: Enabled
Chipset: PIIX3
Pointing device: USB Multi-Touch Tablet
Extended features: Enable I/O APIC
Display: Video Memory 256MB
Graphics Controller: VBoxVGA
Storage: Sata Controller, AHCI, Use Host I/O Cache
Audio: PulseAudio/ICH AC97; Audio Out/In both enabled
Network: NAT, Paravirtualized Network (virtio-net)
USB Controller: USB 3.0
Re: Beta issue? 100% CPU use for an idle guest OS
Could you please attach a VBox.log?
-
- Posts: 146
- Joined: 20. May 2017, 05:07
- Primary OS: Fedora other
- VBox Version: OSE Fedora
- Guest OSses: Windows XP x86
- Contact:
Re: Beta issue? 100% CPU use for an idle guest OS
Given that this *feels* constant (i.e at least 1 core always being at 100% thus resulting in 25% usage on a 4c/4th CPU and 12% on a 4c/8th CPU), my best bet is that there's something going in a loop and wasting CPU cycles.
Given that we're in a Linux host, the core being pegged changes every few seconds to spread the load evenly, however this doesn't change the fact that there's some kind of loop going on. At least this is the behavior on my system.
I'll also provide the logs of my machine, however I can't do it straight away as I won't be next to that CPU until next week.
Given that we're in a Linux host, the core being pegged changes every few seconds to spread the load evenly, however this doesn't change the fact that there's some kind of loop going on. At least this is the behavior on my system.
I'll also provide the logs of my machine, however I can't do it straight away as I won't be next to that CPU until next week.
-
- Posts: 138
- Joined: 6. Oct 2017, 16:54
- Primary OS: MS Windows other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows
- Location: Germany
Re: Beta issue? 100% CPU use for an idle guest OS
I can confirm this behavior. In the current beta I have 33% load on the host even if the guest OS is nearly idle (less than 5%). The VBox dashboard reports 0% on guest OS and 66% on VMM.
Same VM with current 7.0.20 or 7.0.21 versions has less than 10% on the host with same load in the guest and in the dashboard. So this is an issue with the 7.1 beta. Changing additions from 7.1.x to 7.0.21 doesn't change anything in this regard.
I have current Windows 10 host with all updates and Windows 11 with all updates as the guest.
BTW, currently the extension pack of the development snapshot has a wrong very old version which isn't compatible with the new 7.1 beta. And there is no information about the beta on the VBox main page. So not everybody noticed that the beta was released.
Same VM with current 7.0.20 or 7.0.21 versions has less than 10% on the host with same load in the guest and in the dashboard. So this is an issue with the 7.1 beta. Changing additions from 7.1.x to 7.0.21 doesn't change anything in this regard.
I have current Windows 10 host with all updates and Windows 11 with all updates as the guest.
BTW, currently the extension pack of the development snapshot has a wrong very old version which isn't compatible with the new 7.1 beta. And there is no information about the beta on the VBox main page. So not everybody noticed that the beta was released.
-
- Posts: 146
- Joined: 20. May 2017, 05:07
- Primary OS: Fedora other
- VBox Version: OSE Fedora
- Guest OSses: Windows XP x86
- Contact:
Re: Beta issue? 100% CPU use for an idle guest OS
Yep, I can confirm.Air Force One wrote: ↑10. Aug 2024, 17:59 currently the extension pack of the development snapshot has a wrong very old version which isn't compatible with the new 7.1 beta.
The download page offers the extension pack for 7.0.97 r163452 which is not compatible with 7.1.0 r164294.
Trying to install that old version of the guest additions on the new 7.1.0 r164294 leads to the following error:
-
- Oracle Corporation
- Posts: 309
- Joined: 19. May 2008, 16:09
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Too many to specify!
- Contact:
Re: Beta issue? 100% CPU use for an idle guest OS
I think we found and fixed the issue; thanks for the report!
As a workaround (or to confirm if this really caused the 100% CPU loads) you configure the VM to use a non-NAT networking setup.
As a workaround (or to confirm if this really caused the 100% CPU loads) you configure the VM to use a non-NAT networking setup.
-
- Posts: 469
- Joined: 2. May 2010, 14:19
- Primary OS: Fedora other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux, other Unixes
- Location: Artem S. Tashkinov
- Contact:
Re: Beta issue? 100% CPU use for an idle guest OS
Thanks a ton!pentagonik wrote: ↑15. Aug 2024, 11:36 I think we found and fixed the issue; thanks for the report!
As a workaround (or to confirm if this really caused the 100% CPU loads) you configure the VM to use a non-NAT networking setup.
I remember you used to release new betas or RCs every week in the past, it's now been more than two weeks since the first beta release. Looks like something has changed.
-
- Volunteer
- Posts: 1258
- Joined: 14. Sep 2019, 16:51
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux, BSD
- Location: United Kingdom
Re: Beta issue? 100% CPU use for an idle guest OS
@birdie
Some interim updates to 'BETA1' have been posted on the Test Builds Page (Development Snapshots). The first new Builds were posted on August 7; and a later batch of Builds have since been posted, on August 15. Obviously, as normal with these progressive test builds there are no 'formal' announcements of what has been changed/fixed as each new build is added. I presume 'BETA2' will come along when the Development Team believe that sufficient progress has been made on any substantial issues to invite more user feedback.
Some interim updates to 'BETA1' have been posted on the Test Builds Page (Development Snapshots). The first new Builds were posted on August 7; and a later batch of Builds have since been posted, on August 15. Obviously, as normal with these progressive test builds there are no 'formal' announcements of what has been changed/fixed as each new build is added. I presume 'BETA2' will come along when the Development Team believe that sufficient progress has been made on any substantial issues to invite more user feedback.
-
- Posts: 138
- Joined: 6. Oct 2017, 16:54
- Primary OS: MS Windows other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows
- Location: Germany
Re: Beta issue? 100% CPU use for an idle guest OS
The issue is still here in the current development snapshot r164369.
Re: Beta issue? 100% CPU use for an idle guest OS
Yes, known. The fix is easy but there are larger changes pending which would run into merge conflicts. Should be resolved at the latest early next week.
-
- Posts: 146
- Joined: 20. May 2017, 05:07
- Primary OS: Fedora other
- VBox Version: OSE Fedora
- Guest OSses: Windows XP x86
- Contact:
Re: Beta issue? 100% CPU use for an idle guest OS
Unfortunately that didn't solve the issue.pentagonik wrote: ↑15. Aug 2024, 11:36 I think we found and fixed the issue; thanks for the report!
As a workaround (or to confirm if this really caused the 100% CPU loads) you configure the VM to use a non-NAT networking setup.
I'm currently using bridged networking via virt-io and it's still with 1 core at 100%.
Yes I can confirm this.Air Force One wrote: ↑16. Aug 2024, 18:18 The issue is still here in the current development snapshot r164369.
In the meantime, a new development snapshot was released on August 15th, namely 7.1.0 r164395 but it didn't address the issue.
By the way, this doesn't seem to be affecting the Beta only, but rather it seems to be something introduced between 7.0.19 r163782 and 7.0.20 r163906 as I mentioned here: https://www.virtualbox.org/ticket/22123
Once again, downgrading the guest additions to 7.0.19 r163782 (or, for those who prefer stable, 7.0.18 https://download.virtualbox.org/virtual ... 7.0.18.iso) solves the issue. In other words, I can confirm that the last guest additions to not show the issue are 7.0.19 r163782 and using those solves the issue on both 7.0.20 and 7.1.0.
I'm glad to hear that, I'll update the ticket as soon as those are gonna be available for testing.
Re: Beta issue? 100% CPU use for an idle guest OS
FranceBB: your issue is actually not what is the topic of this thread: you see high CPU usage inside the guest (caused by VBoxTray). The originally reported issue was a busy loop in the NAT code (which happened when the guest OS was really idle).
The latest dev snapshot test builds (the r164434+ ones) have the NAT issue fixed.
The latest dev snapshot test builds (the r164434+ ones) have the NAT issue fixed.