Re: [PATCH 1/2] mm: vmscan: Avoid direct reclaim scanning atmaximum priority

From: Andrew Morton
Date: Wed Jun 26 2013 - 15:39:32 EST


On Wed, 26 Jun 2013 13:39:23 +0100 Mel Gorman <mgorman@xxxxxxx> wrote:

> Page reclaim at priority 0 will scan the entire LRU as priority 0 is
> considered to be a near OOM condition. Direct reclaim can reach this
> priority while still making reclaim progress. This patch avoids
> reclaiming at priority 0 unless no reclaim progress was made and
> the page allocator would consider firing the OOM killer. The
> user-visible impact is that direct reclaim will not easily reach
> priority 0 and start swapping prematurely.

That's a bandaid.

Priority 0 should be a pretty darn rare condition. How often is it
occurring, and do you know why?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/