added trick about increasing the swap size on raspberry
[www.git] / src / tricks / raspberry_pi3_increase_swap_size.adoc
1 = Raspberry PI increase swap size
2 :docinfo2:
3 :icons: font
4
5 1. Stop the swap
6
7 ----
8 dphys-swapfile swapoff
9 ----
10
11 2. Modify the size of the swap
12
13 As `root`, edit the file `/etc/dphys-swapfile` and modify
14 the variable `dphys-swapfile`:
15
16 ----
17 CONF_SWAPSIZE=1024
18 ----
19
20 3. Start the swap
21
22 ----
23 dphys-swapfile swapon
24 ----