Re: swappiness=0 makes software suspend fail.

From: Pavel Machek
Date: Sat May 29 2004 - 17:26:57 EST


Hi!

> >>Stefan, we may want to do echo 100 > /proc/sys/vm/swappiness in
> >>suspend script...
> >
> >
> >Really, you should save that value somewhere and then restore it after
> >suspend, or those people who do use /proc/sys/vm/swappiness will likely
> >complain about it (ie: me).
>
> Yes. This doesn't need to be done by the script. I'll change suspend2 so it
> saves and restores the value.

That's wrong solution.

Right solution is to make sure that shrink_all_memory() works, no
matter how swappiness is set.
Pavel
--
934a471f20d6580d5aad759bf0d97ddc
-
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/