I am going to remake a server with Ubuntu 20.04
It will have 6 GB of RAM, a 20 GB SSD for the operating system, and a 100 GB SSD for data.
Should we make a SWAP partition ?
If so, how many GB are needed ?
Thank you
I am going to remake a server with Ubuntu 20.04
It will have 6 GB of RAM, a 20 GB SSD for the operating system, and a 100 GB SSD for data.
Should we make a SWAP partition ?
If so, how many GB are needed ?
Thank you
It is not a mandatory requirement to have a swap partition and the system will operate without it, however, it is recommended to have one.
There are many different formulas and methods for calculating how much swap space you will need. Some say 1.5x your RAM, some say 2x your RAM, and some give a fixed amount (e.g. 8GB). You will need to assess the intended purpose for the system, what type of applications you intend to run, and the resource usage of the system.
Now, this part is purely my 2c here. If you have 6GB, I'd suggest a 12GB swap partition. This will allow the system enough space to dump the RAM into swap and some overhead.