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: Dietmar Maurer
Subject: Re: [Qemu-devel] [PATCH] aio-posix: Fix return value of aio_poll()
Date: Wed, 23 Jan 2013 08:58:10 +0000

> > > > 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?

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



reply via email to

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