From owner-cvs-all Sat Nov 16 1:58:24 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D805337B401; Sat, 16 Nov 2002 01:58:22 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9755443E6E; Sat, 16 Nov 2002 01:58:22 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 603D2AE2E4; Sat, 16 Nov 2002 01:58:22 -0800 (PST) Date: Sat, 16 Nov 2002 01:58:22 -0800 From: Alfred Perlstein To: Garrett Wollman 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> References: <200211160635.gAG6ZKUX094649@repoman.freebsd.org> <200211160706.gAG76Z4S089556@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200211160706.gAG76Z4S089556@khavrinen.lcs.mit.edu> User-Agent: Mutt/1.4i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Garrett Wollman [021115 23:06] wrote: > < 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