Re: [PATCH -v2 -mm] add extra free kbytes tunable

From: Rik van Riel
Date: Thu Oct 13 2011 - 00:36:20 EST


On 10/12/2011 04:21 PM, David Rientjes wrote:
On Wed, 12 Oct 2011, Rik van Riel wrote:

How would this scheme work?


I suggested a patch from BFS that would raise kswapd to the same priority
of the task that triggered it (not completely up to rt, but the highest
possible in that case) and I'm waiting to hear if that helps for Satoru's
test case before looking at alternatives. We could also extend the patch
to raise the priority of an already running kswapd if a higher priority
task calls into the page allocator's slowpath.

This has the distinct benefit of making kswapd most active right
at the same time the application is most active, which returns
us to your first objection to the extra free kbytes patch (apps
will suffer from kswapd cpu use).

Furthermore, I am not sure that giving kswapd more CPU time is
going to help, because kswapd could be stuck on some lock, held
by a lower priority (or sleeping) context.

I agree that the BFS patch would be worth a try, and would be
very pleasantly surprised if it worked, but I am not very
optimistic about it...

--
All rights reversed
--
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/