From owner-freebsd-arch@FreeBSD.ORG Thu Dec 14 01:04:54 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 60A8C16A417 for ; Thu, 14 Dec 2006 01:04:54 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AB4043DAF for ; Thu, 14 Dec 2006 01:01:15 +0000 (GMT) (envelope-from grafan@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so118527ana for ; Wed, 13 Dec 2006 17:02:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GLx6vLJQjDbVmORLzef7KdJ880uT9PFwlMOX/n7t28t+jHVC6nnxr6E9s7YoAEw6OX0OD2NjI4CnZJS5Q03WMI0fOgErrzXmtwN0ZdV9SksMyngT0ykGpkoRBePntFbL30aAMTZCC/Caa85fQ4hB0TWhy/isNtJ1nvwdHEEdC84= Received: by 10.100.173.19 with SMTP id v19mr327643ane.1166058160848; Wed, 13 Dec 2006 17:02:40 -0800 (PST) Received: by 10.100.136.16 with HTTP; Wed, 13 Dec 2006 17:02:40 -0800 (PST) Message-ID: <6eb82e0612131702o178bc054qdebf0b3e69a74534@mail.gmail.com> Date: Thu, 14 Dec 2006 09:02:40 +0800 From: "Rong-en Fan" To: "Pawel Jakub Dawidek" In-Reply-To: <20061101202252.GX15861@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> 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 01:04:54 -0000 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 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. > > > > > > _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. What's the status of _SC_PHYS_PAGES? I'm porting mbuffer [1], which uses _SC_PHYS_PAGES. Regards, Rong-En Fan [1] http://www.maier-komor.de/mbuffer.html