yellowdog-general digest, Vol 1 #612 - 8 msgs

yellowdog-general@lists.terrasoftsolutions.com yellowdog-general@lists.terrasoftsolutions.com
Mon Jan 13 11:39:01 2003


hey, i've noticed something similar on my g3 bronze keyboard powerbook 
running 2.2. it definitely slows down the computer after putting it to 
sleep a few times...

> Message: 3
> To: yellowdog-general@lists.terrasoftsolutions.com
> Subject: I fear a kernel memory leak
> From: jwalton@hotpop.com
> Date: Sat, 11 Jan 2003 19:09:18 -0800
> Reply-To: yellowdog-general@lists.terrasoftsolutions.com
>
> I recently installed YDL-2.3 on a PBG3 (Pismo) and am loving it.
>
> However, even with 640MB of ram, it looks like I'm running out of 
> memory!
> When watching /proc/meminfo, just sleeping and waking the machine
> repeatedly seems to permanently use up some memory.  [and large chunks 
> of
> memory disappear at other times too]
>
> On my first boot, /proc/meminfo claims that I'm using about 100MB.  
> After a
> day of light usage, it says 400MB!
>
> As a double-check, I ran ps, got the rsize column, and added it all up.
> The net result shows about 64MB used, whereas /proc/meminfo now claims
> 410MB used.  I've included the output below.
>
> I don't see any mention in the ps output for memory allocated by the
> kernel, so obviously I can expect some discrepancy... but not 350MB 
> worth!
> Is there some way to find out what the kernel has allocated to where?
>
> Jonathan
>
> [Note 1: I'm not entirely confident of the rsize output.  The ps man 
> page
> claims vsize is in units of bytes, and vsize/rsize are roughly the same
> outputs...  but it has to be kB!  I also don't know how it counts 
> shared
> pages and the like.  But in any case, that's what I see.]
>
> [Note 2: I've definitely installed some nonstandard/newer versions of 
> some
> things, so there's a chance this is due to some mods I've done to the 
> stock
> system... but even so I'd love help in trying to figure out what and 
> why.]
>
>
>     $ cat memusage
> 	cat /proc/meminfo
>
> 	echo "0" > /tmp/calc
> 	ps -A -orsz --no-headers | sed -e "s~\(.*\)~\1 + ~" >> /tmp/calc
> 	echo "p" >> /tmp/calc
> 	dc /tmp/calc
> 	rm /tmp/calc
>
>     $ ./memusage
> 		total:    used:    free:  shared: buffers:  cached:
> 	Mem:  656564224 410882048 245682176        0 18911232 240668672
> 	Swap: 67100672        0 67100672
> 	MemTotal:       641176 kB
> 	MemFree:        239924 kB
> 	MemShared:           0 kB
> 	Buffers:         18468 kB
> 	Cached:         235028 kB
> 	SwapCached:          0 kB
> 	Active:         193592 kB
> 	Inactive:        88804 kB
> 	HighTotal:           0 kB
> 	HighFree:            0 kB
> 	LowTotal:       641176 kB
> 	LowFree:        239924 kB
> 	SwapTotal:       65528 kB
> 	SwapFree:        65528 kB
> 	63216
>
> --__--__--