Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2002 11:52:42 -0800
From:      Alfred Perlstein <bright@mu.org>
To:        Craig Rodrigues <rodrigc@attbi.com>
Cc:        current@freebsd.org
Subject:   Re: POSIX AIO on FreeBSD question
Message-ID:  <20021115195242.GH50692@elvis.mu.org>
In-Reply-To: <20021115135804.A7869@attbi.com>
References:  <20021115135804.A7869@attbi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Craig Rodrigues <rodrigc@attbi.com> [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 <sys/conf.h>
 #include <sys/event.h>
 
+#include <posix4/posix4.h>
 #include <vm/vm.h>
 #include <vm/vm_extern.h>
 #include <vm/pmap.h>
@@ -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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021115195242.GH50692>