qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Bug 1914667] [NEW] High cpu usage when guest is idle on qemu-system-i386
@ 2021-02-04 23:33 John Arbuckle
  2021-02-05  0:25 ` [Bug 1914667] " John Arbuckle
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: John Arbuckle @ 2021-02-04 23:33 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

When running Windows XP in qemu-system-i386, the cpu usage of QEMU is
about 100% even when the guest CPU usage is close to 2%. The host cpu
usage should be low when the guest cpu usage is low.

Command: qemu-system-i386 -hda <Windows XP HD image>

Using this command also shows around 100% host CPU usage:
qemu-system-i386 -m 700 -hda <Windows XP HD image> -usb -device usb-audio -net nic,model=rtl8139 -net user -hdb mountable.img -soundhw pcspk

Using the Penryn CPU option also saw this problem:
qemu-system-i386 -hda <Windows XP HD image> -m 700 -cpu Penryn-v1

Using "-cpu pentium2" saw the same high host cpu usage.


My Info:
M1 MacBook Air
Mac OS 11.1
qemu-system-i386 version 5.2 (1ba089f2255bfdb071be3ce6ac6c3069e8012179)
Windows XP SP3 Build 2600

** Affects: qemu
     Importance: Undecided
         Status: New

** Attachment added: "high cpu usage.png"
   https://bugs.launchpad.net/bugs/1914667/+attachment/5460096/+files/high%20cpu%20usage.png

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1914667

Title:
  High cpu usage when guest is idle on qemu-system-i386

Status in QEMU:
  New

Bug description:
  When running Windows XP in qemu-system-i386, the cpu usage of QEMU is
  about 100% even when the guest CPU usage is close to 2%. The host cpu
  usage should be low when the guest cpu usage is low.

  Command: qemu-system-i386 -hda <Windows XP HD image>

  Using this command also shows around 100% host CPU usage:
  qemu-system-i386 -m 700 -hda <Windows XP HD image> -usb -device usb-audio -net nic,model=rtl8139 -net user -hdb mountable.img -soundhw pcspk

  Using the Penryn CPU option also saw this problem:
  qemu-system-i386 -hda <Windows XP HD image> -m 700 -cpu Penryn-v1

  Using "-cpu pentium2" saw the same high host cpu usage.

  
  My Info:
  M1 MacBook Air
  Mac OS 11.1
  qemu-system-i386 version 5.2 (1ba089f2255bfdb071be3ce6ac6c3069e8012179)
  Windows XP SP3 Build 2600

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1914667/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1914667] Re: High cpu usage when guest is idle on qemu-system-i386
  2021-02-04 23:33 [Bug 1914667] [NEW] High cpu usage when guest is idle on qemu-system-i386 John Arbuckle
@ 2021-02-05  0:25 ` John Arbuckle
  2021-02-05  1:40 ` John Arbuckle
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: John Arbuckle @ 2021-02-05  0:25 UTC (permalink / raw)
  To: qemu-devel

Just to compare notes I ran my same Windows XP image on an older version
of QEMU. This is version 2.10.1. It was built for the x86_64
architecture. The host CPU architecture is aarm64. The host CPU usage
was actually very low when the guest CPU usage was low. The guest was
using about 8% and the host usage was around 14%.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1914667

Title:
  High cpu usage when guest is idle on qemu-system-i386

Status in QEMU:
  New

Bug description:
  When running Windows XP in qemu-system-i386, the cpu usage of QEMU is
  about 100% even when the guest CPU usage is close to 2%. The host cpu
  usage should be low when the guest cpu usage is low.

  Command: qemu-system-i386 -hda <Windows XP HD image>

  Using this command also shows around 100% host CPU usage:
  qemu-system-i386 -m 700 -hda <Windows XP HD image> -usb -device usb-audio -net nic,model=rtl8139 -net user -hdb mountable.img -soundhw pcspk

  Using the Penryn CPU option also saw this problem:
  qemu-system-i386 -hda <Windows XP HD image> -m 700 -cpu Penryn-v1

  Using "-cpu pentium2" saw the same high host cpu usage.

  
  My Info:
  M1 MacBook Air
  Mac OS 11.1
  qemu-system-i386 version 5.2 (1ba089f2255bfdb071be3ce6ac6c3069e8012179)
  Windows XP SP3 Build 2600

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1914667/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1914667] Re: High cpu usage when guest is idle on qemu-system-i386
  2021-02-04 23:33 [Bug 1914667] [NEW] High cpu usage when guest is idle on qemu-system-i386 John Arbuckle
  2021-02-05  0:25 ` [Bug 1914667] " John Arbuckle
@ 2021-02-05  1:40 ` John Arbuckle
  2021-02-10 18:50 ` John Arbuckle
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: John Arbuckle @ 2021-02-05  1:40 UTC (permalink / raw)
  To: qemu-devel

For version 5.2 of qemu-system-i386 the instruction the guest is busy
executing over and over again is this: addb %al, (%eax)

For version 2.10.1 this is the instruction that is being executed when the guest is idle:
add %al,(%eax)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1914667

