Re: Proposed new sysctl MIB nodes

Julian Elischer <[email protected]> Thu, 27 Feb 2003 12:05:18 -0800 (PST)
Newsgroups gmane.os.bsd.api.general
Message-ID <[email protected]>
Since FreeBSD has had for ages:

hw.physmem: 130732032
hw.usermem: 100630528
hw.pagesize: 4096

it seems a little redundant to give teh same numbers divided by
hw.pagesize.

moving them to be defined as 64 bit ints might be good but most apps
wouldn't notice. They are ususally used in their ascii form by scripts
etc.



On Wed, 26 Feb 2003, Jason R Thorpe wrote:

> On Mon, Feb 24, 2003 at 07:21:44PM -0500, Perry E. Metzger wrote:
> 
>  > > I'd like to propose new HW_PHYSPAGES and HW_USERPAGES MIB nodes that
>  > > return the same information, but in a 32-bit page count, instead.  The
>  > > implementation is left as an exercise to the reader.  I just want to get
>  > > consensus on the names, so that I can tell the GCC people about it, and
>  > > have it work on all the BSD platforms (as their current sysctl code does).
>  > 
>  > How about simply having a total memory count in quads instead? That
>  > way we won't run out when we pass 2^48 or 49th bytes in 10 or 15
>  > years.
> 
> OK, since there hasn't been any further discussion about this, I'll take
> this to mean that we're all in agreement.  Here is the patch I'm checking
> into NetBSD.  I will check a patch into GCC to use it in a few days.

there was still some discussion on theis going on in the freeBSD arch
list last I looked.(it should have been cc'd to here but wasn't)


> 
> -- 
>         -- Jason R. Thorpe <thorpej-DZEk9q7Sfju/3pe1ocb+swC/[email protected]>
> 


---------------------------------------------------------------------
The BSD APIs Discussion Mailing List
To unsubscribe:
send "unsubscribe bsd-api-discuss" to majordomo-DZEk9q7Sfju/3pe1ocb+swC/[email protected]