How to disable all swaps on Linux

How to disable all swaps on Linux to force the application/kernel use the physical memory?

asked Jan 21, 2013 by anonymous
edited Jan 24, 2013

1 Answer

 
Best answer

To diable all swaps on Linux, run this command as root:

# swapoff -a

-a means all swaps.

answered Jan 21, 2013 by anonymous
edited Jan 21, 2013 by SA

Similarly, to enable all swaps on Linux:

# swapon -a
commented Jan 21, 2013 by SA (14,760 points)

Please log in or register to answer this question.

Related questions

0 answers
1 answer
asked Jan 24, 2013 by anonymous
1 answer
asked Jan 24, 2013 by anonymous
0 answers
1 answer
Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...