Linux - disable paging

April 2018


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:
Published by jak58. Latest update on April 18, 2010 at 06:58 AM by jak58.
This document, titled "Linux - disable paging," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (
Installing Opera 10 under Ubuntu 9.04 (Jaunty)
Mandriva- Easy Urpmi