Messages in this thread | | | Date | Mon, 10 May 2004 11:03:56 +0100 | From | John Bradford <> | Subject | Re: dynamic allocation of swap disk space |
| |
Hi,
Quote from "Silviu Marin-Caea" <silviu@genesys.ro>: > 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 RAM.
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.
John. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |