To disable memory swapping you can use the following command:
1 |
swapoff -va |
In order to make changes permanent you should change
1 |
/etc/fstab |
example:
from
1 2 3 4 5 6 7 |
proc /proc proc defaults 0 0 # /dev/md/0 UUID=3d2a2e59-f6db-4c9d-8136-42b607db5b9f none swap sw 0 0 # /dev/md/1 UUID=d360809a-32ac-4bb6-b4d4-b1308daa0567 /boot ext3 defaults 0 0 # /dev/md/2 UUID=edbdbb0c-610e-46a0-8fbe-23a8b63e59a0 / ext4 defaults,usrquota,grpquota 0 0 |
to
1 2 3 4 5 6 7 |
proc /proc proc defaults 0 0 # /dev/md/0 # UUID=3d2a2e59-f6db-4c9d-8136-42b607db5b9f none swap sw 0 0 # /dev/md/1 UUID=d360809a-32ac-4bb6-b4d4-b1308daa0567 /boot ext3 defaults 0 0 # /dev/md/2 UUID=edbdbb0c-610e-46a0-8fbe-23a8b63e59a0 / ext4 defaults,usrquota,grpquota 0 0 |
More info:
https://www.geeksforgeeks.org/how-to-permanently-disable-swap-in-linux/