Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I installed Ubuntu 13.10 I just ran through the default setup. Since then, I have decided to upgrade my physical memory.

My question is, Will Ubuntu auto-adjust the default swap size to match the new memory.

If not, how do I adjust it myself?

share|improve this question

No, it will not change it's size because of upgrading/changing the physical memory.

The swap system in linux is a separate partition type "Linux swap" (82). To change this it would be the easiest way to boot from a GParted live system. With this you can decrease the size of your root partition and increase the size of the swap partition. GPArted is very easy to use and self-explanatory.

But notice, when you upgraded your systems physical memory (I assume you increased it) it is not neccessary to increase the swap partition. Swap is only needed when your physical memory is full or when your hibernate the system (must be at least as big as your ram size)

share|improve this answer
What about suspend? Shouldn't swap be at least as big as RAM? – landroni Feb 26 '14 at 7:23
That's true for hibernation. Thank it added your suggestion. – chaos Feb 26 '14 at 7:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.