Stop the swap
dphys-swapfile swapoff
Modify the size of the swap
As root
, edit the file /etc/dphys-swapfile
and modify
the variable dphys-swapfile
:
CONF_SWAPSIZE=1024
Start the swap
dphys-swapfile swapon
dphys-swapfile swapoff
As root
, edit the file /etc/dphys-swapfile
and modify
the variable dphys-swapfile
:
CONF_SWAPSIZE=1024
dphys-swapfile swapon