Problem: AppVMs swap by default (swappiness = 60) which is inefficient if you have enough RAM. Example:
MiB Mem : 5923.7 total, 1223.8 free, 3793.0 used, 1164.4 buff/cache
MiB Swap: 1024.0 total, 475.3 free, 548.7 used. 2130.7 avail Mem
Swap can’t be disabled due to balooning. Therefore I am setting swappiness to zero in all templateVMs. I also tend to turn off memory balancing in most of my active qubes.
echo vm.swappiness = 0 > /etc/sysctl.d/99-swappiness.conf
There’s also a good thread How To Turn Off Swap & The Cost Of Doing So? which ends with the conclusion to use ZRAM How To Set And Use ZRAM swap