🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38249

Re: Submitting to Freenix

#38249
From: Chris Sedore
Date: Fri, 25 Jun 1999 00:00
39 lines
2244 bytes
Curt Welch wrote in message <19990625154537.574$FY@newsreader.com>...
>"Chris Sedore" <cmsedore@maxwell.syr.edu> wrote:
>> Threads are not the only possibility:  async IO can provide an
>> alternative design methodology.
>
>True.  I've never heard of async (disk) I/O however.


The aio routines are descriptor type neutral.  The implementation details
matter here, but in FreeBSD's case, the aio calls do work as advertised for
both disk and socket io.  FreeBSD creates aio daemons which attach to your
process to execute each aio operation.

>> I've been playing with a transit engine running on FreeBSD that is single
>> threaded and uses aio routines ...
>
>Looking on a FreeBSD box I couldn't find any async I/O routines.  Could
>you give me some pointers (man pages? lib names? etc.)?  Do you know what
>version of FreeBSD they showed up on?


They are in 3.x, but they have a number of limitations.  For 4.x they are
improved, but there are still limits on how useful they are for sockets.
"man aio_read" should work on 3.x or 4.x.  Someone has written pages on all
the aio functions for 4.x, but last I looked they weren't in the 4.x
snapshots.  I've done some work enhancing the aio_read/write for sockets
which is free for the asking.  I hope to get it committed to the source
tree.

You can also look here:

http://www.opengroup.org/public/pubs/online/7908799/xsh/aio_read.html

-Chris



Technical Details
Message-ID: <9303410322003907078-1@dp-news.maxwell.syr.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <7g24e7$ckh$1@info.cs.uofs.edu> <yl3dzg28yw.fsf@windlord.stanford.edu> <37731731$0$374@news.execpc.com> <ylg13gyawh.fsf@windlord.stanford.edu> <3773780d$0$374@news.execpc.com> <9303290311991906734-1@dp-news.maxwell.syr.edu> <19990625154537.574$FY@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <9303410322003907078-1@dp-news.maxwell.syr.edu>
Subject: Re: Submitting to Freenix
Date: Fri, 25 Jun 1999 00:00:00 +0000
From: "Chris Sedore" <cmsedore@maxwell.syr.edu>
References: <7g24e7$ckh$1@info.cs.uofs.edu> <yl3dzg28yw.fsf@windlord.stanford.edu> <37731731$0$374@news.execpc.com> <ylg13gyawh.fsf@windlord.stanford.edu> <3773780d$0$374@news.execpc.com> <9303290311991906734-1@dp-news.maxwell.syr.edu> <19990625154537.574$FY@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 493890155
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Newsgroups: news.software.nntp