Ask a question »

Linux - disable paging

November 2015

[Linux] disable Paging


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


If you wish to have more information about paging or virtual memory, please refer to these links:
For unlimited offline reading, you can download this article for free in PDF format:

See also

In the same category

Published by jak58.
This document entitled « Linux - disable paging » from CCM ( 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.