Ask Your Question
2

What happens with swap partition if I add more memory?

asked 2016-07-26 16:13:30 -0600

delacosta78 gravatar image

I currently have 2 gigabytes of RAM in my computer, but I'm gonna add 2 more gigabytes and I was wondering what could happen with the swap partition if it was created based on the current memory size, so my question is, do I have to resize the current swap partition to match the new memory size or there is no need to change anything?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2016-07-26 16:28:51 -0600

florian gravatar image

updated 2017-04-25 13:44:05 -0600

If you want to be able to hibernate your PC (suspend-to-disk), you will have to increase the Swap partition to at least match the RAM size.

If you don't want to use this feature, there is no immediate need of increasing swap. And, in case your swap gets filled up (free -h) so that your PC becomes unresponsive, you can either increase it or create a swap file of custom size on your / (slash root) partition, sometimes that's easier. Just monitor usage of swap and memory usage and then decide what to do.

edit flag offensive delete link more

Comments

I suppose to avoid any problems I should resize it to the new memory size...

delacosta78 gravatar imagedelacosta78 ( 2016-07-27 01:16:06 -0600 )edit

Really all depends on your usage. If you don't want to hibernate (I never do), and your swap doesn't fill up, you are good to go with 2GB.

florian gravatar imageflorian ( 2016-07-27 09:41:18 -0600 )edit

Is there an easy way to increase the swap partition size?

heybuddy gravatar imageheybuddy ( 2018-04-29 07:21:49 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2016-07-26 16:13:30 -0600

Seen: 169 times

Last updated: Apr 25 '17