Re: Proposed new sysctl MIB nodes

Jason R Thorpe <thorpej-DZEk9q7Sfju/3pe1ocb+swC/[email protected]> Thu, 27 Feb 2003 12:22:22 -0800
Newsgroups gmane.os.bsd.api.general
Organization Wasabi Systems, Inc.
Message-ID <[email protected]>
On Thu, Feb 27, 2003 at 12:05:18PM -0800, Julian Elischer wrote:

 > 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.

So, please tell me what happens when you have a system with >4G of RAM.
Note, I'm assuming your physmem is returned as a 32-bit int, like NetBSD's
was.

The goal of the patch is to not divide the numbers by the page size, but
rather to provide meaningful numbers for systems with >=4G RAM.  (Did you
even read my original mail??)

-- 
        -- 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]