Memory

Mike Dilworth dilworth at presto.ig.com
Wed Nov 21 05:00:01 AEST 1990


I am in the process of building a program which can allocate large amounts
of memory (>32 megs).   The problem,  It will be running on small machines
(<32 megs {surprise}).  But that's ok, the kernel of this program can
compress it's memory image. 

What I am looking for is a method to monitor the total amount of memory
allocated (both real and virtual), and the total amount of memory avail
(both real and virtual),  system wide. 

When my program is quite fat and the system resources are thin the kernel
would begin compressing itself.  Thus allowing the user to run both my
program and emacs etc...

I have looked at the source code to a bunch of "perfmeters" but none seem
to provide the correct info.  kmem seems to have the info but I can't
locate it.  Can you?

Michael Dilworth                     /.         dilworth at presto.ig.com
Clove Productions Ltd.              .\                  
Santa Cruz Ca.                       /          Save a life, Teabag a Sponge



More information about the Comp.sys.sun mailing list