Re: Proposed new sysctl MIB nodes
"Perry E. Metzger" <perry-X5Sd0iy3FnBWk0Htik3J/[email protected]> 24 Feb 2003 19:21:44 -0500
| Newsgroups | gmane.os.bsd.api.general |
|---|---|
| Message-ID | <[email protected]> |
Jason R Thorpe <thorpej-DZEk9q7Sfju/3pe1ocb+swC/[email protected]> writes: > The GCC folks have recently started using the HW_PHYSMEM and HW_USERMEM > sysctl MIB nodes to tune the behavior of the garbage collecting memory > allocator in GCC. It was pointed out there that these totally fall over > with >=4G of RAM, since it's a 32-bit quantity that returns the number > of bytes. > > 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. Perry --------------------------------------------------------------------- The BSD APIs Discussion Mailing List To unsubscribe: send "unsubscribe bsd-api-discuss" to majordomo-DZEk9q7Sfju/3pe1ocb+swC/[email protected]