Subject: Why am I using this much swap ?
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Peter Galbavy <peter@wonderland.org>
List: current-users
Date: 03/03/1994 20:04:13
If there a swap leak somewhere:

lots of crap below...

peter@alice.wonderland.org $ swapinfo
Device      512-blocks       Used  Available   Capacity
/dev/sd0b        90720      86728       3992      96%
/dev/wd0b            0  *** not available for swapping ***

peter@alice.wonderland.org $ ps auxg
USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
root       403  5.8  5.9  3192 1912 ??  S    Tue08PM    7:29.00 X :0
peter     2384  1.7  5.3  1032 1732 vg  S     7:48PM    0:13.25 xarchie
peter     2595  0.0  0.7   260  220 p6  R+    8:01PM    0:00.16 ps auxg
peter     2594  0.4  2.0   388  648 p3  S+    8:00PM    0:00.42 /usr/bin/vi /tm
peter     2593  0.0  0.3   108  100 p3  I+    8:00PM    0:00.02 sh -c /usr/bin/
peter     2586  0.0  1.7   644  536 p3  I+    8:00PM    0:01.46 elm
peter     2390  0.0  1.5   592  484 p6  Ss    7:49PM    0:00.75 -bash (bash)
peter     2389  0.0  0.5    64  148 p5  S+    7:49PM    0:00.05 rlogin alice
root      2388  0.0  1.1    68  336 ??  S     7:49PM    0:00.31 rlogind
peter     2387  0.0  1.0    64  316 p5  Ss+   7:49PM    0:00.32 rlogin alice
root      2386  0.0  3.5   448 1136 vg  S     7:49PM    0:00.80 /usr/X386/bin/x
peter     2293  0.0  1.6   264  500 p1  I+    7:17PM    0:01.85 ncftp novel
peter     9113  0.0  0.9   588  292 pd  Is+  Wed07AM    0:00.44 -bash (bash)
peter     9112  0.0  0.3    64   96 pc  I+   Wed07AM    0:00.18 rlogin alice
root      9111  0.0  0.7    68  216 ??  I    Wed07AM    0:00.37 rlogind
peter     9110  0.0  0.6    64  184 pc  Is+  Wed07AM    0:00.20 rlogin alice
root      9109  0.0  1.3   448  412 vg  S    Wed07AM    0:00.90 /usr/X386/bin/x
peter      450  0.0  1.3   584  404 p3  Is   Tue08PM    0:01.74 bash
root       449  0.0  1.9   448  620 vg  S    Tue08PM    0:28.78 xterm
peter      422  0.0  1.3   584  408 p1  Is   Tue08PM    0:01.60 bash
peter      411  0.0  0.9   576  288 p0  Is+  Tue08PM    0:00.23 bash
peter      410  0.0  0.9   248  280 vg  S    Tue08PM    0:01.21 /usr/X386/lib/X
peter      408  0.1  1.8   396  572 vg  S    Tue08PM    0:15.75 fvwm
root       407  0.0  2.2   444  700 vg  S    Tue08PM    0:15.53 xterm -geometry
root       406  0.0  1.1   460  360 vg  S    Tue08PM    0:00.55 xterm -geometry
peter      405  0.0  0.9   276  296 vg  I    Tue08PM    0:00.37 oclock -geometr
peter      404  0.0  0.3   108   88 vg  I    Tue08PM    0:00.03 sh /home/alice/
peter      402  0.0  0.6    72  176 vg  I+   Tue08PM    0:00.22 xinit
root       119  0.0  0.4    28  128 ??  I    Tue07PM    0:00.04 /usr/libexec/ge
peter      118  0.0  0.9   588  292 vg  Is   Tue07PM    0:00.90 -bash (bash)
root       116  0.0  0.6    88  176 ??  Is   Tue07PM    0:00.17 /usr/sbin/supfi
root       113  0.0  0.9   204  288 vg- S<   Tue07PM    0:04.94 /usr/local/bin/
root       100  0.0  0.8    96  240 ??  Ss   Tue07PM    0:02.28 inetd
root        97  0.0  0.9   292  280 ??  Is   Tue07PM    0:04.49 sendmail: accep
root        96  0.0  0.5    80  160 ??  I    Tue07PM    0:00.26 lpd
root        93  0.0  0.5    64  152 ??  Is   Tue07PM    0:00.03 lpd
root        91  0.0  0.6    72  200 ??  Is   Tue07PM    0:00.34 rwhod
root        88  0.0  1.8   484  596 ??  Is   Tue07PM    0:10.22 named
root        83  0.0  0.8   144  268 ??  Is   Tue07PM    0:01.29 cron
root        81  0.0  0.4    12  112 ??  Is   Tue07PM    0:04.26 update
root        68  0.0  0.7    68  236 ??  Ss   Tue07PM    0:02.40 syslogd
root        55  0.0  0.1    36   16 ??  I    Tue07PM    0:00.00 nfsiod 4
root        54  0.0  0.1    36   16 ??  I    Tue07PM    0:00.00 nfsiod 4
root        53  0.0  0.1    36   16 ??  I    Tue07PM    0:00.00 nfsiod 4
root        51  0.0  0.1    36   16 ??  Is   Tue07PM    0:00.01 nfsiod 4
root        50  0.0  0.1    80   16 ??  I    Tue07PM    0:54.39 nfsd-udp
root        49  0.0  0.1    80   16 ??  I    Tue07PM    0:55.65 nfsd-udp
root        48  0.0  0.1    80   16 ??  I    Tue07PM    0:57.58 nfsd-udp
root        47  0.0  0.1    80   16 ??  I    Tue07PM    0:56.10 nfsd-udp
root        44  0.0  0.1    80   16 ??  Is   Tue07PM    0:00.03 nfsd-listen
root        42  0.0  0.1   204   16 ??  Is   Tue07PM    0:00.07 mountd
root        37  0.0  0.4    48  116 ??  Is   Tue07PM    0:00.06 portmap
root        16  0.0 40.0 45500 13100 ??  Is   Tue07PM    0:23.59 mfs /dev/sd0b /
root         2  0.0  0.1     0   12 ??  DL   Tue07PM    0:04.94 (pagedaemon)
root         1  0.0  0.2   204   72 ??  Is   Tue07PM    0:02.57 init --
root         0  0.0  0.0     0    0 ??  DLs  Tue07PM    0:00.01 (swapper)
peter      409  0.0  0.0     0   20 vg  Z    -          0:00.00 (FvwmInitBanner

and finally:

peter@alice.wonderland.org $ ls -l /tmp
total 694
-rw-rw----  1 news   wheel    1139 Mar  2 02:45 doex8308
-rw-------  1 peter  wheel     997 Mar  3 20:00 est.2586
-rw-------  1 peter  staff    1111 Mar  3 14:20 files
-rwx------  1 peter  staff  334339 Mar  3 20:00 mbox.peter
-rw-r--r--  1 peter  wheel     101 Sep 17 17:05 ncftp000962
-rw-r--r--  1 peter  wheel      34 Sep 18 17:04 ncftp001290
-rw-r--r--  1 peter  wheel      34 Sep 18 17:02 ncftp001301
-rw-r--r--  1 peter  wheel     110 Sep 18 17:17 ncftp002293
-rw-------  1 peter  staff     196 Mar  3 20:00 snd.2586
drwxrwxrwt  2 peter  wheel     512 Mar  3 20:00 vi.recover

(nothing in vi.recover worth looking for).

Normally the system start and there is hardly any swap use... and where is
the 13Mb or so going in MFS ???

Help,
- 
Peter Galbavy				e-mail: P.Galbavy@wonderland.org
Wonderland				  work: P.Galbavy@micromuse.co.uk

	  "And you will know exactly who you are, forever,
		by knowing what it is that you love."

------------------------------------------------------------------------------