Skip to contentSkip to conversation

block IO thread creation question

Qemu-devel Chris Friesen 2 participants 2 messages Mar 24, 2016 – Mar 25, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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