Re: Proposed new sysctl MIB nodes

Jason R Thorpe <thorpej-DZEk9q7Sfju/3pe1ocb+swC/[email protected]> Thu, 27 Feb 2003 10:55:02 -0800
Newsgroups gmane.os.bsd.api.general
Organization Wasabi Systems, Inc.
Message-ID <[email protected]>
On Thu, Feb 27, 2003 at 10:47:52AM -0800, Marcel Moolenaar wrote:

 > I subscribed late, so missed the discussion about this other than
 > the snippet Warner forwarded to [email protected] It's not my
 > intend to trigger a rerun of the discussion, but what I'm wondering
 > about is what exactly the value is of knowing the amount of memory
 > physically installed in the machine given the fact that there are
 > process limits and the process is running in a multi-user, multi-
 > process environment?

GCC's garbage-collecting memory allocator uses this information,
along with rlimits (and sometimes raising rlimits) to tune itself.
The aim is to avoid making the machine thrash.

I am but the messenger ... the application is already using HW_PHYSMEM,
which loses on systems with >=4G of RAM.  I just want to fix it for those
kinds of systems.

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