is it possible to use a disk with multiple iothreads ?
A message that is not in the archive (sent off-list or not yet received): 391d6bb1-e0ad-49ea-afdc-fff462081f24@mailpro
Hi,
I was reading this interesting presentation,
http://vmsplice.net/~stefan/stefanha-kvm-forum-2014.pdf
and I have a specific question.
I'm currently evaluate ceph/rbd storage performance through qemu,
and the current bottleneck seem to be the cpu usage of the iothread. (rbd procotol cpu usage is really huge).
Currently It's around 10000iops on 1core of recent xeons.
So, I had tried with virtio-scsi multiqueue, but it doesn't help. (Not sure, but I think that all queues are mapped on 1 iothread ?)
I had tried with with virtio-blk and iothread/dataplane, it's help a little , but not too much too.
So, my question is : Is it possible to use multiple iothreads with 1 disk ?
(something like 1 queue - 1 iothread?)
Regards,
Alexandre
Quoted 16 lines · Alexandre DERUMIER
I was reading this interesting presentation,
http://vmsplice.net/~stefan/stefanha-kvm-forum-2014.pdf
and I have a specific question.
I'm currently evaluate ceph/rbd storage performance through qemu,
and the current bottleneck seem to be the cpu usage of the iothread. (rbd procotol cpu usage is really huge).
Currently It's around 10000iops on 1core of recent xeons.
Quoted 7 lines
So, I had tried with virtio-scsi multiqueue, but it doesn't help. (Not sure, but I think that all queues are mapped on 1 iothread ?)
I had tried with with virtio-blk and iothread/dataplane, it's help a little , but not too much too.
So, my question is : Is it possible to use multiple iothreads with 1 disk ?
(something like 1 queue - 1 iothread?)
virtio-blk and virtio-scsi emulation only runs in 1 thread at a time. It is currently not possible to achieve true multiqueue from guest, through QEMU, and down to the host.
This is what the final slides in my presentation were about.
Regarding Ceph, do you know why it burns a lot of CPU?
CCed Josh in case he has ideas for reducing Ceph library CPU utilization.
Stefan
Quoted 5 lines
Quoted 5 lines
virtio-blk and virtio-scsi emulation only runs in 1 thread at a time. It is currently not possible to achieve true multiqueue from guest, through QEMU, and down to the host.
This is what the final slides in my presentation were about.
Ok Thanks !
Quoted 1 line
Quoted 1 line
Regarding Ceph, do you know why it burns a lot of CPU?
I'm currently doing some perfs to find why is so huge.
One thing is that qemu+ qemu rbd block driver + librbd seem to use 2-3x more cpu, than passing krbd /dev/rbd0 from host to qemu. Don't known yet if the problem is librbd or qemu rbd block driver.
----- Mail original -----
De: "Stefan Hajnoczi" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: "qemu-devel" <[email protected]>, "josh durgin" <[email protected]> Envoyé: Vendredi 24 Octobre 2014 11:04:06
Objet: Re: is it possible to use a disk with multiple iothreads ?
Quoted 16 lines · Alexandre DERUMIER
I was reading this interesting presentation,
http://vmsplice.net/~stefan/stefanha-kvm-forum-2014.pdf
and I have a specific question.
I'm currently evaluate ceph/rbd storage performance through qemu,
and the current bottleneck seem to be the cpu usage of the iothread. (rbd procotol cpu usage is really huge).
Currently It's around 10000iops on 1core of recent xeons.
Quoted 7 lines
So, I had tried with virtio-scsi multiqueue, but it doesn't help. (Not sure, but I think that all queues are mapped on 1 iothread ?)
I had tried with with virtio-blk and iothread/dataplane, it's help a little , but not too much too.
So, my question is : Is it possible to use multiple iothreads with 1 disk ?
(something like 1 queue - 1 iothread?)
virtio-blk and virtio-scsi emulation only runs in 1 thread at a time. It is currently not possible to achieve true multiqueue from guest, through QEMU, and down to the host.
This is what the final slides in my presentation were about.
Regarding Ceph, do you know why it burns a lot of CPU?
CCed Josh in case he has ideas for reducing Ceph library CPU utilization.
Stefan
Quoted 6 lines · Alexandre DERUMIER
Quoted 1 line
Quoted 1 line
Regarding Ceph, do you know why it burns a lot of CPU?
I'm currently doing some perfs to find why is so huge.
One thing is that qemu+ qemu rbd block driver + librbd seem to use 2-3x more cpu, than passing krbd
/dev/rbd0from host to qemu. Don't known yet if the problem is librbd or qemu rbd block driver.
That's very interesting! Please keep Josh and me in CC when you want to discuss the results.
Stefan
Quoted 2 lines
Quoted 2 lines
That's very interesting! Please keep Josh and me in CC when you want to discuss the results.
Here the aggregate results (perf report details attached in this mail)
+ 33,02% 3974368751 kvm [kernel.kallsyms] + 23,66% 2847206635 kvm libc-2.13.so + 18,79% 2262052133 kvm librados.so.2.0.0 + 11,04% 1328581527 kvm librbd.so.1.0.0 + 5,87% 706713737 kvm libpthread-2.13.so + 3,75% 451690142 kvm kvm + 2,74% 329457334 kvm libstdc++.so.6.0.17 + 0,51% 61519664 kvm [vdso] + 0,42% 50000089 kvm libglib-2.0.so.0.3200.4 + 0,15% 18119658 kvm libm-2.13.so + 0,05% 5705776 kvm librt-2.13.so + 0,00% 356625 kvm libz.so.1.2.7
Quoted 1 line
Quoted 1 line
23,66% 2847206635 kvm libc-2.13.so
This one is mostly malloc,free,...
I see almost same results using fio with rbdengine on the host (outside the kvm process). So I think they are all mostly related to librbd.
----- Mail original -----
De: "Stefan Hajnoczi" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: "qemu-devel" <[email protected]>, "josh durgin" <[email protected]> Envoyé: Lundi 27 Octobre 2014 14:19:58
Objet: Re: is it possible to use a disk with multiple iothreads ?
Quoted 6 lines · Alexandre DERUMIER
Quoted 1 line
Quoted 1 line
Regarding Ceph, do you know why it burns a lot of CPU?
I'm currently doing some perfs to find why is so huge.
One thing is that qemu+ qemu rbd block driver + librbd seem to use 2-3x more cpu, than passing krbd
/dev/rbd0from host to qemu. Don't known yet if the problem is librbd or qemu rbd block driver.
That's very interesting! Please keep Josh and me in CC when you want to discuss the results.
Stefan
Quoted 16 lines · Alexandre DERUMIER
Quoted 2 lines
Quoted 2 lines
That's very interesting! Please keep Josh and me in CC when you want to
Quoted 1 line
Quoted 1 line
discuss the results.
Here the aggregate results (perf report details attached in this mail)
(quoted diff) +8
-0+ 33,02% 3974368751 kvm [kernel.kallsyms] + 23,66% 2847206635 kvm libc-2.13.so + 18,79% 2262052133 kvm librados.so.2.0.0 + 11,04% 1328581527 kvm librbd.so.1.0.0 + 5,87% 706713737 kvm libpthread-2.13.so + 3,75% 451690142 kvm kvm + 2,74% 329457334 kvm libstdc++.so.6.0.17 + 0,51% 61519664 kvm [vdso] + 0,42% 50000089 kvm libglib-2.0.so.0.3200.4 + 0,15% 18119658 kvm libm-2.13.so + 0,05% 5705776 kvm librt-2.13.so + 0,00% 356625 kvm libz.so.1.2.7
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
23,66% 2847206635 kvm libc-2.13.so
This one is mostly malloc,free,...
I see almost same results using fio with rbdengine on the host (outside the kvm process). So I think they are all mostly related to librbd.
You are missing debug information unfortunately, but the slowdown seems to be related to futexes.
Paolo
Quoted 1 line
Quoted 1 line
You are missing debug information unfortunately,
Ok thanks, I'll try to add qemu debug symbols.
(I have already libc6,librbd,librados debug symbols installed)
----- Mail original -----
De: "Paolo Bonzini" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>, "Stefan Hajnoczi" <[email protected]>
Cc: "josh durgin" <[email protected]>, "qemu-devel" <[email protected]> Envoyé: Lundi 27 Octobre 2014 15:47:19
Objet: Re: is it possible to use a disk with multiple iothreads ?
Quoted 4 lines · Alexandre DERUMIER
Quoted 2 lines
Quoted 2 lines
That's very interesting! Please keep Josh and me in CC when you want to
Quoted 1 line
Quoted 1 line
discuss the results.
Here the aggregate results (perf report details attached in this mail)
Quoted 8 lines
+ 33,02% 3974368751 kvm [kernel.kallsyms]
+ 23,66% 2847206635 kvm libc-2.13.so
+ 18,79% 2262052133 kvm librados.so.2.0.0
+ 11,04% 1328581527 kvm librbd.so.1.0.0
+ 5,87% 706713737 kvm libpthread-2.13.so
+ 3,75% 451690142 kvm kvm
+ 2,74% 329457334 kvm libstdc++.so.6.0.17
+ 0,51% 61519664 kvm [vdso] + 0,42% 50000089 kvm libglib-2.0.so.0.3200.4 + 0,15% 18119658 kvm libm-2.13.so + 0,05% 5705776 kvm librt-2.13.so + 0,00% 356625 kvm libz.so.1.
2.7
Quoted 10 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
23,66% 2847206635 kvm libc-2.13.so
This one is mostly malloc,free,...
I see almost same results using fio with rbdengine on the host (outside the kvm process). So I think they are all mostly related to librbd.
You are missing debug information unfortunately, but the slowdown seems to be related to futexes.
Paolo