[7.3.0] QEMU IOThreads pinned cores show 100% iowait at idle
Expected Behavior
Idle iothreads should not be accounted as IO wait.
That was not happening before Unraid 7.3.0 (verified with version 7.2.4).
Actual Behavior
A VM is configured to use iothreads, and the corresponding pinned CPU are reported as 100% used in the Unraid dashboard. Looking better at the issue using a simple tool like top, it is clear that the 100% CPU usage comes from IO wait.
Steps to Reproduce
Configure a VM using some iothreads;
Pin the iothreads to some specific core (that makes the detection easier).
Additional Context
The same problem is reported on the following proxmox mailing list: https://lore.proxmox.com/all/[email protected]/T/
Here is the relevant configuration snippet of my VM (Win 11):
<iothreads>2</iothreads> <cputune> <vcpupin vcpu='0' cpuset='1'/> <vcpupin vcpu='1' cpuset='17'/> <vcpupin vcpu='2' cpuset='2'/> <vcpupin vcpu='3' cpuset='18'/> <vcpupin vcpu='4' cpuset='3'/> <vcpupin vcpu='5' cpuset='19'/> <vcpupin vcpu='6' cpuset='4'/> <vcpupin vcpu='7' cpuset='20'/> <vcpupin vcpu='8' cpuset='5'/> <vcpupin vcpu='9' cpuset='21'/> <vcpupin vcpu='10' cpuset='6'/> <vcpupin vcpu='11' cpuset='22'/> <vcpupin vcpu='12' cpuset='7'/> <vcpupin vcpu='13' cpuset='23'/> <emulatorpin cpuset='0,16'/> <iothreadpin iothread='1' cpuset='0'/> <iothreadpin iothread='2' cpuset='16'/> </cputune> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='none' io='native' discard='unmap' iothread='1'/> <source file='/mnt/user/domains/vm-win-01/vdisk1.img' index='2'/> <backingStore/> <target dev='hdc' bus='virtio'/> <serial>vdisk1</serial> <boot order='1'/> <alias name='virtio-disk2'/> <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/> </disk> <disk type='block' device='disk'> <driver name='qemu' type='raw' cache='none' io='native' discard='unmap' iothread='2'/> <source dev='/dev/disk/by-id/ata-KINGSTON_SA400S37960G_50026B7785826C2D-part2' index='1'/> <backingStore/> <target dev='hdd' bus='virtio'/> <serial>vdisk2</serial> <boot order='2'/> <alias name='virtio-disk3'/> <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/> </disk>Workarounds
I do not know any workaround.
Possibly, there should not be any relevant performance impact.
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...