Re: 2.6.26-rc5-mm2: OOM with 1G free swap

Nick Piggin
2008-06-11T06:31:33Z

On Wednesday 11 June 2008 16:27, Andrew Morton wrote:
> On Wed, 11 Jun 2008 10:00:29 +0400 Alexey Dobriyan <adobriyan@gmail.com>
wrote:
> > On Mon, Jun 09, 2008 at 10:31:45PM -0700, Andrew Morton wrote:
> > > - This is a bugfixed version of 2.6.26-rc5-mm1 - mainly to repair a
> > > vmscan.c bug which would have prevented testing of the other vmscan.c
> > > bugs^Wchanges.
> >
> > OOM condition happened with 1G free swap.
>
> Thanks for testing. Again.
>
> > 4G RAM, 1G swap partition, normally LTP survives during much, much higher
> > load.
> >
> > vm.overcommit_memory = 0
> > vm.overcommit_ratio = 50
>
> Well I assume that Rik ran LTP. Perhaps a merge problem.
>
> > ...
> >
> > [ 6773.608125] init invoked oom-killer: gfp_mask=0x1201d2, order=0,
> > oomkilladj=0
>
> GFP_USER
>
> > [ 6773.608215] Pid: 1, comm: init Not tainted 2.6.26-rc5-mm2 #2
>
> wot? The oom-killer isn't supposed to kill init!

It is init that invokes the OOM killer, the actual process killed
comes at the end I believe:

[...]

> > [ 6773.631799] Out of memory: kill process 4788 (sshd) score 11194 or a
> > child [ 6773.631876] Killed process 4789 (bash)