Re: Memory leak in 2.6.11-rc1?

From: Jens Axboe
Date: Sun Jan 23 2005 - 04:57:31 EST


On Sun, Jan 23 2005, Andrew Morton wrote:
> Jens Axboe <axboe@xxxxxxx> wrote:
> >
> > This is after 2 days of uptime, the box is basically unusable.
>
> hm, no indication where it all went.

Nope, that's the annoying part.

> Does the machine still page properly? Can you do a couple of monster
> usemems or fillmems to page everything out, then take another look at
> meminfo and the sysrq-M output?

It seems so, yes. But I'm still stuck with all of my ram gone after a
600MB fillmem, half of it is just in swap.

Attaching meminfo and sysrq-m after fillmem.

--
Jens Axboe

MemTotal: 1022372 kB
MemFree: 383824 kB
Buffers: 908 kB
Cached: 29468 kB
SwapCached: 49912 kB
Active: 122232 kB
Inactive: 64228 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 1022372 kB
LowFree: 383824 kB
SwapTotal: 1116476 kB
SwapFree: 437884 kB
Dirty: 44 kB
Writeback: 0 kB
Mapped: 130812 kB
Slab: 21948 kB
CommitLimit: 1627660 kB
Committed_AS: 1130368 kB
PageTables: 7884 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 1152 kB
VmallocChunk: 34359737171 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB
SysRq : Show Memory
Mem-info:
DMA per-cpu:
cpu 0 hot: low 2, high 6, batch 1
cpu 0 cold: low 0, high 2, batch 1
Normal per-cpu:
cpu 0 hot: low 32, high 96, batch 16
cpu 0 cold: low 0, high 32, batch 16
HighMem per-cpu: empty

Free pages: 379280kB (0kB HighMem)
Active:31304 inactive:16430 dirty:80 writeback:0 unstable:0 free:94820 slab:5486 mapped:33169 pagetables:1987
DMA free:8632kB min:60kB low:72kB high:88kB active:120kB inactive:2076kB present:16384kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 1007 1007
Normal free:370648kB min:4028kB low:5032kB high:6040kB active:125096kB inactive:63644kB present:1031360kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 414*4kB 220*8kB 54*16kB 10*32kB 1*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 1*2048kB 0*4096kB = 8632kB
Normal: 36308*4kB 17473*8kB 4136*16kB 456*32kB 16*64kB 2*128kB 0*256kB 1*512kB 1*1024kB 1*2048kB 0*4096kB = 370648kB
HighMem: empty
Swap cache: add 301052, delete 288547, find 27582/38199, race 0+0
Free swap = 437948kB
Total swap = 1116476kB
Free swap: 437948kB
261936 pages of RAM
6456 reserved pages
18505 pages shared
12505 pages swap cached