Is setting in /etc/sysctl.conf:


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'.



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

| improve this answer | |

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.