Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Dec 2006 15:33:58 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Rong-en Fan <grafan@gmail.com>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: sysconf(3) extensions.
Message-ID:  <20061214143358.GB1729@garage.freebsd.pl>
In-Reply-To: <6eb82e0612131702o178bc054qdebf0b3e69a74534@mail.gmail.com>
References:  <20061101190606.GQ15861@garage.freebsd.pl> <20061101192457.GA56970@lor.one-eyed-alien.net> <20061101194618.GT15861@garage.freebsd.pl> <20061101195952.GB56970@lor.one-eyed-alien.net> <20061101202252.GX15861@garage.freebsd.pl> <6eb82e0612131702o178bc054qdebf0b3e69a74534@mail.gmail.com>

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

--s/l3CgOIzMHHjg/5
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 14, 2006 at 09:02:40AM +0800, Rong-en Fan wrote:
> On 11/2/06, Pawel Jakub Dawidek <pjd@freebsd.org> wrote:
> >On Wed, Nov 01, 2006 at 01:59:52PM -0600, Brooks Davis wrote:
> >> On Wed, Nov 01, 2006 at 08:46:18PM +0100, Pawel Jakub Dawidek wrote:
> >> > On Wed, Nov 01, 2006 at 01:24:57PM -0600, Brooks Davis wrote:
> >> > > On Wed, Nov 01, 2006 at 08:06:06PM +0100, Pawel Jakub Dawidek wrot=
e:
> >> > > > Hi.
> >> > > >
> >> > > > I'd like to add two non-standard value to the sysconf(3) functio=
ns,
> >> > > > 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 goin=
g to
> >> > > semantically match other platforms since in a steady state the fre=
e count
> >> > > is small on FreeBSD, but on other systems it swings quite a bit ba=
sed on
> >> > > load.
> >> >
> >> > _SC_PHYS_PAGES is used by libzpool (a part of the ZFS file system).
> >> > _SC_AVPHYS_PAGES I used more for completness.
> >>
> >> OK.  I'd be somewhat inclined to leave _SC_AVPHYS_PAGES out in that
> >> case, but I don't feel strongly about it.
> >
> >I've no opinion, I can remove it.
>=20
> What's the status of _SC_PHYS_PAGES? I'm porting mbuffer [1], which
> uses _SC_PHYS_PAGES.

I just committed it to HEAD.

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--s/l3CgOIzMHHjg/5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFgWDWForvXbEpPzQRAolSAJ93dPki0X9Ood/ZKIPRV+QensLXHACg488v
5eMnSkzeKDPSGb5qMMpQcoI=
=SAHI
-----END PGP SIGNATURE-----

--s/l3CgOIzMHHjg/5--



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