Title:
  High cpu usage when guest is idle on qemu-system-i386

Status in QEMU:
  New

Bug description:
  When running Windows XP in qemu-system-i386, the cpu usage of QEMU is
  about 100% even when the guest CPU usage is close to 2%. The host cpu
  usage should be low when the guest cpu usage is low.

  Command: qemu-system-i386 -hda <Windows XP HD image>

  Using this command also shows around 100% host CPU usage:
  qemu-system-i386 -m 700 -hda <Windows XP HD image> -usb -device usb-audio -net nic,model=rtl8139 -net user -hdb mountable.img -soundhw pcspk

  Using the Penryn CPU option also saw this problem:
  qemu-system-i386 -hda <Windows XP HD image> -m 700 -cpu Penryn-v1

  Using "-cpu pentium2" saw the same high host cpu usage.

  
  My Info:
  M1 MacBook Air
  Mac OS 11.1
  qemu-system-i386 version 5.2 (1ba089f2255bfdb071be3ce6ac6c3069e8012179)
  Windows XP SP3 Build 2600

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1914667/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1914667] Re: High cpu usage when guest is idle on qemu-system-i386
  2021-02-04 23:33 [Bug 1914667] [NEW] High cpu usage when guest is idle on qemu-system-i386 John Arbuckle
  2021-02-05  0:25 ` [Bug 1914667] " John Arbuckle
  2021-02-05  1:40 ` John Arbuckle
@ 2021-02-10 18:50 ` John Arbuckle
  2021-02-11  0:09 ` John Arbuckle
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: John Arbuckle @ 2021-02-10 18:50 UTC (permalink / raw)
  To: qemu-devel

After updating QEMU to 1214d55d1c41fbab3a9973a05085b8760647e411, I
reinstalled Windows XP and the host CPU usage at idle was normal. My
guess is that I picked a bad commit to reinstall Windows XP.

I tried using "-smp 4". Windows XP started up to a black screen. When I
restarted the problem with high CPU usage at idle was back. I did not
use the "-smp 4" option after restarting.

When I first specified the '-smp 4' option I saw Windows install
something then have the computer restarted.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1914667

Title:
  High cpu usage when guest is idle on qemu-system-i386

Status in QEMU:
  New

Bug description:
  When running Windows XP in qemu-system-i386, the cpu usage of QEMU is
  about 100% even when the guest CPU usage is close to 2%. The host cpu
  usage should be low when the guest cpu usage is low.

  Command: qemu-system-i386 -hda <Windows XP HD image>

  Using this command also shows around 100% host CPU usage:
  qemu-system-i386 -m 700 -hda <Windows XP HD image> -usb -device usb-audio -net nic,model=rtl8139 -net user -hdb mountable.img -soundhw pcspk

  Using the Penryn CPU option also saw this problem:
  qemu-system-i386 -hda <Windows XP HD image> -m 700 -cpu Penryn-v1

  Using "-cpu pentium2" saw the same high host cpu usage.

  
  My Info:
  M1 MacBook Air
  Mac OS 11.1
  qemu-system-i386 version 5.2 (1ba089f2255bfdb071be3ce6ac6c3069e8012179)
  Windows XP SP3 Build 2600

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1914667/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1914667] Re: High cpu usage when guest is idle on qemu-system-i386
  2021-02-04 23:33 [Bug 1914667] [NEW] High cpu usage when guest is idle on qemu-system-i386 John Arbuckle
                   ` (2 preceding siblings ...)
  2021-02-10 18:50 ` John Arbuckle
