[SOLVED] Should you have a SWAP?

Nov 27, 2023
234
55
28
Netherlands
daniel-doggy.com
Hello everyone,

I am running Proxmox VE 8 now for a couple of months on my production servers with the enterprise repo and it has been really stable so far.

My setup uses ZFS mirrors for both the root file system and the VM disks.
I have installed Proxmox VE 8.3 via the iso and after the installation I have removed the ARC max size of 16GB so that it can use up to 50% of the system RAM if it wants to. (And kept the minimum of 8GB.)
My server has 256GB of ECC RAM and the VMs + host uses at most 32GB to 64GB of RAM. (As of now but may increase overtime.)

My server has 8 total disks where only 6 of them are being used. (So basicly 2 spares/unused disks.)

My question is if it would be better to create a SWAP partition on a unused disks and if so how big?
I have found articles that advice to always use a SWAP partition as the linux kernal can decide where things are stored and SWAP not being just for running out of RAM but I do not know if this is also adviced for Proxmox VE.
Proxmox VE did not create a SWAP partition during install, but a would think this is due to me using ZFS and SWAP needing a partition directly on the disk and not through ZFS.

Thanks for all the help and advice in advance.