Linux - disable paging

August 2016




Intro


Disable paging on Linux



Under Linux, swap (pagefile) is used if your RAM is unsufficient (if the RAM is really running out) . But once the RAM is free, the swap is still active.
  • If for any reason you want to disable the use the command (as root):
    • swapoff -a
    • This may take a few moments.
  • To activate swap again use the following command:
    • swapon -a

Notes


If you wish to have more information about paging or virtual memory, please refer to these links:

See also :

This document entitled « Linux - disable paging » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.