Qemu using CPU even when the VM is paused
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virt-manager |
Won't Fix
|
Undecided
|
|||
qemu (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
virt-manager (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I run a Windows 10 VM for work and sometimes pause it when I'm not using it. However even when paused it keeps using ~15% of CPU. I'm running it with virt-manager and that's what I'm using to pause it.
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: qemu-system-x86 1:3.1+dfsg-
ProcVersionSign
Uname: Linux 5.0.0-31-generic x86_64
ApportVersion: 2.20.10-0ubuntu27.2
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Nov 2 18:12:11 2019
InstallationDate: Installed on 2019-05-09 (176 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 138a:0090 Validity Sensors, Inc. VFS7500 Touch Fingerprint Sensor
Bus 001 Device 003: ID 5986:0706 Acer, Inc
Bus 001 Device 002: ID 8087:0a2b Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: LENOVO 20FAS1DA00
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: qemu
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/19/2019
dmi.bios.vendor: LENOVO
dmi.bios.version: N1CET75W (1.43 )
dmi.board.
dmi.board.name: 20FAS1DA00
dmi.board.vendor: LENOVO
dmi.board.version: 0B98417 WIN
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: ThinkPad T460s
dmi.product.name: 20FAS1DA00
dmi.product.sku: LENOVO_
dmi.product.
dmi.sys.vendor: LENOVO
Changed in virt-manager (Ubuntu): | |
status: | New → Confirmed |
Changed in virt-manager: | |
importance: | Unknown → Undecided |
status: | Unknown → Won't Fix |
A paused guest still can have some action in I/O threads or UI, but 15% seems a lot.
None of the automatic logs helps for this.
You should gather some metrics which thread is using the CPU and where.
pidstat -p $(pidof qemu-system-x86_64) -T ALL -rtuw 5 5
Report that back here on the bug to discuss what it might be.
In a check with a paused linux guest that stays <1% for me.
If you have more guests up identify the PID of the one in question and use it instead of `$(pidof qemu-system- x86_64) `