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>
14 <body class="article">
16 <h1>Raspberry PI - increase swap size</h1>
20 <h2 id="_stop_the_swap">Stop the swap</h2>
21 <div class="sectionbody">
22 <div class="listingblock">
24 <pre>dphys-swapfile swapoff</pre>
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>
36 <div class="listingblock">
38 <pre>CONF_SWAPSIZE=1024</pre>
44 <h2 id="_start_the_swap">Start the swap</h2>
45 <div class="sectionbody">
46 <div class="listingblock">
48 <pre>dphys-swapfile swapon</pre>
55 <div id="footer-text">
56 Last updated 2016-12-22 00:24:00 UTC