dynamic allocation of swap disk space

From: Silviu Marin-Caea
Date: Mon May 10 2004 - 03:53:09 EST


It's the same old whine. Please include
http://sourceforge.net/projects/swapd/ or
http://sourceforge.net/projects/dynswapd/
or whatever in the official kernel.

My desktop has been thrashing the disk for a couple of hours because
the swap space was exhausted. And I have the ambition to leave it alone
to see if it ever comes out of the thrashing. Of course, it's not usable
at all during this time, I'm writing this on the laptop.

This is the only serious bug (I consider it a bug) in the linux kernel
that I encountered on occasions. And it was not fixed in 2.6. Forgot to
mention, my desktop is running 2.6.3.

The way I see the solution is: allocate swap space dynamically, until
there is no need for more or the disk becomes nearly full. If that
happens, then start thrashing it, all right. Then when the condition is
gone and things are back to normal deallocate the additional swap.

Old whine or not, it's a real problem. Thanks.

PS: I'm not subscribed.
-
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/