Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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 at 7:23
1  
That's true for hibernation. Thank it added your suggestion. –  chaos Feb 26 at 7:52

Your Answer

 
discard

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.