author+date
[www.git] / src / tricks / raspberry_pi3_increase_swap_size.adoc
1 = Raspberry PI - increase swap size
2 :docinfo2:
3 :icons: font
4
5 == Stop the swap
6
7 ----
8 sudo dphys-swapfile swapoff
9 ----
10
11 == Modify the size of the swap
12
13 As `root`, edit the file `/etc/dphys-swapfile` and modify
14 the variable `CONF_SWAPSIZE`:
15
16 ----
17 CONF_SWAPSIZE=1024
18 ----
19
20 To modify the swap file, edit the variable `CONF_SWAPFILE`, and run
21 `dphys-swapfile setup` which will create and initialize the file.
22
23 == Start the swap
24
25 ----
26 sudo dphys-swapfile swapon
27 ----