On Proxmox 8,4 the following two Commands set swappiness permanent to 0:
sysctl -w vm.swappiness=0
echo "vm.swappiness=0" | tee -a /etc/sysctl.conf
The value stays 0 after Reboot. On Proxmox 9 it does not save it permanent. After Reboot it is 60 again
sysctl -w vm.swappiness=0
echo "vm.swappiness=0" | tee -a /etc/sysctl.conf
The value stays 0 after Reboot. On Proxmox 9 it does not save it permanent. After Reboot it is 60 again