Determining Free Physical RAM and Using It to Improve Your Application
The author explores how application programs can find the amount of free physical memory that is available, with recommendations on how to take advantage of this information.
http://developers.sun.com/solaris/articles/free_phys_ram.html