Re: Memory leak in 2.0.x and 2.1.63 !?

Chris Adams (cadams@ro.com)
Fri, 14 Nov 1997 16:44:30 -0600 (CST)


Okay, stupidity is on my side to day. When I sent the info before, I
forgot to say the whole reason I think there is a memory leak. Here is
the output of "free" when I boot:

total used free shared buffers cached
Mem: 322072 7468 314604 4644 1604 2988
-/+ buffers: 2876 319196
Swap: 130748 0 130748

The output of "ps amx | awk '{x+=$7}END{print x}'" (which adds up the
SIZE column) is 6712, which sounds about right, since there is 4644
shared.

After I run "mke2fs", I get:

total used free shared buffers cached
Mem: 322072 311864 10208 5420 270796 3100
-/+ buffers: 37968 284104
Swap: 130748 0 130748

and ps amx reports 7136 used (the first set of numbers came before I ran
su, so there is one additional program running the second time).

I think this is a leak because free says 37968k is in use, while ps only
shows 7136k being used by processes. If this is NOT a leak and someone
can explain the reason to me, please do!

-- 
Chris Adams - cadams@ro.com
System Administrator - Renaissance Internet Services
I don't speak for anybody but myself - that's enough trouble.