Re: Proposed new sysctl MIB nodes

Jason R Thorpe <thorpej-DZEk9q7Sfju/3pe1ocb+swC/[email protected]> Thu, 6 Mar 2003 11:19:38 -0800
Newsgroups gmane.os.bsd.api.general
Organization Wasabi Systems, Inc.
Message-ID <[email protected]>
On Fri, Feb 28, 2003 at 10:54:09AM -0600, Mike Karels wrote:

Ok, I cave.  Enough people want it in bytes that I don't have a problem
changing it to bytes.

The new nodes are HW_PHYSMEM64 (hw.physmem64) and HW_USERMEM64 (hw.usermem64)
then.

I will adjust the NetBSD implementation to match, and will adjust the
patch for GCC (which I haven't submitted yet).

 > Although I didn't see an explicit answer (other than code, which may
 > have crossed the other message), I'd like to suggest that a "quad" in
 > bytes would be better than one in pages.  Applications really don't
 > want the value in pages, but in bytes.  Applications are highly likely
 > to multiply the returned value by the page size anyway, and a 64-bit
 > value in bytes should hold us for quite a while.  It seems to me that it
 > would be best to return a 64-bit (or larger) value in bytes, and quad
 > appears to be the best way to do this.  It seems to me that the only reason
 > to use pages is to try to squeeze the value into an int, presumably still
 > 32 bits on many systems.
 > 
 > 		Mike
 > 
 > ---------------------------------------------------------------------
 > The BSD APIs Discussion Mailing List
 > To unsubscribe:
 > send "unsubscribe bsd-api-discuss" to majordomo-DZEk9q7Sfju/3pe1ocb+swC/[email protected]

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