with gentoo-dev-sources 2.6.9-r1/6/9 oom killer kills my mozilla debug compile at linking the layout lib (biggest lib). I have 128MB RAM with 392MB of swap. I'm using -Xlinker --no-keep-memory, -Xlinker --reduce-memory-overhead in my LDFLAGS. This has never happened in 2.6.8-r10, I'm about to emerge the latest 2.6.8 to test it. According to htop/top there's still free swap space available when this happens. Below is the tail from my /var/log/messages Reproducible: Always Steps to Reproduce: Actual Results: oom-killer: gfp_mask=0xd2 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 12, high 36, batch 6 cpu 0 cold: low 0, high 12, batch 6 HighMem per-cpu: empty Free pages: 356kB (0kB HighMem) Active:27235 inactive:1107 dirty:0 writeback:0 unstable:0 free:89 slab:2285 mapped:27246 pagetables:124 DMA free:44kB min:44kB low:88kB high:132kB active:12636kB inactive:0kB present:16384kB protections[]: 0 0 0 Normal free:312kB min:312kB low:624kB high:936kB active:96304kB inactive:4428kB present:114624kB protections[]: 0 0 0 HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB protections[]: 0 0 0 DMA: 1*4kB 1*8kB 0*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 44kB Normal: 0*4kB 1*8kB 1*16kB 1*32kB 0*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 312kB HighMem: empty Swap cache: add 41897, delete 32333, find 8370/11490, race 0+0 Out of Memory: Killed process 11319 (ld).
forgot to mention that this is on a x86 (athlon). And just found out that -r10 is the latest 2.6.8 for x86 (though it seems to be not listed on packages.gentoo.org)
Can you please try with development-sources-2.6.10-rc3? I think it should be fixed there
tested with development-sources-2.6.10-rc3, problem seems to be fixed there.
Ok, could you please apply this patch against 2.6.9 and let us know if it fixes the problem? http://linux.bkbits.net:8080/linux-2.6/gnupatch@419e799emOm6PkSl70LCfk2UqdySNw
> Ok, could you please apply this patch against 2.6.9 and let us know if it fixes the problem? > > http://linux.bkbits.net:8080/linux-2.6/gnupatch@419e799emOm6PkSl70LCfk2UqdySNw Tried it against gentoo-dev-sources-2.6.9-r9, it fixes it.
Fixed in 2.6.9-r10