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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>