[plug] Finding details of memory usage

James Andrewartha trs80 at ucc.gu.uwa.edu.au
Thu Apr 19 18:16:20 WST 2001


On Thu, 19 Apr 2001, Carl Gherardi wrote:

> My system has suddenly started swapping and i've no idea why.
> 
> ps -aux: 57 processes, 47% (of 192M) in use
> 
> cat /proc/meminfo
> MemFree: 2
> SwapTotal: 200
> SwapFree: 118
> 
> I'm using 80M of swap space and i've no idea why...
> 
> Are there any tools to have a more thorough look at whats in memory? ps
> just isn't cutting it

top perhaps?

~> top -n
load averages:  0.03,  0.25,  0.21    18:12:43
198 processes: 1 running, 45 sleeping, 151 idle, 1 stopped

Memory: Real: 120M/241M act/tot  Virtual: 149M/256M use/tot  Free: 3008K


   PID USERNAME PRI NICE  SIZE   RES STATE   TIME    CPU COMMAND
375121 xxxxxxx   44    0 5288K 1482K sleep   0:32  2.80% ssh1
375067 xxxxx     44    0 3408K  843K run     0:00  1.90% top
353374 xxxxxxxx  44    0 5824K 1638K sleep   2:53  0.40% zangband
171393 xxxxx     44    0   28M   15M sleep   9:45  0.20% screen-3.9.5
288283 xxxx      44    0 2320K  425K sleep   0:39  0.10% ftpd
373083 xxxx      44    0 4408K  425K sleep   0:01  0.10% sshd1
371771 xxxxx     44    0 3872K  999K sleep   0:00  0.10% zsh
376703 xxxx      44    0 3744K  417K sleep   0:00  0.10% pop3d
   493 xxxx      44    0 3128K  327K sleep  70:02  0.00% ypserv
147894 xxxxxxxx  49    5 3344K  458K sleep  35:24  0.00% monitor
   965 xxxx      42    0   11M 2981K sleep  33:50  0.00% java
   963 xxxx      44    0 6688K  270K sleep  18:42  0.00% xdm
   944 xxxx      42    0 8320K 3063K sleep  14:47  0.00% java
   744 xxxx      44    0 6176K  483K sleep  10:56  0.00% insightd

top -n prints the above list and exits
top -s# refreshes the list every # seconds (default is 1 or 2 seconds)

-- 
"There's nobody getting rich  |  TRS-80                UCC Treasurer
 writing software that I      |  Email:    trs80(a)ucc.gu.uwa.edu.au
 know of" - Bill Gates, 1980  |  Web:       http://trs80.ucc.asn.au/





More information about the plug mailing list