Linux Swap partition
Discussion
The normal suggestion is that the linux swap should be double the memory size.
My Linux PC has 1Gig memory, do I really need to reserve 2Gig for swap??
It has a 40Gb HDD and enough free space so its not a problem to resize. Current swap 512Mb.
Just wondered how important this is with a large amount of memory??
Its, Mandrake 9.1 running on Athlon 1600+.
Cheers
Brian
My Linux PC has 1Gig memory, do I really need to reserve 2Gig for swap??
It has a 40Gb HDD and enough free space so its not a problem to resize. Current swap 512Mb.
Just wondered how important this is with a large amount of memory??
Its, Mandrake 9.1 running on Athlon 1600+.
Cheers
Brian
The suggestion dates back to when 16Mb was a lot of memory. I'm running with 1Gb of ram and 512Mb of swap - and it hardly swaps at all.
The ratio of CPU speed vs disk speed has grown a lot over recent years so you could notice massive slowdowns in performance when (if) swapping starts (depending partly if you're running as a workstation or a server, of course).
The ratio of CPU speed vs disk speed has grown a lot over recent years so you could notice massive slowdowns in performance when (if) swapping starts (depending partly if you're running as a workstation or a server, of course).
Historically Unix wanted a swap size of 2xRAM + a bit for contingency. In those days disk was far cheaper than memory, and memory was expensive.
An early machine I used was an ICL DRS3000. Had a 33 MHz 486 and 32 MB (yes 32 MB) and easily supported 6 users logged in with 3-4 sessions each. You couldn't p1ss in 32 MB these days.
Now, when I build Linux/Unix boxes I use a swap size just bigger than the RAM installed. That way if a system dump occurs the kernel can write out the full image to swap which can be recovered and analysed. Never needed to do this so it's superstition really. A well behaved Linux box with 512MB of RAM isn't going to get too stressed unless you want to forecast the weather or are running some serious enterprise stuff.
Dave
An early machine I used was an ICL DRS3000. Had a 33 MHz 486 and 32 MB (yes 32 MB) and easily supported 6 users logged in with 3-4 sessions each. You couldn't p1ss in 32 MB these days.
Now, when I build Linux/Unix boxes I use a swap size just bigger than the RAM installed. That way if a system dump occurs the kernel can write out the full image to swap which can be recovered and analysed. Never needed to do this so it's superstition really. A well behaved Linux box with 512MB of RAM isn't going to get too stressed unless you want to forecast the weather or are running some serious enterprise stuff.
Dave
I have 1GB RAM, and made 1GB swap too, although I RTFM and it said 2x RAM for swap.
Swap is only used (there's a graphical tool available for GTK www.gkrellm.net and another one comes with KDE), when I open large CAD-assemblies, or creating DIN A0 size postscripts at 300dpi.
Swap is only used (there's a graphical tool available for GTK www.gkrellm.net and another one comes with KDE), when I open large CAD-assemblies, or creating DIN A0 size postscripts at 300dpi.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



