From owner-freebsd-hackers Sun Sep 19 10:20:30 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mailer.syr.edu (mailer.syr.edu [128.230.18.29]) by hub.freebsd.org (Postfix) with ESMTP id 17D8C14CD4 for ; Sun, 19 Sep 1999 10:20:15 -0700 (PDT) (envelope-from cmsedore@mailbox.syr.edu) Received: from rodan.syr.edu by mailer.syr.edu (LSMTP for Windows NT v1.1a) with SMTP id <0.B4CCE3E0@mailer.syr.edu>; 19 Sep 1999 13:20:14 -0400 Received: from localhost (cmsedore@localhost) by rodan.syr.edu (8.8.7/8.8.7) with ESMTP id NAA13108; Sun, 19 Sep 1999 13:20:07 -0400 (EDT) X-Authentication-Warning: rodan.syr.edu: cmsedore owned process doing -bs Date: Sun, 19 Sep 1999 13:20:07 -0400 (EDT) From: Christopher Sedore X-Sender: cmsedore@rodan.syr.edu To: "John W. DeBoskey" Cc: Wes Peters , freebsd-hackers@FreeBSD.ORG Subject: Re: kern/13075 (was: Re: aio_*) In-Reply-To: <199909190229.WAA32777@bb01f39.unx.sas.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Part of my patches is a new system call, aio_waitcomplete() which waits for an aio job to complete, and returns a pointer to the userland aiocb associated with the job. (This is a non-standard extension of my own creation). The patches are available from http://tfeed.maxwell.syr.edu, link is on the bottom of the page. -Chris On Sat, 18 Sep 1999, John W. DeBoskey wrote: > Hand up... > > I have two machines running heavily hit aio based file server > mechanisms. If the patches will apply to a -current system about > 2 weeks old I'll give it a try... (atleast without too much trouble). > > And now for a wish: > > /*----------------------------------------------------------+ > | ST_AIO | > | | > | A task in the ST_AIO state means that one of our | > | aio_writes has finished. we will loop thru all | > | outstanding aio_writes to see which one completed. | > | | > *----------------------------------------------------------*/ > case ST_AIO: > > /*-----------------------------------------------------+ > | loop to get completed write process. | > *-----------------------------------------------------*/ > for (j=0; j if (aio[j].task && > aio_error(&aio[j].iocb) != EINPROGRESS) { > > ie: you have to loop to determine which aio operation completed. > Looking thru the kernel, I don't see any easy way to fix this. > > But then, I may be missing something (which I don't understand) > about how to setup the sigevent structure: > > Aio generates the signal for me (setup via the sigevent struct), > but the sigev_value is not passed depending on how the kernel > processes the signal. > > > Thanks, > John > > > Christopher Sedore wrote: > > > > > > On Thu, 16 Sep 1999, Wes Peters wrote: > > > > > > > Christopher Sedore wrote: > > > > > > > > > > On Wed, 15 Sep 1999, Ruslan Ermilov wrote: > > > > > > > > > > > > Do you by any change have an idea how to fix PR kern/13075 > > > > > > (signal is not posted for async I/O on raw devices) > > > > > > > > > > Yes. There is no code to post the signal unless the job is of the lio > > > > > variety. Writing a fix took about 15 minutes (including reboot). > > > > > Extensive testing not included, though the test program provided with the > > > > > PR now functions. > > > > > > > > Great, now do you want to tackle aio_cancel? ;^) > > > > > > I've been holding off to see whether I can get the other aio patches for > > > improved socket io committed. I don't want to do two versions of > > > aio_cancel (the changes for sockets alter the way things are queued and > > > hence the way that cancels have to be done). > > > > Good to hear. OK, show of hands: who's using aio_* and has the time to > > test patches for Christopher? > > > > - -- > > "Where am I, and what am I doing in this handbasket?" > > > > Wes Peters Softweyr LLC > > http://softweyr.com/ wes@softweyr.com > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > > ------------------------------ > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message