Howdy!
Context: I've got 3 Proxmox 9.0.10 nodes clustered, each using a 256gb boot drive and a 2tb nvme drive with 32gb of ram. Guest storage sits on a single-disk zfs pool on each 2tb drive.
I'm not sure if this is just a 'local man doesn't understand swap' situation, but I've noticed some occasions of persistently high swap usage on my host nodes (50%-90%), which is surprising since ram on my host is mostly unallocated to guests. For example at time of writing, node 01 has 4gb of swap used while 23gb of ram is currently just being used for zfs' ARC. I'm under the impression swap should only be used if a machine is out of memory, while in this situation I'd just expect arc to be getting evicted to make space.
I've noticed several posts talking about swap as an optional thing - I was under the impression it was just 'a thing linux will have'. I guess questions here would be:
Are my assumptions right regarding how swap *should* work and how arc should be working here?
Assuming I have plenty of ram, would it make more sense here just to disable swap, if that's possible? And if so, how would I go about doing that on my hosts?
Context: I've got 3 Proxmox 9.0.10 nodes clustered, each using a 256gb boot drive and a 2tb nvme drive with 32gb of ram. Guest storage sits on a single-disk zfs pool on each 2tb drive.
I'm not sure if this is just a 'local man doesn't understand swap' situation, but I've noticed some occasions of persistently high swap usage on my host nodes (50%-90%), which is surprising since ram on my host is mostly unallocated to guests. For example at time of writing, node 01 has 4gb of swap used while 23gb of ram is currently just being used for zfs' ARC. I'm under the impression swap should only be used if a machine is out of memory, while in this situation I'd just expect arc to be getting evicted to make space.
I've noticed several posts talking about swap as an optional thing - I was under the impression it was just 'a thing linux will have'. I guess questions here would be:
Are my assumptions right regarding how swap *should* work and how arc should be working here?
Assuming I have plenty of ram, would it make more sense here just to disable swap, if that's possible? And if so, how would I go about doing that on my hosts?