qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC] Replace posix-aio with custom thread pool


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [RFC] Replace posix-aio with custom thread pool
Date: Thu, 11 Dec 2008 18:20:09 +0100
User-agent: Thunderbird 2.0.0.18 (X11/20081119)

Andrea Arcangeli wrote:
> On Thu, Dec 11, 2008 at 05:11:08PM +0100, Gerd Hoffmann wrote:
>> Yes.  But kernel aio requires O_DIRECT, so aio users are affected
>> nevertheless.
> 
> Are you sure? It surely wasn't the case...

Tons of docs say so, but might be they are wrong, I didn't check.

>> Kernel side looks easy, attached patch + syscall table windup in all
>> archs ...
> 
> So should we depend on this?

I suspect we will end up with multiple implementations anyway.

So one could be preadv+threads.  Probably quite portable if we manage to
get the syscalls into linux kernel and glibc.  All *BSDs have it
already, for solaris I've found a feature request on that.  Dunno for MacOS.

Additionally we could have OS-specific bits such as linux-aio.  Maybe
also posix-aio for the *BSD family in case their kernel support for that
is better than what glibc provides (i.e. can handle multiple requests in
parallel without the fdpool hack).

cheers,
  Gerd




reply via email to

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