Re: [PATCH] Re: kswapd stuck using 100% CPU

From: Pekka Enberg
Date: Mon Mar 26 2012 - 06:41:09 EST

On Mon, Mar 26, 2012 at 12:32 PM, Mel Gorman <mel@xxxxxxxxx> wrote:
> On Sat, Mar 24, 2012 at 10:26:21AM -0400, Rik van Riel wrote:
>> Only test compaction_suitable if the kernel is built with CONFIG_COMPACTION,
>> otherwise the stub compaction_suitable function will always return
>> COMPACT_SKIPPED and send kswapd into an infinite loop.
>> Signed-off-by: Rik van Riel <riel@xxxxxxxxxx>
>> Reported-by: Anton Blanchard <anton@xxxxxxxxx>
> Acked-by: Mel Gorman <mel@xxxxxxxxx>

The API looks fragile and this patch isn't exactly making it any
better. Why don't we make compaction_suitable() return something other

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