-
-
-
-
Stop the swap
-
-
Stop the swap
+dphys-swapfile swapoff+
sudo dphys-swapfile swapoff+
-
-
-
-
Modify the size of the swap
-
-
Modify the size of the swap
+As root
, edit the file /etc/dphys-swapfile
and modify
-the variable dphys-swapfile
:
CONF_SWAPSIZE
:
CONF_SWAPSIZE=1024
-
-
-
-
Start the swap
-
-
To modify the swap file, edit the variable CONF_SWAPFILE
, and run
+dphys-swapfile setup
which will create and initialize the file.
Start the swap
+dphys-swapfile swapon+
sudo dphys-swapfile swapon+