0

I want to migrate from windows to Ubuntu, so I decided that I want to install Ubuntu 16.04.

I have a hard drive with 5400 rpm and 16 GB RAM, how big should swap partition be?

I don't know the purpose of swap partition, but I've heard that is a need for hibernate and other stuff.

Thanks in advance for answers!

Charles Green
  • 21,859
yierstem
  • 103

1 Answers1

0

In simple terms, the swap partition or swap file is used when your installed memory is full and instead of the computer crashing it will place some of its memory in the swap partition.

The swap partition is also used during hibernation. All of the information in memory will be written to the swap partition so the computer does not 'forget' what it was doing when the computer goes into hibernation.

The general rule for swap partition size is equal to the amount of installed memory. In your case 16GB. There must be enough space to write everything in memory during hibernation.

If you do not use hibernation you can decrease (or increase) your swap size. Remember that when the computer uses swap instead of installed memory it will be much slower because reading from a disk take much longer that memory.

jc__
  • 198