Messages in this thread | | | Date | Wed, 26 May 2004 11:46:06 +0100 | From | John Bradford <> | Subject | Re: why swap at all? |
| |
Quote from Nick Piggin <nickpiggin@yahoo.com.au>: > John Bradford wrote: > > Quote from Nick Piggin <nickpiggin@yahoo.com.au>: > > > >>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.
Strictly speaking no, but instead of replacing unused memory with often used memory, the often used memory has it's own silicon, so the unused memory can stay paged in as well.
Or to put it another way, however much swap a machine has, installing that much extra physical RAM, and removing the swap space will almost never cause a loss in performance. There are some theoretical cases where it would, such as where adding extra physical RAM requires the use of different memory addressing schemes, and some data which would have, by chance, resided in more quickly accessible RAM before the upgrade no longer does, but those scenarios are not really anything to do with the original discussion.
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/
| |