Subject: tcsh 6.05 leaks??
To: None <current-users@netbsd.org>
From: matthew green <mrg@mame.mu.oz.au>
List: current-users
Date: 11/10/1994 01:09:26
hi, i've got a problem with tcsh 6.05 under netbsd 1.0.  has
anyone else seen this?

i killed two tcsh's both using significantly less than 1meg of
memory each (as reported by ps(1)), yet the total amount of
swap i got back was more than 6 meg (no, no other processes
were killed at the same time)

# ps aux
USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
[ ... ]
mrg        231  0.0  0.0   620  496 pa  Is+   2Nov94    0:22.34 -bin/tcsh
[ ... ]
root      6982  0.0  0.0   648  640 pa  T    Fri11PM    0:11.38 -csh (tcsh)
[ ... ]

# pstat -s
Device      1024-blocks     Used    Avail Capacity  Type
/dev/sd0b         28800    17488    11312    61%    Interleaved
/dev/vnd0c        28800    17416    11384    60%    Interleaved
Total             57600    34904    22696    61%

[ kill root shell, pid 6982 ]

# pstat -s
Device      1024-blocks     Used    Avail Capacity  Type
/dev/sd0b         28800    16872    11928    59%    Interleaved
/dev/vnd0c        28800    16304    12496    57%    Interleaved
Total             57600    33176    24424    58%

[ kill mrg shell, pid 231 ]

# pstat -s
Device      1024-blocks     Used    Avail Capacity  Type
/dev/sd0b         28800    13796    15004    48%    Interleaved
/dev/vnd0c        28800    14980    13820    52%    Interleaved
Total             57600    28776    28824    50%

uname says:

# uname -snmr
NetBSD splode.mame.mu.OZ.AU 1.0 sparc

i had previously thought it was screen that was leaking, as i
used to get heaps of swap back when i restarted screen, but i
see now that this was not the case.

christos?  any ideas?

.mrg.