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

1 Answer

0 votes
by (33.7k points)

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 (33.7k points)
If you want to enable it again, try the following command:

swapon -a

Related questions