[SOLVED] qemu-agent 100% CPU usage

Jul 16, 2018
20
1
1
33
Uruguay
www.netuy.net
Hello,

we have 2 servers running Proxmox 5.2
proxmox-ve: 5.2-2 (running kernel: 4.15.17-1-pve)
pve-manager: 5.2-1 (running version: 5.2-1/0fcd7879)
pve-kernel-4.15: 5.2-1
pve-kernel-4.15.17-1-pve: 4.15.17-9
corosync: 2.4.2-pve5
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.0-8
libpve-apiclient-perl: 2.0-4
libpve-common-perl: 5.0-31
libpve-guest-common-perl: 2.0-16
libpve-http-server-perl: 2.0-8
libpve-storage-perl: 5.0-23
libqb0: 1.0.1-1
lvm2: 2.02.168-pve6
lxc-pve: 3.0.0-3
lxcfs: 3.0.0-1
novnc-pve: 0.6-4
proxmox-widget-toolkit: 1.0-18
pve-cluster: 5.0-27
pve-container: 2.0-23
pve-docs: 5.2-3
pve-firewall: 3.0-8
pve-firmware: 2.0-4
pve-ha-manager: 2.0-5
pve-i18n: 1.0-5
pve-libspice-server1: 0.12.8-3
pve-qemu-kvm: 2.11.1-5
pve-xtermjs: 1.0-5
qemu-server: 5.0-26
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.8-pve1~bpo9
.

On one of those servers we have 2 VMs that run CloudLinux 7.6 and have cPanel. I noticed today that the CPU usage was higher than expected, both on the VMs and on the Proxmox Host.

After looking a bit into the VMs it was clear that the usage was caused by the qemu-agent. On both VMs it was on constantly using 100% of CPU. I uninstalled it and after that the load and CPU usage went down, even at the Proxmox host, the screenshots were taken just minutes after uninstalling it.

Captura de pantalla de 2019-01-22 10-20-14.png Captura de pantalla de 2019-01-22 10-21-06.png

Is this normal? Did anyone else had this issue?

Thank you very much!

Juan Correa
 
I have this issue from time to time as well, I will uninstall qemu agent next time as all it does is provide a "nice shutdown" which it already does on other linux VMs without the agent installed..
 
Hello everybody!

I ended uninstalling the agent and disabling it on the VM options. So far the CPU usage has been stable and much lower than before, and we haven't faced any issues with the backups.

So, I guess so far this has been a valid solution.

Regards,

Juan Correa
 
@korvin7 May I ask if you remove it from VM's grub config or PVE host's grub config? Cheers.

Eoin
 
remove idle=poll from grub_options fix my problem
Hi, this happened on multiple ubuntu vm's this morning. Had to kill qemu-ga on them to quiet it down. I don' see the "idle=poll" option in /etc/default/grub... would it be located elsewhere or is this solution outdated?
 
Hi, this happened on multiple ubuntu vm's this morning. Had to kill qemu-ga on them to quiet it down. I don' see the "idle=poll" option in /etc/default/grub... would it be located elsewhere or is this solution outdated?
I had this bug on debian in past (in previous debian releases, don't remember exactly). So I think it was a bug in a specific qemu agent version.

what is your ubuntu version ? and agent version ?
 
Hi thanks for your interest. It happened in two different versions of ubuntu:
ubuntu 18.04 with qemu-guest-agent Installed: 1:2.11+dfsg-1ubuntu7.42
ubuntu 22.04 with qemu-guest-agent Installed: 1:6.2+dfsg-2ubuntu6.9
 
I had the same issue last night on ubuntu 22 with agent version 1:6.2+dfsg-2ubuntu6.15