* Re: [Qemu-devel] Block I/O optimizations
2013-03-03 9:35 ` Abel Gordon
@ 2013-03-04 8:45 ` Stefan Hajnoczi
2013-03-04 11:10 ` Michael S. Tsirkin
2013-04-04 8:36 ` Abel Gordon
2 siblings, 0 replies; 9+ messages in thread
From: Stefan Hajnoczi @ 2013-03-04 8:45 UTC (permalink / raw)
To: Abel Gordon
Cc: Kevin Wolf, Anthony Liguori, Avishay Traeger, Nadav Har'El,
Michael S. Tsirkin, qemu-devel, Eran Raichstein, Muli Ben-Yehuda,
Paolo Bonzini, Loic Dachary, Asias He, Razya Ladelsky
On Sun, Mar 3, 2013 at 10:35 AM, Abel Gordon <ABELG@il.ibm.com> wrote:
>
>
> Stefan Hajnoczi <stefanha@gmail.com> wrote on 01/03/2013 12:54:54 PM:
>
>> On Thu, Feb 28, 2013 at 08:20:08PM +0200, Abel Gordon wrote:
>> > Stefan Hajnoczi <stefanha@gmail.com> wrote on 28/02/2013 04:43:04 PM:
>> > > I think extending and tuning the existing mechanisms is the way to
> go.
>> > > I don't see obvious advantages other than reducing context switches.
>> >
>> > Maybe it is worth checking...
>> > We did experiments using vhost-net and vhost-blk. We measured and
> compared
>> > the traditional model (kernel thread per VM/virtual device) to the
>> > shared-thread model with fine-grained I/O scheduling (single kernel
> thread
>> > used to serve multiple VMs). We noticed improvements up-to 2.5x
>> > in throughput and almost half the latency when running up-to 14 VMs.
>>
>> Can you post patches?
>
> We will publish the code soon but note the patches are for vhost
> kernel back-end and not for the qemu user-space back-end.
That's fine. The only difference the codebase makes is which mailing list:
* qemu-devel@nongnu.org - QEMU userspace
* kvm@vger.kernel.org - kvm kernel module
* virtualization@lists.linuxfoundation.org - broader scope Linux
kernel virtualization (vhost, virtio, hyperv drivers, etc)
Stefan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Block I/O optimizations
2013-03-03 9:35 ` Abel Gordon
2013-03-04 8:45 ` Stefan Hajnoczi
@ 2013-03-04 11:10 ` Michael S. Tsirkin
2013-04-04 8:36 ` Abel Gordon
2 siblings, 0 replies; 9+ messages in thread
From: Michael S. Tsirkin @ 2013-03-04 11:10 UTC (permalink / raw)
To: Abel Gordon
Cc: Kevin Wolf, Anthony Liguori, Avishay Traeger, Nadav Har'El,
qemu-devel, Stefan Hajnoczi, Eran Raichstein, Muli Ben-Yehuda,
Loic Dachary, Paolo Bonzini, Asias He, Razya Ladelsky
On Sun, Mar 03, 2013 at 11:35:27AM +0200, Abel Gordon wrote:
>
>
> Stefan Hajnoczi <stefanha@gmail.com> wrote on 01/03/2013 12:54:54 PM:
>
> > On Thu, Feb 28, 2013 at 08:20:08PM +0200, Abel Gordon wrote:
> > > Stefan Hajnoczi <stefanha@gmail.com> wrote on 28/02/2013 04:43:04 PM:
> > > > I think extending and tuning the existing mechanisms is the way to
> go.
> > > > I don't see obvious advantages other than reducing context switches.
> > >
> > > Maybe it is worth checking...
> > > We did experiments using vhost-net and vhost-blk. We measured and
> compared
> > > the traditional model (kernel thread per VM/virtual device) to the
> > > shared-thread model with fine-grained I/O scheduling (single kernel
> thread
> > > used to serve multiple VMs). We noticed improvements up-to 2.5x
> > > in throughput and almost half the latency when running up-to 14 VMs.
> >
> > Can you post patches?
>
> We will publish the code soon but note the patches are for vhost
> kernel back-end and not for the qemu user-space back-end.
Yes, this is one of the fields where the asynchronous interface
of vhost could be helpful, abstracting the threading model
away from the application.
The main challenge with sharing threads is handling things like cpu
limits and swap access. They normally send the current thread to sleep
and let another thread run, but if VMs share a thread, this becomes a
problem. Could be solvable by detecting such conditions and moving
other VMs to per-VM threads, but I haven't seen such patches yet.
> > Also, I wonder if you have time to do a presentation/discussion session
> > so we can get the ball rolling and more people exposed to your approach.
> > There is a weekly QEMU Community Call which we can use as the forum.
>
> Sure. I'll send you a separate email to schedule the
> presentation/discussion.
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Block I/O optimizations
2013-03-03 9:35 ` Abel Gordon
2013-03-04 8:45 ` Stefan Hajnoczi
2013-03-04 11:10 ` Michael S. Tsirkin
@ 2013-04-04 8:36 ` Abel Gordon
2013-04-04 13:08 ` Anthony Liguori
2013-04-04 13:41 ` Liu Yuan
2 siblings, 2 replies; 9+ messages in thread
From: Abel Gordon @ 2013-04-04 8:36 UTC (permalink / raw)
To: Stefan Hajnoczi
Cc: Kevin Wolf, Eran Raichstein, Avishay Traeger, Nadav Har'El,
Michael S. Tsirkin, qemu-devel, Anthony Liguori, Muli Ben-Yehuda,
Paolo Bonzini, Loic Dachary, Asias He, Razya Ladelsky
qemu-devel-bounces+abelg=il.ibm.com@nongnu.org wrote on 03/03/2013 11:35:27
AM:
> > Also, I wonder if you have time to do a presentation/discussion session
> > so we can get the ball rolling and more people exposed to your
approach.
> > There is a weekly QEMU Community Call which we can use as the forum.
>
> Sure. I'll send you a separate email to schedule the
> presentation/discussion.
We just posted a technical report that describes the design and evaluation
of the work we did to improve virtual net/block I/O scalability and
performance based on vhost and hosting multiple KVM guests.
You can find the report here: http://goo.gl/RKppy
(full link:
http://domino.research.ibm.com/library/cyberdig.nsf/1e4115aea78b6e7c85256b360066f0d4/479e3578ed05bfac85257b4200427735!OpenDocument&Highlight=0,h-0319
)
I can present this work in the next QEMU community call.
Regards,
Abel.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Block I/O optimizations
2013-04-04 8:36 ` Abel Gordon
@ 2013-04-04 13:08 ` Anthony Liguori
2013-04-04 13:41 ` Liu Yuan
1 sibling, 0 replies; 9+ messages in thread
From: Anthony Liguori @ 2013-04-04 13:08 UTC (permalink / raw)
To: Abel Gordon, Stefan Hajnoczi
Cc: Kevin Wolf, Eran Raichstein, Avishay Traeger, Nadav Har'El,
Michael S. Tsirkin, qemu-devel, Muli Ben-Yehuda, Loic Dachary,
Paolo Bonzini, Asias He, Razya Ladelsky
Abel Gordon <ABELG@il.ibm.com> writes:
> qemu-devel-bounces+abelg=il.ibm.com@nongnu.org wrote on 03/03/2013 11:35:27
> AM:
>
> We just posted a technical report that describes the design and evaluation
> of the work we did to improve virtual net/block I/O scalability and
> performance based on vhost and hosting multiple KVM guests.
> You can find the report here: http://goo.gl/RKppy
>
> (full link:
> http://domino.research.ibm.com/library/cyberdig.nsf/1e4115aea78b6e7c85256b360066f0d4/479e3578ed05bfac85257b4200427735!OpenDocument&Highlight=0,h-0319
> )
>
> I can present this work in the next QEMU community call.
That would be great! Thanks Abel.
Regards,
Anthony Liguori
>
> Regards,
> Abel.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Block I/O optimizations
2013-04-04 8:36 ` Abel Gordon
2013-04-04 13:08 ` Anthony Liguori
@ 2013-04-04 13:41 ` Liu Yuan
1 sibling, 0 replies; 9+ messages in thread
From: Liu Yuan @ 2013-04-04 13:41 UTC (permalink / raw)
To: Abel Gordon
Cc: Kevin Wolf, Eran Raichstein, Avishay Traeger, Nadav Har'El,
Michael S. Tsirkin, Stefan Hajnoczi, qemu-devel, Muli Ben-Yehuda,
Anthony Liguori, Loic Dachary, Paolo Bonzini, Asias He,
Razya Ladelsky
On 04/04/2013 04:36 PM, Abel Gordon wrote:
> We just posted a technical report that describes the design and evaluation
> of the work we did to improve virtual net/block I/O scalability and
> performance based on vhost and hosting multiple KVM guests.
> You can find the report here: http://goo.gl/RKppy
>
> (full link:
> http://domino.research.ibm.com/library/cyberdig.nsf/1e4115aea78b6e7c85256b360066f0d4/479e3578ed05bfac85257b4200427735!OpenDocument&Highlight=0,h-0319
> )
>
> I can present this work in the next QEMU community call.
Hi Abel,
Could you share the presentation to me? I am very interested in your
works and I once have had done some works on vhost_blk. (I can't attend
community call)
Thanks,
Yuan
^ permalink raw reply [flat|nested] 9+ messages in thread