qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] aio-posix: Fix return value of aio_poll()


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] aio-posix: Fix return value of aio_poll()
Date: Wed, 23 Jan 2013 12:10:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

Il 23/01/2013 09:58, Dietmar Maurer ha scritto:
>>>>> Are you using timers in any way?
>>>>
>>>> Yes, I call co_sleep_ns(rt_clock, delay) to limit rate to output
>>>> stream.
>>>
>>> Use block_job_sleep_ns instead, and only call it when no I/O is pending.
>>
>> Thanks, that works!
> 
> I currently use qemu_aio_set_fd_handler() to implement async output to
> the backup stream. While that works, performance is much better (during 
> backup)
> if I use a separate thread to write the data.
> 
> Is that known behavior, or should aio give about the same performance as 
> using a thread?

It depends, but this is what we saw for migration too.  You may also
have less contention on the big QEMU lock if you use a thread.

> Or would I get better performance if I use Linux native AIO support?

That also depends, but in general it should be faster.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]