[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nonblocking-vm.patch



On Wed, 4 Sep 2002, Andrew Morton wrote:

> We do need something in there to prevent kswapd from going berzerk.

Agreed, but it can be a lot simpler than your idea.

As long as we can free up to zone->pages_high pages,
we don't need to throttle since we're succeeding in
keeping enough pages free to not be woken up for a
while.

If we don't succeed in freeing enough pages, that is
because the pages are still under IO and haven't hit
the disk yet.  In this case, we need to wait for the
IO to finish, or at least for some of the pages to
get cleaned.  We can do this by simply refusing to
scan that zone again for a number of jiffies, say
1/4 of a second.

regards,

Rik
-- 
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/		http://distro.conectiva.com/

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/