regenerated with asciidoctor instead of asciidoc
[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="olist arabic">
20 <ol class="arabic">
21 <li>
22 <p>Stop the swap</p>
23 </li>
24 </ol>
25 </div>
26 <div class="listingblock">
27 <div class="content">
28 <pre>dphys-swapfile swapoff</pre>
29 </div>
30 </div>
31 <div class="olist arabic">
32 <ol class="arabic">
33 <li>
34 <p>Modify the size of the swap</p>
35 </li>
36 </ol>
37 </div>
38 <div class="paragraph">
39 <p>As <code>root</code>, edit the file <code>/etc/dphys-swapfile</code> and modify
40 the variable <code>dphys-swapfile</code>:</p>
41 </div>
42 <div class="listingblock">
43 <div class="content">
44 <pre>CONF_SWAPSIZE=1024</pre>
45 </div>
46 </div>
47 <div class="olist arabic">
48 <ol class="arabic">
49 <li>
50 <p>Start the swap</p>
51 </li>
52 </ol>
53 </div>
54 <div class="listingblock">
55 <div class="content">
56 <pre>dphys-swapfile swapon</pre>
57 </div>
58 </div>
59 </div>
60 <div id="footer">
61 <div id="footer-text">
62 Last updated 2016-12-21 23:53:00 UTC
63 </div>
64 </div>
65 </body>
66 </html>