How to disable swap?

Thing you could maybe look into:

  • recompile the kernel without support for paging of anonymous memory <- this is the method I would recommend

  • run swapoff -a #see swapoff --help

  • run swapoff in a systemd service wanted by local-fs-pre.target