Re: OOM problems on 2.6.12-rc1 with many fsx tests

Martin J. Bligh
2005-03-23T23:14:34Z

>> I run into OOM problem again on 2.6.12-rc1. I run some(20) fsx tests on
>> 2.6.12-rc1 kernel(and 2.6.11-mm4) on ext3 filesystem, after about 10
>> hours the system hit OOM, and OOM keep killing processes one by one.
>
> I don't have a very good record reading these oom dumps lately, but this
> one look really weird. Basically no mapped memory, tons of pagecache on
> the LRU.
>
> It would be interesting if you could run the same test on 2.6.11.

One thing I'm finding is that it's hard to backtrace who has each page
in this sort of situation. My plan is to write a debug patch to walk
mem_map and dump out some info on each page. I would appreciate ideas
on what info would be useful here. Some things are fairly obvious, like
we want to know if it's anon / mapped into address space (& which),
whether it's slab / buffers / pagecache etc ... any other suggestions
you have would be much appreciated.

I'm suspecting in many cases we don't keep enough info, and it would be
too slow to keep it in the default case - so I may need to add some
extra debug fields in struct page as a config option, but let's start
with what we have.

M.