Re: asynchronous I/O

2009-12-10 Thread Geoff
Long ago I worked in the kernel of a BSD which supported async (disk) I/O. The internals did use a kernel thread for queueing and reporting. There was one per process using AIO because it made life simpler: each page which was mentioned in AIO had to be pinned, and blaming that on the AIO

Re: asynchronous I/O

2009-12-04 Thread Luis Useche
On Fri, Dec 4, 2009 at 12:07 AM, Ted Unangst ted.unan...@gmail.com wrote: On Thu, Dec 3, 2009 at 11:47 PM, Dope Ice Apollyon the Third kou...@gmail.com wrote: On Thu, Dec 3, 2009 at 10:57 PM, Luis Useche use...@gmail.com wrote: Hi Guys, I have been looking for information on how to do

Re: asynchronous I/O

2009-12-04 Thread Dope Ice Apollyon the Third
On Fri, Dec 4, 2009 at 10:20 AM, Luis Useche use...@gmail.com wrote: On Fri, Dec 4, 2009 at 12:07 AM, Ted Unangst ted.unan...@gmail.com wrote: On Thu, Dec 3, 2009 at 11:47 PM, Dope Ice Apollyon the Third kou...@gmail.com wrote: On Thu, Dec 3, 2009 at 10:57 PM, Luis Useche use...@gmail.com

Re: asynchronous I/O

2009-12-04 Thread Ted Unangst
On Fri, Dec 4, 2009 at 10:20 AM, Luis Useche use...@gmail.com wrote: Exactly, I am more interested more in something close to aio_read aio_write. I was hoping there was some api I can use. Is there any reason why POSIX aio does not exist in OBSD? Nobody wrote it.

Re: asynchronous I/O

2009-12-04 Thread Todd T. Fries
Penned by Dope Ice Apollyon the Third on 20091204 10:43.03, we have: | On Fri, Dec 4, 2009 at 10:20 AM, Luis Useche use...@gmail.com wrote: | On Fri, Dec 4, 2009 at 12:07 AM, Ted Unangst ted.unan...@gmail.com wrote: | On Thu, Dec 3, 2009 at 11:47 PM, Dope Ice Apollyon the Third |

Re: asynchronous I/O

2009-12-04 Thread Bob Beck
2009/12/4 Ted Unangst ted.unan...@gmail.com: On Fri, Dec 4, 2009 at 10:20 AM, Luis Useche use...@gmail.com wrote: Exactly, I am more interested more in something close to aio_read aio_write. I was hoping there was some api I can use. Is there any reason why POSIX aio does not exist in OBSD?

Re: asynchronous I/O

2009-12-04 Thread Ted Unangst
On Fri, Dec 4, 2009 at 1:34 PM, Todd T. Fries t...@fries.net wrote: Unfortunately qemu has aio support. Does it really need it? I cooked up a basic userland implementation using pthreads last night.

Re: asynchronous I/O

2009-12-04 Thread Todd T. Fries
Penned by Ted Unangst on 20091204 16:30.57, we have: | On Fri, Dec 4, 2009 at 1:34 PM, Todd T. Fries t...@fries.net wrote: | Unfortunately qemu has aio support. | | Does it really need it? I cooked up a basic userland implementation | using pthreads last night. They provide compatibility

Re: asynchronous I/O

2009-12-04 Thread Ted Unangst
On Fri, Dec 4, 2009 at 4:45 PM, Todd T. Fries t...@fries.net wrote: Does aio really require threading? In some sense, yes, in others, no. aio is designed so you don't need (userland) threads. Normally you'd write your server to use non-blocking io. But that doesn't work with files on disk.

Re: asynchronous I/O

2009-12-04 Thread Luis Useche
Iguess the short answers is that it is not implemented and probably it won't. There are certain applications that would certainly benefit from aio. The one I can think of (it is the one I use the most) is I/O trace replay. But I am sure that there are plenty of applications that can benefit from

Re: asynchronous I/O

2009-12-03 Thread Dope Ice Apollyon the Third
On Thu, Dec 3, 2009 at 10:57 PM, Luis Useche use...@gmail.com wrote: Hi Guys, I have been looking for information on how to do asynchronous I/Os in OBSD with no luck. The only thing I have found so far is the O_ASYNC flag in the fcntl syscall. I couldn't find any manual that talks about

Re: asynchronous I/O

2009-12-03 Thread Ted Unangst
On Thu, Dec 3, 2009 at 11:47 PM, Dope Ice Apollyon the Third kou...@gmail.com wrote: On Thu, Dec 3, 2009 at 10:57 PM, Luis Useche use...@gmail.com wrote: Hi Guys, I have been looking for information on how to do asynchronous I/Os in OBSD with no luck. The only thing I have found so far is the