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

Nick Piggin
2008-06-11T06:15:49Z

On Wednesday 11 June 2008 16:00, Alexey Dobriyan 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.

Seems like you've got little or no anon pages left, so 1GB free swap
is no problem (nothing left to page out).

> 4G RAM, 1G swap partition, normally LTP survives during much, much higher
> load.

I would hope it is not a memory leak (which might point to lockless
pagecache). It doesn't look like it because there is still lots of
inactive file pages, so that points to the page reclaim changes
(which is not to say page reclaim changes couldn't cause a memory
leak themselves).

Curious: if you kill off all the LTP tests after the OOM condition,
what does your /proc/meminfo look like before and after running
sync ; echo 3 > /proc/sys/vm/drop_caches