High PVE CPU usage from idle VM

švin

New Member
May 1, 2023
1
0
1
Hi,

Idle OpenBSD VM constantly uses ~11% CPU.
Linux and FreeBSD VMs with exactly the same configuration use ~1%.
What I've tried so far:
- removed all network adapters
- shutdown all services in OpenBSD VM
- changed Machine from default i440fx to q35
- changed CPU types
- removed Display
- all above in combinations

It would be great if somebody could help me to resolve this.
Thank you in advance.

Code:
pveversion --verbose
proxmox-ve: 8.1.0 (running kernel: 6.5.13-1-pve)
pve-manager: 8.1.4 (running version: 8.1.4/ec5affc9e41f1d79)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.5.13-1-pve-signed: 6.5.13-1
proxmox-kernel-6.5: 6.5.13-1
proxmox-kernel-6.5.11-8-pve-signed: 6.5.11-8
ceph-fuse: 17.2.7-pve2
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx8
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.0
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.3
libpve-access-control: 8.1.2
libpve-apiclient-perl: 3.3.1
libpve-common-perl: 8.1.1
libpve-guest-common-perl: 5.0.6
libpve-http-server-perl: 5.0.5
libpve-network-perl: 0.9.5
libpve-rs-perl: 0.8.8
libpve-storage-perl: 8.1.0
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 5.0.2-4
lxcfs: 5.0.3-pve4
novnc-pve: 1.4.0-3
proxmox-backup-client: 3.1.4-1
proxmox-backup-file-restore: 3.1.4-1
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.3
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.5
proxmox-widget-toolkit: 4.1.4
pve-cluster: 8.0.5
pve-container: 5.0.8
pve-docs: 8.1.4
pve-edk2-firmware: 4.2023.08-4
pve-firewall: 5.0.3
pve-firmware: 3.9-2
pve-ha-manager: 4.0.3
pve-i18n: 3.2.1
pve-qemu-kvm: 8.1.5-3
pve-xtermjs: 5.3.0-3
qemu-server: 8.0.10
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.2-pve2


Code:
cat /etc/pve/qemu-server/102.conf
acpi: 1
agent: 0
balloon: 0
bios: ovmf
boot: order=scsi0
cores: 1
cpu: host
efidisk0: vm:102/vm-102-disk-1.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
hostpci0: 0000:01:00.0
hostpci1: 0000:01:00.3
hotplug: 0
ide2: static:iso/OpenBSDinstall74.iso,media=cdrom,size=617966K
kvm: 1
localtime: 0
memory: 1024
meta: creation-qemu=8.1.5,ctime=1709128674
name: OpenBSD74
net0: e1000=BC:24:11:32:2C:4A,bridge=vmbr0
numa: 0
ostype: other
scsi0: vm:102/vm-102-disk-0.qcow2,iothread=1,size=3G
scsihw: virtio-scsi-single
serial0: socket
smbios1: uuid=21d580fe-69f9-4b33-a508-668f61e0b7b1
sockets: 1
tablet: 0
vmgenid: 2f36d1f6-de51-489b-84fb-fd931aaab966


Code:
qm showcmd 102
/usr/bin/kvm -id 102 -name 'OpenBSD74,debug-threads=on' -no-shutdown -chardev 'socket,id=qmp,path=/var/run/qemu-server/102.qmp,server=on,wait=off' -mon 'chardev=qmp,mode=control' -chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5' -mon 'chardev=qmp-event,mode=control' -pidfile /var/run/qemu-server/102.pid -daemonize -smbios 'type=1,uuid=21d580fe-69f9-4b33-a508-668f61e0b7b1' -drive 'if=pflash,unit=0,format=raw,readonly=on,file=/usr/share/pve-edk2-firmware//OVMF_CODE_4M.fd' -drive 'if=pflash,unit=1,id=drive-efidisk0,format=qcow2,file=/dpool/vm/images/102/vm-102-disk-1.qcow2' -smp '1,sockets=1,cores=1,maxcpus=1' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vnc 'unix:/var/run/qemu-server/102.vnc,password=on' -cpu host,+kvm_pv_eoi,+kvm_pv_unhalt -m 1024 -object 'iothread,id=iothread-virtioscsi0' -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'pci-bridge,id=pci.3,chassis_nr=3,bus=pci.0,addr=0x5' -device 'vmgenid,guid=2f36d1f6-de51-489b-84fb-fd931aaab966' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'vfio-pci,host=0000:01:00.0,id=hostpci0,bus=pci.0,addr=0x10' -device 'vfio-pci,host=0000:01:00.3,id=hostpci1,bus=pci.0,addr=0x11' -chardev 'socket,id=serial0,path=/var/run/qemu-server/102.serial0,server=on,wait=off' -device 'isa-serial,chardev=serial0' -device 'VGA,id=vga,bus=pci.0,addr=0x2' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:2a13b2e23684' -drive 'file=/rpool/static/template/iso/OpenBSDinstall74.iso,if=none,id=drive-ide2,media=cdrom,aio=io_uring' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2' -device 'virtio-scsi-pci,id=virtioscsi0,bus=pci.3,addr=0x1,iothread=iothread-virtioscsi0' -drive 'file=/dpool/vm/images/102/vm-102-disk-0.qcow2,if=none,id=drive-scsi0,format=qcow2,cache=none,aio=io_uring,detect-zeroes=on' -device 'scsi-hd,bus=virtioscsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap102i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown' -device 'e1000,mac=BC:24:11:32:2C:4A,netdev=net0,bus=pci.0,addr=0x12,id=net0' -machine 'type=pc+pve0'


