4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="Asciidoctor 0.1.4">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <title>Raspberry PI increase swap size</title>
8 <link rel="stylesheet" href="./../style.css">
9 <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css">
10 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
11 <script src="../nav.js"></script>
13 <body class="article">
15 <h1>Raspberry PI increase swap size</h1>
19 <div class="sectionbody">
20 <div class="olist arabic">
27 <div class="listingblock">
29 <pre>dphys-swapfile swapoff</pre>
32 <div class="olist arabic">
35 <p>Modify the size of the swap</p>
39 <div class="paragraph">
40 <p>As <code>root</code>, edit the file <code>/etc/dphys-swapfile</code> and modify
41 the variable <code>dphys-swapfile</code>:</p>
43 <div class="listingblock">
45 <pre>CONF_SWAPSIZE=1024</pre>
48 <div class="olist arabic">
55 <div class="listingblock">
57 <pre>dphys-swapfile swapon</pre>
64 <div id="footer-text">
65 Last updated 2016-12-21 23:53:00 UTC