Re: swappiness=0 makes software suspend fail.

From: Nick Piggin
Date: Mon May 31 2004 - 05:43:31 EST


Andrew Morton wrote:
Pavel Machek <pavel@xxxxxxx> wrote:

Right solution is to make sure that shrink_all_memory() works, no
matter how swappiness is set.


off-by-one in balance_pgdat() was the main problem.


I think it might be intentional, because 1/2 + 1/4 + ... + 1/4096 ~ 1.

If so, it instead needs fixing in try_to_free_pages, and a comment.
-
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/