+2 votes
in Operating Systems by (15.9k 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 (31.2k 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 (31.2k points)
If you want to enable it again, try the following command:

swapon -a

Related questions