at pve > node > summary > node , swap usage has been at 90%+ on a few nodes . memory was in all cases at less the 50% .
I've noticed this just within the last month. We were busy with other issues so we just add swap. note we used to use zram , however had issues under some circumstances. to to add swap [ and there are other ways some better ]
* add swap on zfs rpool
* ext4
Now why swap usage got to very high usage is something to debug and fix. when I am caught up on projects we'll try removing extra swap on a test system etc.
Has anyone else seen swap usage very high?
I've noticed this just within the last month. We were busy with other issues so we just add swap. note we used to use zram , however had issues under some circumstances. to to add swap [ and there are other ways some better ]
* add swap on zfs rpool
Code:
zfs create -V 10G rpool/swap1
mkswap /dev/zvol/rpool/swap1
swapon /dev/zvol/rpool/swap1
# add to /etc/fstab :
echo "/dev/zvol/rpool/swap1 none swap sw 0 0" >> /etc/fstab
Code:
fallocate -l 8G /swapfile
chmod 0600 /swapfile
chown root:root /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
Now why swap usage got to very high usage is something to debug and fix. when I am caught up on projects we'll try removing extra swap on a test system etc.
Has anyone else seen swap usage very high?