Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2006 13:24:57 -0600
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Pawel Jakub Dawidek <pjd@freebsd.org>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: sysconf(3) extensions.
Message-ID:  <20061101192457.GA56970@lor.one-eyed-alien.net>
In-Reply-To: <20061101190606.GQ15861@garage.freebsd.pl>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Wed, Nov 01, 2006 at 08:06:06PM +0100, Pawel Jakub Dawidek wrote:
> Hi.
> 
> I'd like to add two non-standard value to the sysconf(3) functions,
> which can be found in both Solaris and Linux: _SC_PHYS_PAGES and
> _SC_AVPHYS_PAGES.
> 
> The patch is here:
> 
> 	http://people.freebsd.org/~pjd/patches/sysconf.patch
> 
> Can someone review it? Thanks.

What are they for?  My concern is that _SC_AVPHYS_PAGES isn't going to
semantically match other platforms since in a steady state the free count
is small on FreeBSD, but on other systems it swings quite a bit based on
load.

+Note that it is possible for the product of this value and the value of
+.Li _SC_PAGE_SIZE
+to overflow.

This would be more clear if it said what was expected to overflow and
when.

-- Brooks

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFSPSJXY6L6fI4GtQRAnjIAJkBi5yCmmG8FWD40IwzTcCWl+EhxQCgi1ti
gVBnIKnJHqRkGsMAh6cK5iM=
=fCSN
-----END PGP SIGNATURE-----
home | help

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