vm.swappiness=1 - set swapiness to lowest setting - still useful? (swappiness-lowest)

Let the kernel only swap if it is absolutely necessary.
Better not be set to zero:

My experience back then was that swapping to disk can make a system unnecessarily slow.

Does this (still) make sense?

Another package with just a single configuration file.


Even ignoring any performance changes, swap can be a security issue since it writes parts of memory to disk.

1 Like

If one can afford to run without any swap, if one can afford to buy enough RAM, assign enough RAM to host and VMs, and doesn’t require any swap then of course this is preferred.

However, swap cannot be avoided for all users in all cases, see swap - swap file - Whonix-Gateway freezing during apt-get dist-upgrade - encrypted swap-file-creator.

Therefore even if the suggestion to not use swap makes a lot sense an answer for this forum thread would still be desirable.


Merged into security-misc now.

1 Like
[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Contributors] [Investors] [Priority Support] [Professional Support]