Marcelo, On Thu, 2004-10-28 at 10:06 -0200, Marcelo Tosatti wrote: > Can you please test Rik's patch with your spurious OOM kill testcase? I have similar problems with hackbench on a PIII/Celeron 300MHz, 128MB RAM. Also Rik's patch does not help. I have the impression that it makes almost no difference whether swap is on or not. With swap on, oom-killer even kills rpc.mountd when it prints out that 56MB memory are available. It happens on 2.6.8.1 too. On 2.6.7 I can run hackbench 40 without any problem. Full logs are attached. tglx Running hackbench 40, with swap on, I get oom-killer: gfp_mask=0xd0 Free pages: 356kB (0kB HighMem) Out of Memory: Killed process 1030 (portmap). oom-killer: gfp_mask=0xd0 Free pages: 6684kB (0kB HighMem) Out of Memory: Killed process 1182 (atd). oom-killer: gfp_mask=0xd0 Free pages: 17076kB (0kB HighMem) Out of Memory: Killed process 1173 (sshd). oom-killer: gfp_mask=0xd0 Free pages: 20160kB (0kB HighMem) Out of Memory: Killed process 1191 (bash). - That's the shell on which hackbench was started oom-killer: gfp_mask=0xd0 Free pages: 56544kB (0kB HighMem) Out of Memory: Killed process 1149 (rpc.mountd). Switching swap off, I get oom-killer: gfp_mask=0xd0 Free pages: 404kB (0kB HighMem) Out of Memory: Killed process 1031 (portmap). oom-killer: gfp_mask=0xd0 Free pages: 356kB (0kB HighMem) Out of Memory: Killed process 1169 (atd). oom-killer: gfp_mask=0xd0 Free pages: 792kB (0kB HighMem) Out of Memory: Killed process 1160 (sshd). oom-killer: gfp_mask=0xd0 Free pages: 2340kB (0kB HighMem) Out of Memory: Killed process 1178 (bash). - That's the shell on which hackbench was started