X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Ftricks%2Fraspberry_pi3_increase_swap_size.adoc;fp=src%2Ftricks%2Fraspberry_pi3_increase_swap_size.adoc;h=7bc48512cb091faf1051bddf809763f7ae01c0df;hb=f253ec84873310ce48caa1bc0f5ce7f52fbe05ea;hp=0000000000000000000000000000000000000000;hpb=c26257e5e85cc05041713179c4cefd150ad85478;p=www.git diff --git a/src/tricks/raspberry_pi3_increase_swap_size.adoc b/src/tricks/raspberry_pi3_increase_swap_size.adoc new file mode 100644 index 0000000..7bc4851 --- /dev/null +++ b/src/tricks/raspberry_pi3_increase_swap_size.adoc @@ -0,0 +1,24 @@ += Raspberry PI increase swap size +:docinfo2: +:icons: font + +1. Stop the swap + +---- +dphys-swapfile swapoff +---- + +2. Modify the size of the swap + +As `root`, edit the file `/etc/dphys-swapfile` and modify +the variable `dphys-swapfile`: + +---- +CONF_SWAPSIZE=1024 +---- + +3. Start the swap + +---- +dphys-swapfile swapon +---- \ No newline at end of file