Subject: Swap space reclaimation ?
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Peter Galbavy <P.Galbavy@wonderland.org>
List: current-users
Date: 12/07/1993 19:55:37
Hi,

Doing a swapinfo I get:

Device      512-blocks       Used  Available   Capacity
/dev/sd0b        84480      82792       1688      98%
/dev/wd0b            0  *** not available for swapping ***

And this number *never* falls even afetr getting rid of a number of
xterms etc... My ps agxv listing is:

  PID STAT      TIME  SL  RE PAGEIN   VSZ  RSS   LIM TSIZ %CPU %MEM COMMAND
   11 Ss     0:18.49   0 -17      0 32768 16200     -   52  0.0 49.5 mfs /dev/sd
  146 S     10:05.87   0 106      0  4804  880     -  956  1.0  2.7 X :0
 1387 I+     0:07.32  41 -125      0  1984 1132     -  144  0.0  3.5 sup -svz
  150 I      0:11.88  57 101      0   924  556     -  128  0.0  1.7 xterm
  180 S      0:22.92   0  53      0   920  508     -  128  0.1  1.6 xterm
  148 I      0:00.86  57 101      0   900  200     -  128  0.0  0.6 xterm -C -n
  106 Is     0:10.73  68 -32      0   876  704     -  400  0.0  2.2 /usr/pp/qmg
   48 Is     0:00.05  74 -21      0   864   96     -   36  0.0  0.3 timed
  149 I      0:00.36  36 101      0   768  152     -   16  0.0  0.5 oclock -geo
  151 I      0:27.87  56 101      0   720  280     -   76  0.0  0.9 fvwm
  128 Ss     0:13.98   6 -35      0   704  312     -  136  0.0  1.0 /usr/libexe
   69 Is     0:01.31  72 -28      0   688  196     -   72  0.0  0.6 named
 1745 S+     0:00.35   0  45      0   656  344     -   92  0.0  1.1 /usr/bin/vi
   62 I      0:00.22  36 -27      0   620  100     -   20  0.0  0.3 /usr/libexe
   95 Is     0:00.29 107 -29      0   604   92     -   16  0.0  0.3 inetd
 1381 Is+    0:00.05 -112 -87      0   588   24     -   48  0.0  0.1 /usr/sbin/p
  145 I+     0:00.31 102 107      0   576   24     -   12  0.0  0.1 xinit
   72 Is     0:00.04 -29 -28      0   568   24     -   40  0.0  0.1 lpd
   45 Is     0:00.64  24 -20      0   564  160     -   16  0.0  0.5 syslogd
   74 Is     0:00.05 -31 -28      0   552   24     -    8  0.0  0.1 portmap
  181 Is     0:03.75  53  51      0   532  312     -  304  0.0  1.0 bash
   60 Ss     0:02.34  19 -27      0   516   56     -    4  0.0  0.2 update
  131 Is     0:00.55 107 -37      0   508   20     -  304  0.0  0.1 -bash (bash
  153 Is+    0:00.24 123  98      0   504   20     -  304  0.0  0.1 bash
 1743 I+     0:00.08  45  53      0   484  328     -  316  0.0  1.0 elm current
  152 Is     0:00.88 -125  98      0   476   20     -  304  0.0  0.1 bash
 1754 S+     0:00.14   0   0      0   440  328     -  304  0.0  1.0 /usr/gnu/bi
 1761 R+     0:00.04   0   0      0   360  284     -  124  0.0  0.9 ps agxv
  105 I      0:03.03  68 -32      0   356  184     -  160  0.0  0.6 /usr/pp/ppt
    1 Is     0:00.31 -35 -14      0   200   76     -  112  0.0  0.3 init --
   79 Is     0:00.02 -29 -29      0   156   16     -   76  0.0  0.1 mountd
   66 Ss     0:00.02  18 -28      0   128   60     -   72  0.0  0.2 routed -q
  147 I      0:00.08 101 102      0   108   20     -   84  0.0  0.1 sh /home/al
 1744 I+     0:00.02  45  45      0   108  104     -   84  0.0  0.3 sh -c /usr/
   81 Is     0:00.03 -29 -29      0    80   16     -   52  0.0  0.1 nfsd-listen
   84 I      0:00.00 -29 -29      0    80   16     -   52  0.0  0.1 nfsd-udp
   83 I      0:00.00 -29 -29      0    80   16     -   52  0.0  0.1 nfsd-udp
   85 I      0:00.00 -29 -29      0    80   16     -   52  0.0  0.1 nfsd-udp
   86 I      0:00.00 -29 -29      0    80   16     -   52  0.0  0.1 nfsd-udp
  132 I      0:01.64 106 -37      0    52   52     -   28  0.0  0.2 /usr/bin/ov
   94 I      0:00.01 -29 -29      0    36   16     -   28  0.0  0.1 nfsiod 4
   93 I      0:00.00 -29 -29      0    36   16     -   28  0.0  0.1 nfsiod 4
   92 I      0:00.00 -29 -29      0    36   16     -   28  0.0  0.1 nfsiod 4
   88 Is     0:00.01 -29 -29      0    36   16     -   28  0.0  0.1 nfsiod 4
    2 DL     0:04.24  34 -14      0     0   12     -    0  0.0  0.1 (pagedaemon
    0 DLs    0:00.01   1 -13      0     0    0     -    0  0.0  0.0 (swapper)

Which is you ignore the mfs, the vsz's don't necessarily come to this much,
do they ? Am I missing something, or am I stupid (again) ?

BTW /tmp (MFS) is empty...

-- 
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."

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