From owner-freebsd-current Fri Nov 15 11:52:45 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75A8F37B40D for ; Fri, 15 Nov 2002 11:52:43 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19D0043E77 for ; Fri, 15 Nov 2002 11:52:43 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id DDCDFAE163; Fri, 15 Nov 2002 11:52:42 -0800 (PST) Date: Fri, 15 Nov 2002 11:52:42 -0800 From: Alfred Perlstein To: Craig Rodrigues Cc: current@freebsd.org Subject: Re: POSIX AIO on FreeBSD question Message-ID: <20021115195242.GH50692@elvis.mu.org> References: <20021115135804.A7869@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021115135804.A7869@attbi.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Craig Rodrigues [021115 10:44] wrote: > Hi, > > Do you have any insight into the question that I recently posted > to -current and -standards? Sorry, I'm no longer subscribed to those lists. :( I do appreciate you contacting me about this, see below... > > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=822605+0+current/freebsd-current > > Thanks. :) Try this patch, if you have time please either add whatever else _SC_FOOs to vfs_aio.c and return the diff to me, or at least suggest what other ones need to be set where I set them. This delta is untested, but should likely fix your problem. cd /usr/src/sys/kern ; patch < /path/to/this/attachment ; recompile and install kernel or just load the new module. Please let me know asap. Index: vfs_aio.c =================================================================== RCS file: /home/ncvs/src/sys/kern/vfs_aio.c,v retrieving revision 1.143 diff -u -r1.143 vfs_aio.c --- vfs_aio.c 7 Nov 2002 20:46:37 -0000 1.143 +++ vfs_aio.c 15 Nov 2002 19:48:50 -0000 @@ -47,6 +47,7 @@ #include #include +#include #include #include #include @@ -350,6 +351,7 @@ aiod_lifetime = AIOD_LIFETIME_DEFAULT; jobrefid = 1; async_io_version = _POSIX_VERSION; + p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, AIO_LISTIO_MAX); } /* @@ -372,6 +374,7 @@ rm_at_exit(aio_proc_rundown); rm_at_exec(aio_proc_rundown); kqueue_del_filteropts(EVFILT_AIO); + p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, 0); return (0); } thanks, -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message