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? -- John Sowden American Sentry Systems. Inc. 1221 Andersen Drive San Rafael, CA 94901 U.L. Listed Central Station Alarm Service Serving the San Francisco Bay Area Since 1967 mail@americansentry.net http://www.americansentry.net
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...)
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?
James, On Monday 07 March 2005 07:12, James Knott wrote:
...
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?
Applications that deal in very large data sets (and are well written) are usually designed not to need to have all their data in primary storage (RAM / paging store) at the same time. Randall Schulz
On Monday 07 March 2005 17:12, James Knott wrote:
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?
USually applications that access large files use memory-mapping via the mmap() call. The mmap() call converts an open file into a pseudo memory area. Accessing this memory area causes the kernel to do the necessary file I/O transparently. SGI had a whole host of video processing applications that used this technique. Regards Paul -- Paul Hewlett (Linux #359543) Email:`echo az.oc.evitcaten@ttelweh | rev` Tel: +27 21 852 8812 Cel: +27 72 719 2725 Fax: +27 86 672 0563 --
The Sunday 2005-03-06 at 18:17 -0800, 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,
That 2X rule was for windows, it does not apply here. In Linux, it is very empiric.
we went to a 4X or 6X size, would the paging overhead not justify the expanded swap size, in terms of increasing performance?
The performance would depend on what applications are involved. If swapping occurs too often, processing is slow and you need more RAM memory. If you only need a huge memory now and then, it may make more sense to increase swap. It depends on each case. As I mentioned, I have one computer with a 24X relation... -- Cheers, Carlos Robinson
participants (6)
-
Bruce Marshall
-
Carlos E. R.
-
James Knott
-
John Sowden
-
Paul Hewlett
-
Randall R Schulz