aio in GENERIC?

Julian Elischer julian at freebsd.org
Mon Jul 23 07:51:56 UTC 2012


On 7/22/12 9:53 AM, Robert Watson wrote:
>
> On Wed, 18 Jul 2012, Matthew Jacob wrote:
>
>> What practically does aio offer that is not achieved via pthreads 
>> other than slightly simpler code?
>
> Although the VFS side of the AIO code blocks kernel threads during 
> in-progress I/O, the socket side is able to do fully asynchronous 
> I/O down the stack without committing a kernel thread to it.  As 
> such, it probably is actually significantly more scalable, allowing 
> larger numbers of simultaneous outstanding I/Os in the network 
> layer, and more efficiently than simply using threads.

this is the reason that the cisco web security appliance uses aio and 
kevent but is generally not threaded...

>
> Robert
> _______________________________________________
> freebsd-arch at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arch
> To unsubscribe, send any mail to "freebsd-arch-unsubscribe at freebsd.org"
>




More information about the freebsd-arch mailing list