regenerated
[www.git] / www / tricks / raspberry_pi3_increase_swap_size.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <meta name="generator" content="Asciidoctor 1.5.4">
8 <title>Raspberry PI - increase swap size</title>
9 <link rel="stylesheet" href="./../style.css">
10 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
11 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
12 <script src="../nav.js"></script>
13 </head>
14 <body class="article">
15 <div id="header">
16 <h1>Raspberry PI - increase swap size</h1>
17 </div>
18 <div id="content">
19 <div class="sect1">
20 <h2 id="_stop_the_swap">Stop the swap</h2>
21 <div class="sectionbody">
22 <div class="listingblock">
23 <div class="content">
24 <pre>dphys-swapfile swapoff</pre>
25 </div>
26 </div>
27 </div>
28 </div>
29 <div class="sect1">
30 <h2 id="_modify_the_size_of_the_swap">Modify the size of the swap</h2>
31 <div class="sectionbody">
32 <div class="paragraph">
33 <p>As <code>root</code>, edit the file <code>/etc/dphys-swapfile</code> and modify
34 the variable <code>dphys-swapfile</code>:</p>
35 </div>
36 <div class="listingblock">
37 <div class="content">
38 <pre>CONF_SWAPSIZE=1024</pre>
39 </div>
40 </div>
41 </div>
42 </div>
43 <div class="sect1">
44 <h2 id="_start_the_swap">Start the swap</h2>
45 <div class="sectionbody">
46 <div class="listingblock">
47 <div class="content">
48 <pre>dphys-swapfile swapon</pre>
49 </div>
50 </div>
51 </div>
52 </div>
53 </div>
54 <div id="footer">
55 <div id="footer-text">
56 Last updated 2016-12-22 00:24:00 UTC
57 </div>
58 </div>
59 </body>
60 </html>