Swap on debian templates

I want to make sure that my debian template has a fast configuration. Occasionally some appvms became slow, when I was looking for a cause, I’ve noticed that swap has become active.

Is this something that should be on by default? What swap size is chosen by the template or is it automatic?

you can reduce the swap usage priority with sysctl vm.swappiness=5 which will reduce the incentive to use swap by the kernel. However, if you don’t want swap, just increase the qube memory. Disabling the swap entirely may lead to issues like soft locked system when running out of memory.