Re: [PATCH] improving oom detection in rmap10c.

From: Rik van Riel (
Date: Mon Jan 07 2002 - 18:41:18 EST

On Mon, 7 Jan 2002, Ed Tomlinson wrote:

> I did not think this would solve all the OOM problems.

> Hope your audit discloses other problems.

OK, a silly one in try_to_free_pages(), I think there are some
code paths where we can end up calling the thing, sleeping for
a bit on some lock and then ending up not having to do any work,
because another thread already did this. In that case, 'ret'
will be zero, so I've changed the code below ...

        if (!ret)

... to the following:

        if (!ret && free_low(ALL_ZONES) > 0)

This will be part of rmap-11 ;)



Shortwave goes a long way:  #swl

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:37 EST