Re: why swap at all?

From: Nick Piggin
Date: Wed May 26 2004 - 04:49:53 EST


John Bradford wrote:
Quote from Nick Piggin <nickpiggin@xxxxxxxxxxxx>:

Even for systems that don't *need* the extra memory space, swap can
actually provide performance improvements by allowing unused memory
to be replaced with often-used memory.


That's true, but it's not a magical property of swap space - extra physical
RAM would do more or less the same thing.


Well it is a magical property of swap space, because extra RAM
doesn't allow you to replace unused memory with often used memory.

The theory holds true no matter how much RAM you have. Swap can
improve performance. It can be trivially demonstrated.
-
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/