1

Is setting in /etc/sysctl.conf:

vm.swappiness=0

equivalent (except that it's persistent) to running swapoff -a, *in Linux kernels >= 3.5?


*in earlier kernel versions, 0 meant 'no swapping until out of memory'.

0

No.

swapoff -a completely turns off swapping.
swappiness=0 tells the kernel to avoid swapping processes out of physical memory for as long as possible

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.