@ 2021-02-11  0:09 ` John Arbuckle
  2021-05-12 17:59 ` Thomas Huth
  2021-07-12  4:17 ` Launchpad Bug Tracker
  5 siblings, 0 replies; 7+ messages in thread
From: John Arbuckle @ 2021-02-11  0:09 UTC (permalink / raw)
  To: qemu-devel

I found a way to fix the high host cpu usage issue. To fix this issue
click on Start->All Programs->Accessories->System Tools->System Restore.
Then pick a restore point that is set before you tried the smp option.
After the VM restarts the high CPU usage issue will be gone :)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1914667

Title:
  High cpu usage when guest is idle on qemu-system-i386

Status in QEMU:
  New

Bug description:
  When running Windows XP in qemu-system-i386, the cpu usage of QEMU is
  about 100% even when the guest CPU usage is close to 2%. The host cpu
  usage should be low when the guest cpu usage is low.

  Command: qemu-system-i386 -hda <Windows XP HD image>

  Using this command also shows around 100% host CPU usage:
  qemu-system-i386 -m 700 -hda <Windows XP HD image> -usb -device usb-audio -net nic,model=rtl8139 -net user -hdb mountable.img -soundhw pcspk

  Using the Penryn CPU option also saw this problem:
  qemu-system-i386 -hda <Windows XP HD image> -m 700 -cpu Penryn-v1

  Using "-cpu pentium2" saw the same high host cpu usage.

  
  My Info:
  M1 MacBook Air
  Mac OS 11.1
  qemu-system-i386 version 5.2 (1ba089f2255bfdb071be3ce6ac6c3069e8012179)
  Windows XP SP3 Build 2600

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1914667/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1914667] Re: High cpu usage when guest is idle on qemu-system-i386
  2021-02-04 23:33 [Bug 1914667] [NEW] High cpu usage when guest is idle on qemu-system-i386 John Arbuckle
                   ` (3 preceding siblings ...)
  2021-02-11  0:09 ` John Arbuckle
@ 2021-05-12 17:59 ` Thomas Huth
  2021-07-12  4:17 ` Launchpad Bug Tracker
  5 siblings, 0 replies; 7+ messages in thread
From: Thomas Huth @ 2021-05-12 17:59 UTC (permalink / raw)
  To: qemu-devel

The QEMU project is currently moving its bug tracking to another system.
For this we need to know which bugs are still valid and which could be
closed already. Thus we are setting the bug state to "Incomplete" now.

If the bug has already been fixed in the latest upstream version of QEMU,
then please close this ticket as "Fix released".

If it is not fixed yet and you think that this bug report here is still
valid, then you have two options:

1) If you already have an account on gitlab.com, please open a new ticket
for this problem in our new tracker here:

    https://gitlab.com/qemu-project/qemu/-/issues

and then close this ticket here on Launchpad (or let it expire auto-
matically after 60 days). Please mention the URL of this bug ticket on
Launchpad in the new ticket on GitLab.

2) If you don't have an account on gitlab.com and don't intend to get
one, but still would like to keep this ticket opened, then please switch
the state back to "New" or "Confirmed" within the next 60 days (other-
wise it will get closed as "Expired"). We will then eventually migrate
the ticket automatically to the new system (but you won't be the reporter
of the bug in the new system and thus you won't get notified on changes
anymore).

Thank you and sorry for the inconvenience.


** Changed in: qemu
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1914667

Title:
  High cpu usage when guest is idle on qemu-system-i386

Status in QEMU:
  Incomplete

Bug description:
  When running Windows XP in qemu-system-i386, the cpu usage of QEMU is
  about 100% even when the guest CPU usage is close to 2%. The host cpu
  usage should be low when the guest cpu usage is low.

  Command: qemu-system-i386 -hda <Windows XP HD image>

  Using this command also shows around 100% host CPU usage:
  qemu-system-i386 -m 700 -hda <Windows XP HD image> -usb -device usb-audio -net nic,model=rtl8139 -net user -hdb mountable.img -soundhw pcspk

  Using the Penryn CPU option also saw this problem:
  qemu-system-i386 -hda <Windows XP HD image> -m 700 -cpu Penryn-v1

  Using "-cpu pentium2" saw the same high host cpu usage.

  
  My Info:
  M1 MacBook Air
  Mac OS 11.1
  qemu-system-i386 version 5.2 (1ba089f2255bfdb071be3ce6ac6c3069e8012179)
  Windows XP SP3 Build 2600

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1914667/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 1914667] Re: High cpu usage when guest is idle on qemu-system-i386
  2021-02-04 23:33 [Bug 1914667] [NEW] High cpu usage when guest is idle on qemu-system-i386 John Arbuckle
                   ` (4 preceding siblings ...)
  2021-05-12 17:59 ` Thomas Huth
@ 2021-07-12  4:17 ` Launchpad Bug Tracker
  5 siblings, 0 replies; 7+ messages in thread
From: Launchpad Bug Tracker @ 2021-07-12  4:17 UTC (permalink / raw)
  To: qemu-devel

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1914667

Title:
  High cpu usage when guest is idle on qemu-system-i386

Status in QEMU:
  Expired

Bug description:
  When running Windows XP in qemu-system-i386, the cpu usage of QEMU is
  about 100% even when the guest CPU usage is close to 2%. The host cpu
  usage should be low when the guest cpu usage is low.

  Command: qemu-system-i386 -hda <Windows XP HD image>

  Using this command also shows around 100% host CPU usage:
  qemu-system-i386 -m 700 -hda <Windows XP HD image> -usb -device usb-audio -net nic,model=rtl8139 -net user -hdb mountable.img -soundhw pcspk

  Using the Penryn CPU option also saw this problem:
  qemu-system-i386 -hda <Windows XP HD image> -m 700 -cpu Penryn-v1

  Using "-cpu pentium2" saw the same high host cpu usage.

  
  My Info:
  M1 MacBook Air
  Mac OS 11.1
  qemu-system-i386 version 5.2 (1ba089f2255bfdb071be3ce6ac6c3069e8012179)
  Windows XP SP3 Build 2600

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1914667/+subscriptions


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-12  4:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 23:33 [Bug 1914667] [NEW] High cpu usage when guest is idle on qemu-system-i386 John Arbuckle
2021-02-05  0:25 ` [Bug 1914667] " John Arbuckle
2021-02-05  1:40 ` John Arbuckle
2021-02-10 18:50 ` John Arbuckle
2021-02-11  0:09 ` John Arbuckle
2021-05-12 17:59 ` Thomas Huth
2021-07-12  4:17 ` Launchpad Bug Tracker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).