Re: dynamic allocation of swap disk space
From: John Bradford
Date: Mon May 10 2004 - 05:01:32 EST
Quote from "Silviu Marin-Caea" <silviu@xxxxxxxxxx>:
> 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.
Very bad idea in my opinion.
Over allocating swap space is a BAD practice, but the effects are usually not
as apparent as under allocating swap space, and such a system works most of
the time, albeit often not as efficiently as it could do. The solution is to
allocate the correct amount of swap space. How much is that? There is not
really a simple answer, and it's certainly not as simple as twice the physical
A run-away process on a server with too much swap may well cause the machine
to become very unresponsive, whereas if the amount of virtual memory available
had been little more than what was expected to be required, the run-away
process would have terminated, allowing the problem to be fixed with minimal
disruption to other services.
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/