From owner-freebsd-arch@FreeBSD.ORG Thu Dec 14 14:34:16 2006 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6072816A500 for ; Thu, 14 Dec 2006 14:34:16 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD70F43CAF for ; Thu, 14 Dec 2006 14:32:37 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 8F55B4880F; Thu, 14 Dec 2006 15:34:10 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 5EA534880D; Thu, 14 Dec 2006 15:34:06 +0100 (CET) Date: Thu, 14 Dec 2006 15:33:58 +0100 From: Pawel Jakub Dawidek To: Rong-en Fan Message-ID: <20061214143358.GB1729@garage.freebsd.pl> 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s/l3CgOIzMHHjg/5" Content-Disposition: inline In-Reply-To: <6eb82e0612131702o178bc054qdebf0b3e69a74534@mail.gmail.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-arch@freebsd.org Subject: Re: sysconf(3) extensions. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2006 14:34:16 -0000 --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 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--