block IO thread creation question
Hi,
Could someone point me at the code for creating threads to handle block IO? I'm seeing up to 30 threads per virtual disk, which seems high.
In case it's related, the block devices are iSCSI with the host acting as the initiator and exposing block devices to qemu.
I'm particularly interested in qemu 2.2, just in case things have changed significantly since then.
Thanks,
Chris
Quoted 5 lines · Chris Friesen
Hi,
Could someone point me at the code for creating threads to handle block IO? I'm seeing up to 30 threads per virtual disk, which seems high.
It is thread-pool.c, assuming you are using "aio=threads" for drive, which is the default. With the alternative, "aio=native", spawning worker threads will be much more uncommon.
Fam
Quoted 10 lines
In case it's related, the block devices are iSCSI with the host acting as the initiator and exposing block devices to qemu.
I'm particularly interested in qemu 2.2, just in case things have changed significantly since then.
Thanks,
Chris