Re: [patch 05/19] split LRU lists into anon & file sets

Rik van Riel
2008-01-31T10:48:44Z

On Thu, 31 Jan 2008 10:17:48 +0900
KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:

> on my test environment, my patch solve incorrect OOM.
> because, too small reclaim cause OOM.

That makes sense.

The version you two are looking at can return
"percentages" way larger than 100 in get_scan_ratio.

A fixed version of get_scan_ratio, where the
percentages always add up to 100%, makes the
system go OOM before it seriously starts
swapping.

I will integrate your fixes with my code when I
get back from holidays. Then things should work :)

Thank you for your analysis of the problem.