+2 votes
in Operating Systems by (71.8k points)
My VPS has 16GB RAM and 1GB Swap memory. How can I disable Swap memory completely on Debian Linux?

1 Answer

+2 votes
by (347k points)
selected by
 
Best answer

You can try one of the following two things to disable Swap memory.

1. Log in to your VPS as root and run the following command on the terminal.

swapoff -a

2. Log in to your VPS as root and edit the file /etc/fstab. Comment out the line for Swap entry in this file.

by (347k points)
If you want to enable it again, try the following command:

swapon -a

Related questions


...