Linux how much swap space do you have?

How much swap space do you have on your Linux machines?

I have 3gb ram and fedora x64 and am wondering how much space I should allocate for SWAP
 
I have 4 GB of RAM, 64-bit Fedora & Arch, and I have allocated around 3.2 GB to swap.. I was using 8 GB RAM for a month, still the swap was 3.2 GB.. no problems yet..
 
Swap Space : - Double the memory size if Ram is < 3.2Gb. ( ~4Gb Swap Size )

Add 2 to the memory size if ram is > 3.2Gb. ( ~5gb swap size)
 
I have never seen much of the swap space being used even with a computer with just 2GB of RAM. What is the point of reserving so much of space for SWAP? On my Netbook, I have 2 GB of RAM and just 1GB swap and I have never seen swap usage go above 30-40%.
 
I've got 4 GB RAM at home and 8 GB RAM in the office. I've just got 2 GB swap and don't notice any performance issues. Plus the swap is hardly used anyway whenever I check it :)
 
vishalrao said:
I've got 4 GB RAM at home and 8 GB RAM in the office. I've just got 2 GB swap and don't notice any performance issues. Plus the swap is hardly used anyway whenever I check it :)
:eek:hyeah: even I have never noticed the swap being used ever when I was using Ubuntu on my desktop which has 2Gb ram and 2Gb swap space..
 
mostly swap is not found used on linux systems even though we meticulously configure it. Have read somewhere that we have set priority, etc. and ensure at least once that swap is usable on the system.

normally RAM Size x 1.5 should be the size of swap. If you have above 6GB RAM, swap may not be required, normally.
 
Prole73 said:
mostly swap is not found used on linux systems even though we meticulously configure it. Have read somewhere that we have set priority, etc. and ensure at least once that swap is usable on the system.
normally RAM Size x 1.5 should be the size of swap. If you have above 6GB RAM, swap may not be required, normally.
nice :)

do you have link to that article ?
 
Good point about hibernate/suspend/resume, yes you probably need swap, and yes, unless distro's support hibernating to other partitions... which I have no clue about coz I don't bother hibernating with SSDs in my desktop and laptop :p
 
All you guys could try doing "swapoff -a". It should generally enhance performance and your desktop should generally zip through. I have been reading a lot of discussions on LLKML that swap is generally unnecessary for >3GB RAM. In fact if you are using your machine to run MySQL/Postgresql, it is recommended that you keep 0 swap.
 
Depends on the use pattern.. If you want hibernation, then you should allocate >= size of your ram.

I have 3 GB on 64 bit and a 500 MB swap. It hardly touches even 100 MB. KDE46-Gentoo.
 
Back
Top