Code:
systat -h -s 10
   1 users Load 0.01 0.01 0.01                       

            memory totals (in KB)            PAGING   SWAPPING     Interrupts
           real   virtual     free           in  out   in  out      199 total
Active     8880     31012   252192   ops                                com0
All      720688    742820   350468   pages                              virtio0
                                                                        em0
Proc:r  d  s  w    Csw   Trp   Sys   Int   Sof  Flt       forks       1 em1
          52        22          22    13   100    3       fkppw         em2
                                                          fksvm         fdc0
   0.2%Int   0.0%Spn   0.1%Sys   0.0%Usr  99.7%Idle       pwait     198 clock
|    |    |    |    |    |    |    |    |    |    |       relck
                                                          rlkok
                                                          noram
Namei         Sys-cache    Proc-cache    No-cache         ndcpy
    Calls     hits    %    hits     %    miss   %         fltcp
                                                          zfod
                                                          cow
Disks   sd0   fd0                                    8107 fmin
seeks                                               10809 ftarg
xfers                                               58031 itarg
speed                                                   2 wired         IPKTS
  sec                                                     pdfre         OPKTS


Code:
dmesg                                                               
OpenBSD 7.4 (GENERIC) #3: Wed Feb 28 06:23:08 MST 2024
    root@syspatch-74-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1038802944 (990MB)
avail mem = 987746304 (941MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x3f917000 (9 entries)
bios0:
bios0: QEMU Standard PC (i440FX + PIIX, 1996)
efi0 at bios0: UEFI 2.7
efi0: EFI Development Kit II / OVMF rev 0x10000
acpi0 at bios0: ACPI 1.0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP APIC SSDT HPET WAET BGRT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5-2660 v2 @ 2.20GHz, 137.75 MHz, 06-3e-04
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SS,SSE3,PCLMUL,VMX,SSSE3,CX16,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,FSGSBASE,TSC_ADJUST,SMEP,ERMS,UMIP,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,ARAT,SKIP_L1DFL,IF_PSCHANGE,XSAVEOPT,MELTDOWN
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 4MB 64b/line 16-way L2 cache, 16MB 64b/line 16-way L3 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 1000MHz
ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 11, 24 pins
acpihpet0 at acpi0: 100000000 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
"ACPI0006" at acpi0 not configured
acpipci0 at acpi0 PCI0
"PNP0A06" at acpi0 not configured
"PNP0A06" at acpi0 not configured
"PNP0A06" at acpi0 not configured
"QEMU0002" at acpi0 not configured
com0 at acpi0 COM1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo
com0: console
acpicmos0 at acpi0
"ACPI0010" at acpi0 not configured
"QEMUVGID" at acpi0 not configured
acpicpu0 at acpi0: C1(@1 halt!)
cpu0: using VERW MDS workaround
pvbus0 at mainbus0: KVM
pvclock0 at pvbus0
pci0 at mainbus0 bus 0
0:2:0: rom address conflict 0xffff0000/0x10000
0:5:0: mem address conflict 0x381800002000/0x100
0:5:0: bridge mem address conflict 0x380000000000/0x800000000
0:16:0: rom address conflict 0xfff80000/0x80000
0:17:0: rom address conflict 0xfff80000/0x80000
0:18:0: rom address conflict 0xfffc0000/0x40000
0:30:0: mem address conflict 0x381800001000/0x100
0:30:0: bridge mem address conflict 0x380800000000/0x800000000
0:31:0: mem address conflict 0x381800000000/0x100
0:31:0: bridge mem address conflict 0x381000000000/0x800000000
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 ignored (disabled)
pciide0: channel 1 ignored (disabled)
uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: apic 0 int 11
piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: apic 0 int 9
iic0 at piixpm0
"Bochs VGA" rev 0x02 at pci0 dev 2 function 0 not configured
ppb0 at pci0 dev 5 function 0 "Red Hat Qemu PCI-PCI" rev 0x00
pci1 at ppb0 bus 1
1:1:0: mem address conflict 0x380000000000/0x4000
virtio0 at pci1 dev 1 function 0 "Qumranet Virtio SCSI" rev 0x00
vioscsi0 at virtio0: qsize 256
scsibus1 at vioscsi0: 255 targets
sd0 at scsibus1 targ 0 lun 0: <QEMU, QEMU HARDDISK, 2.5+>
sd0: 3072MB, 512 bytes/sector, 6291456 sectors, thin
virtio0: msix per-VQ
em0 at pci0 dev 16 function 0 "Intel I350" rev 0x01: apic 0 int 11, address ec:f4:bb:4d:c7:80
em1 at pci0 dev 17 function 0 "Intel I350" rev 0x01: apic 0 int 10, address ec:f4:bb:4d:c7:81
em2 at pci0 dev 18 function 0 "Intel 82540EM" rev 0x03: apic 0 int 10, address BC:24:11:32:2C:4A
ppb1 at pci0 dev 30 function 0 "Red Hat Qemu PCI-PCI" rev 0x00
pci2 at ppb1 bus 2
ppb2 at pci0 dev 31 function 0 "Red Hat Qemu PCI-PCI" rev 0x00
pci3 at ppb2 bus 3
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0 mux 1
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
vmm0 at mainbus0: VMX/EPT
efifb0 at mainbus0: 2048x2048, 32bpp
wsdisplay0 at efifb0 mux 1
wskbd0: connecting to wsdisplay0
wsdisplay0: screen 0-5 added (std, vt100 emulation)
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (a12c365cf736ae35.a) swap on sd0b dump on sd0b
fd0 at fdc0 drive 1: density unknown
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!