Re: 2.1.120pre3 still has sound mem leak

Michael L. Galbraith (mikeg@weiden.de)
Wed, 2 Sep 1998 17:01:34 +0200 (CEST)


On Tue, 1 Sep 1998, Garst R. Reese wrote:

> Each use of sound followed by as many rmmod -a's as you choose,
> decreases total mem by 64K. This is with an old LT SB compatible ESS488
> 8 bit mono sound.
> On the first attempt, rmmod -a resulted in the msg.
> "sound module went missing!"
> This mem leak happened way back when, but I thought it had gone away. I
> don't let Biff bark very often :)
> --
> Garst

Hi,

Are you using the SB driver? According to memleak, it has a leak at
sb_mixer.c:456, but that's only 92 bytes. I've been using it to test
memleak with, but the results seem strange. Can anyone explain the
buffer/slab growth in the following? Is this normal?

-Mike

Script started on Wed Sep 2 15:45:57 1998
[root]:# cat dotest
#!/bin/bash
free
modprobe sb
for i in 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
do
FILE=`date +'%y-%m-%d__%T'`;
sync;
echo $FILE;
dosum > $FILE;
modprobe -r sb;
modprobe -r sound;
modprobe sb;
sleep 10;
done
free
dodelta|grep DELTA|grep -v 'DELTA: 0'
[root]:# dotest
total used free shared buffers cached
Mem: 69952 17840 52112 9880 2404 9216
-/+ buffers/cache: 6220 63732
Swap: 392244 0 392244

<SNIP echos>
total used free shared buffers cached
Mem: 69952 22296 47656 9920 5604 9828
-/+ buffers/cache: 6864 63088
Swap: 392244 0 392244
buffer.c:1219: 1680 124 188 192 192 192 192 210 234 196 252 196 256 252 290 DELTA: 2966
buffer.c:1601: 260 15 17 17 22 20 15 22 18 18 12 23 25 14 23 DELTA: 261
dcache.c:505: 948 -5 1 1 1 -7 1 1 1 1 1 1 1 -7 1 DELTA: -8
dcache.c:510: 150 0 1 1 1 -1 1 1 1 1 1 1 1 0 1 DELTA: 10
exec.c:294: 19 -1 -1 1 -1 2 0 -2 2 -2 0 -1 0 0 0 DELTA: -3
file_table.c:92: 230 4 0 0 0 0 0 0 0 0 0 0 0 0 0 DELTA: 4
filemap.c:1005: 71 -5 1 -1 -1 1 0 -4 1 0 0 -1 0 0 0 DELTA: -9
filemap.c:1042: 308 9 0 0 0 0 0 0 0 0 0 0 0 0 0 DELTA: 9
filemap.c:316: 665 7 0 0 0 0 -1 -1 -1 0 0 0 0 -1 -1 DELTA: 2
filemap.c:739: 71 12 7 8 2 3 7 5 8 13 6 5 11 -3 5 DELTA: 89
memory.c:645: 226 -6 1 2 -3 1 -9 -4 1 -5 0 -1 0 0 0 DELTA: -23
memory.c:865: 277 29 3 2 -1 3 15 2 2 6 12 -4 9 5 5 DELTA: 88
module.c:87: 5 -2 0 0 0 0 0 0 0 0 0 0 0 0 0 DELTA: -2
namei.c:92: 58 0 1 -1 1 -2 0 3 -2 0 -1 0 0 1 1 DELTA: 1
pipe.c:402: 4 -2 -1 1 0 0 0 -1 0 0 0 0 0 0 0 DELTA: -3
sb_mixer.c:456: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 DELTA: 14
slab.c:521: 49 1 1 2 1 2 3 2 2 2 1 2 2 1 2 DELTA: 24
vmalloc.c:109: 74 -1 -5 -8 0 0 0 0 0 0 0 0 0 0 0 DELTA: -14
[root]:# exit
exit

Script done on Wed Sep 2 15:50:49 1998

and, from an earlier run where I try to poke SysRq-m in sync...

48*4kB 30*8kB 10*16kB 1*32kB 0*64kB 389*128kB = 50416kB
Buffer memory: 2980kB
Buffer heads: 2196
Buffer blocks: 2180
45*4kB 41*8kB 8*16kB 1*32kB 1*64kB 387*128kB = 50268kB
Buffer memory: 3108kB
Buffer heads: 2328
Buffer blocks: 2308 +128
48*4kB 34*8kB 5*16kB 1*32kB 0*64kB 386*128kB = 49984kB
Buffer memory: 3364kB
Buffer heads: 2580
Buffer blocks: 2564 +256
50*4kB 40*8kB 8*16kB 1*32kB 1*64kB 383*128kB = 49768kB
Buffer memory: 3556kB
Buffer heads: 2776
Buffer blocks: 2756 +192
50*4kB 43*8kB 7*16kB 0*32kB 0*64kB 382*128kB = 49552kB
Buffer memory: 3748kB
Buffer heads: 2968
Buffer blocks: 2948 +192
50*4kB 40*8kB 9*16kB 1*32kB 0*64kB 380*128kB = 49336kB
Buffer memory: 3940kB
Buffer heads: 3160
Buffer blocks: 3140 +192
50*4kB 40*8kB 9*16kB 0*32kB 0*64kB 378*128kB = 49048kB
Buffer memory: 4196kB
Buffer heads: 3416
Buffer blocks: 3396 +256
50*4kB 43*8kB 8*16kB 1*32kB 0*64kB 376*128kB = 48832kB
Buffer memory: 4388kB
Buffer heads: 3608
Buffer blocks: 3588 +192

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html