Date: Sat, 16 Nov 2002 01:58:22 -0800 From: Alfred Perlstein <alfred@FreeBSD.org> To: Garrett Wollman <wollman@lcs.mit.edu> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, alc@freebsd.org Subject: Re: cvs commit: src/lib/libc/gen sysconf.c Message-ID: <20021116095822.GT50692@elvis.mu.org> In-Reply-To: <200211160706.gAG76Z4S089556@khavrinen.lcs.mit.edu> References: <200211160635.gAG6ZKUX094649@repoman.freebsd.org> <200211160706.gAG76Z4S089556@khavrinen.lcs.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
* Garrett Wollman <wollman@lcs.mit.edu> [021115 23:06] wrote: > <<On Fri, 15 Nov 2002 22:35:20 -0800 (PST), Alfred Perlstein <alfred@FreeBSD.org> said: > > > _SC_AIO_LISTIO_MAX returns the default of _POSIX_AIO_LISTIO_MAX > > _SC_AIO_MAX returns the default _POSIX_AIO_MAX > > _SC_AIO_PRIO_DELTA_MAX returns the default of 0 > > _POSIX_* are the minimum maxima. Someone needs to interpret the big > long list of parameters at the beginning of vfs_aio.c and actually > write the correct values. Alan, can you lend me a hand with this? I'm a bit confused as to the right way to proceed... src/include/limits.h has: #define _POSIX_AIO_LISTIO_MAX 16 #define _POSIX_AIO_MAX 1 however I think the relevant defines from vfs_aio.c are: #ifndef MAX_AIO_QUEUE #define MAX_AIO_QUEUE 1024 /* Bigger than AIO_LISTIO_MAX */ #endif and sys/aio.h: ../sys/aio.h:#define AIO_LISTIO_MAX 16 so what to do? Should I set _POSIX_AIO_MAX to 1024? Or leaving it at 1 makes sense because people should be using sysconf(3)? Can I set vfs_aio to use the defines in include/limits.h? Or do we need to move them to syslimits.h? -- -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 cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021116095822.GT50692>