Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-16 Thread Fam Zheng
On Mon, 11/14 16:29, Paolo Bonzini wrote: > > > On 14/11/2016 16:26, Stefan Hajnoczi wrote: > > On Fri, Nov 11, 2016 at 01:59:25PM -0600, Karl Rister wrote: > >> QEMU_AIO_POLL_MAX_NS IOPs > >>unset31,383 > >>146,860 > >>2

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-15 Thread Karl Rister
On 11/15/2016 04:32 AM, Stefan Hajnoczi wrote: > On Mon, Nov 14, 2016 at 09:52:00PM +0100, Paolo Bonzini wrote: >> On 14/11/2016 21:12, Karl Rister wrote: >>> 25646,929 >>> 51235,627 >>>1,02446,477 >>>2,00035,247 >>>

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-15 Thread Stefan Hajnoczi
On Mon, Nov 14, 2016 at 06:15:46PM +0100, Paolo Bonzini wrote: > > > On 14/11/2016 18:06, Stefan Hajnoczi wrote: > >>> > > Very interesting that QEMU_AIO_POLL_MAX_NS=1 performs so well without > >>> > > much CPU overhead. > >> > > >> > That basically means "avoid a syscall if you already know

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-15 Thread Stefan Hajnoczi
On Mon, Nov 14, 2016 at 09:52:00PM +0100, Paolo Bonzini wrote: > On 14/11/2016 21:12, Karl Rister wrote: > > 25646,929 > > 51235,627 > >1,02446,477 > >2,00035,247 > >2,04846,322 > >

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Paolo Bonzini
On 14/11/2016 21:12, Karl Rister wrote: > 25646,929 > 51235,627 >1,02446,477 >2,00035,247 >2,04846,322 >4,00046,540 >4,09646,368 >8,000

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Karl Rister
On 11/14/2016 09:26 AM, Stefan Hajnoczi wrote: > On Fri, Nov 11, 2016 at 01:59:25PM -0600, Karl Rister wrote: >> On 11/09/2016 11:13 AM, Stefan Hajnoczi wrote: >>> Recent performance investigation work done by Karl Rister shows that the >>> guest->host notification takes around 20 us. This is

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Paolo Bonzini
On 14/11/2016 18:06, Stefan Hajnoczi wrote: >>> > > Very interesting that QEMU_AIO_POLL_MAX_NS=1 performs so well without >>> > > much CPU overhead. >> > >> > That basically means "avoid a syscall if you already know there's >> > something to do", so in retrospect it's not that surprising.

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Stefan Hajnoczi
On Mon, Nov 14, 2016 at 04:29:49PM +0100, Paolo Bonzini wrote: > On 14/11/2016 16:26, Stefan Hajnoczi wrote: > > On Fri, Nov 11, 2016 at 01:59:25PM -0600, Karl Rister wrote: > >> QEMU_AIO_POLL_MAX_NS IOPs > >>unset31,383 > >>146,860 > >>

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Fam Zheng
On Mon, 11/14 17:06, Stefan Hajnoczi wrote: > On Mon, Nov 14, 2016 at 04:29:49PM +0100, Paolo Bonzini wrote: > > On 14/11/2016 16:26, Stefan Hajnoczi wrote: > > > On Fri, Nov 11, 2016 at 01:59:25PM -0600, Karl Rister wrote: > > >> QEMU_AIO_POLL_MAX_NS IOPs > > >>unset

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Stefan Hajnoczi
On Mon, Nov 14, 2016 at 08:52:21AM -0600, Karl Rister wrote: > On 11/14/2016 07:53 AM, Fam Zheng wrote: > > On Fri, 11/11 13:59, Karl Rister wrote: > >> > >> Stefan > >> > >> I ran some quick tests with your patches and got some pretty good gains, > >> but also some seemingly odd behavior. > >> >

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Stefan Hajnoczi
On Mon, Nov 14, 2016 at 03:51:18PM +0100, Christian Borntraeger wrote: > On 11/09/2016 06:13 PM, Stefan Hajnoczi wrote: > > Recent performance investigation work done by Karl Rister shows that the > > guest->host notification takes around 20 us. This is more than the > > "overhead" > > of QEMU

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Stefan Hajnoczi
On Mon, Nov 14, 2016 at 03:59:32PM +0100, Christian Borntraeger wrote: > On 11/09/2016 06:13 PM, Stefan Hajnoczi wrote: > > Recent performance investigation work done by Karl Rister shows that the > > guest->host notification takes around 20 us. This is more than the > > "overhead" > > of QEMU

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Karl Rister
On 11/14/2016 09:26 AM, Stefan Hajnoczi wrote: > On Fri, Nov 11, 2016 at 01:59:25PM -0600, Karl Rister wrote: >> On 11/09/2016 11:13 AM, Stefan Hajnoczi wrote: >>> Recent performance investigation work done by Karl Rister shows that the >>> guest->host notification takes around 20 us. This is

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Paolo Bonzini
On 14/11/2016 16:26, Stefan Hajnoczi wrote: > On Fri, Nov 11, 2016 at 01:59:25PM -0600, Karl Rister wrote: >> QEMU_AIO_POLL_MAX_NS IOPs >>unset31,383 >>146,860 >>246,440 >>435,246 >>

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Stefan Hajnoczi
On Fri, Nov 11, 2016 at 01:59:25PM -0600, Karl Rister wrote: > On 11/09/2016 11:13 AM, Stefan Hajnoczi wrote: > > Recent performance investigation work done by Karl Rister shows that the > > guest->host notification takes around 20 us. This is more than the > > "overhead" > > of QEMU itself

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Christian Borntraeger
On 11/09/2016 06:13 PM, Stefan Hajnoczi wrote: > Recent performance investigation work done by Karl Rister shows that the > guest->host notification takes around 20 us. This is more than the "overhead" > of QEMU itself (e.g. block layer). > > One way to avoid the costly exit is to use polling

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Christian Borntraeger
On 11/09/2016 06:13 PM, Stefan Hajnoczi wrote: > Recent performance investigation work done by Karl Rister shows that the > guest->host notification takes around 20 us. This is more than the "overhead" > of QEMU itself (e.g. block layer). > > One way to avoid the costly exit is to use polling

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Karl Rister
On 11/14/2016 07:53 AM, Fam Zheng wrote: > On Fri, 11/11 13:59, Karl Rister wrote: >> >> Stefan >> >> I ran some quick tests with your patches and got some pretty good gains, >> but also some seemingly odd behavior. >> >> These results are for a 5 minute test doing sequential 4KB requests from >>

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-14 Thread Fam Zheng
On Fri, 11/11 13:59, Karl Rister wrote: > > Stefan > > I ran some quick tests with your patches and got some pretty good gains, > but also some seemingly odd behavior. > > These results are for a 5 minute test doing sequential 4KB requests from > fio using O_DIRECT, libaio, and IO depth of 1.

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-12 Thread no-reply
Hi, Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Type: series Subject: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode Message-id: 1478711602-12620-1-git

Re: [Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-11 Thread Karl Rister
On 11/09/2016 11:13 AM, Stefan Hajnoczi wrote: > Recent performance investigation work done by Karl Rister shows that the > guest->host notification takes around 20 us. This is more than the "overhead" > of QEMU itself (e.g. block layer). > > One way to avoid the costly exit is to use polling

[Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-09 Thread Stefan Hajnoczi
Recent performance investigation work done by Karl Rister shows that the guest->host notification takes around 20 us. This is more than the "overhead" of QEMU itself (e.g. block layer). One way to avoid the costly exit is to use polling instead of notification. The main drawback of polling is