[comp.unix.questions] How much memory does SunOs use?

tomt@maui.coral.com (Tom Tulinsky) (05/09/91)

We are having severe thrashing problems running gdb on a large g++
program.  Our user process total RSS size never gets over about 
6 meg on our 16 meg Sparc 1's. (measured w/ ps -aux).  I am aware that
ps -aux doesn't show the resident text.  Is this the amount of space
you would expect to be available?  Is there anyway we can make the OS
smaller? 

Is there any command that shows how much memory the OS uses? 

We run SunOs 4.1.
We tried to make the kernel smaller, with little result, by:
   - start with GENERIC_SMALL
   - remove Crypt, win10, dtop1, sd3 (4th disk), st1 (2nd tape), 
However we also have to do the following which would *increase* 
our memory use:
   maxusers        32   (was 4)
   options SEMMNS=64    # max number of semaphores
   options SHMSIZE=437    # single largest shared mem seg (in KB)
   options SEMEME=48      # max number of semaphores/process
   options SHMMNI=10645   # number of shared memory segments


 Coral
     * **	Tom Tulinsky                508 460-6010
  *  **		Coral Network Corporation   fax 508 481-6258
*  ** 		734 Forest St               net: tomt@coral.com
 ***		   Marlboro, MA 01752		
  **		   U S A
*********	   Overheard in a BART station:
NETWORKS	      "I was the only NORM there!"

pbarr@convex.com (Philip Barr) (05/09/91)

In <26823@adm.brl.mil> tomt@maui.coral.com (Tom Tulinsky) writes:


>We are having severe thrashing problems running gdb on a large g++
>program.  Our user process total RSS size never gets over about 
>6 meg on our 16 meg Sparc 1's. (measured w/ ps -aux).  I am aware that
>ps -aux doesn't show the resident text.  Is this the amount of space
>you would expect to be available?  Is there anyway we can make the OS
>smaller? 

>Is there any command that shows how much memory the OS uses? 

On booting you are told the amount of physical memory you have and the
available memory after the kernal is loaded.

Nov  3 15:57:38 name vmunix: Copyright (c) 1983-1990, Sun Microsystems, Inc.
Nov  3 15:57:38 name vmunix: mem = 8192K (0x800000)
                                   ^^^^^   physical memory  8 Meg
Nov  3 15:57:38 name vmunix: avail mem = 7446528
                                          ^^^^^^  availabel memory  7.44 Meg
Nov  3 15:57:38 name vmunix: Ethernet address = 0:0:00:0:00:00
Nov  3 15:57:38 name vmunix: xyc0 at vme16d16 0xee40 vec 0x48
.......
....
..

You can get get the output from a boot by looking in /usr/adm/messages.

Next you need to add up all the Resident Set Size of all processes that are 
running.  This is the RSS field from 'ps -axl'.  You can probably kill some
unneeded processes to regain some physical memory.

--
Phil Barr 				I Know That You Believe You
Systems Specialist - CONVEX TAC		Understand What You Think I Said,
pbarr@convex.com			But I'm Not Sure You Realize That
(214)/497-4421				What you Heard Is Not What I Meant.