I ordered some addon RAM a few days ago to install on my Ubuntu 10.10 stationary computer and while giving it some thought, I remember that I previously did change the SWAP memory file size on a XP computer after doing a RAM upgrade in the past.
Should I change the SWAP memory size (increase?) after installing more RAM into my computer?
The swap partition is used to
Therefore, if you will be using hibernation, you should have a swap at least as big as your RAM, and a bit more just in case.
A rule of thumb is to make a swap partition as big as twice your RAM but not go over 3GB (because you will be wasting space).
It is OK to create a second swap partition and have them both active. Linux uses them as if they were a continuous swap partition, so it is fine.
Typically, if you have over 3GB of RAM, then you will notice that Ubuntu will not have a use of your swap. Run the
free
command and notice the value forSwap:
+used
. In most cases it just stays to 0.Only if you think you are going to need it. If you are going to hibernate the machine, you need the swap at least as big as your ram.
More Info can be found at this Ubuntu FAQ on Swap Space . It also talks about how to change/add space.