Ubuntu – What swapfile size to make? I have 4GB RAM

14.04memory usageramswap

Very often I am out of memory. I noticed that I don't have a swapfile. What size should I choose? I have 4GB RAM.

Programs I use are: Firefox, Thunderbird, Grive, Android Studio, that's it, still my laptop freezes pretty often.

Best Answer

Swap of 500 MB to 1 GB should be fine. I made swap of 500 MB at the time of installation and have not faced any problem so far. I have 2 GB RAM.