added trick about increasing the swap size on raspberry
[www.git] / src / tricks / raspberry_pi3_increase_swap_size.adoc
diff --git a/src/tricks/raspberry_pi3_increase_swap_size.adoc b/src/tricks/raspberry_pi3_increase_swap_size.adoc
new file mode 100644 (file)
index 0000000..7bc4851
--- /dev/null
@@ -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