Bruce Marshall wrote:
On Sunday 06 March 2005 09:17 pm, John Sowden wrote:
Actually, I thought this was a great question that only one person came close to answering. Is there a defined set of tradeoffs when expanding the swap size, in relation to RAM, taking into consideration CPU speed and possibly other variables that I am not aware of. If, instead of using the 2X rule for sizing a swap partition, we went to a 4X or 6X size, would the paging overhead not justify the expanded swap size, in terms of increasing performance?
The best swap area you can have is one that doesn't get used. The size of the swap area should be immaterial as long as it is large enough to handle all of the swap. But if you are swapping a lot, you should look elsewhere for performance gains. (as in increasing your RAM...)
One situation I had in mind, was processing huge data files, so large that you wouldn't want to pay for all that RAM. Is processing it in memory space easier than doing the file I/O, to process it in chunks?