moving psensor to gitlab news
[www.git] / www / tricks / raspberry_pi3_increase_swap_size.html
index e140845..db7a25c 100644 (file)
@@ -1,60 +1,55 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<meta name="generator" content="Asciidoctor 0.1.4">
+<meta charset="UTF-8">
+<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>Raspberry PI increase swap size</title>
+<meta name="generator" content="Asciidoctor 1.5.5">
+<title>Raspberry PI - increase swap size</title>
 <link rel="stylesheet" href="./../style.css">
-<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css">
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
 <script src="../nav.js"></script>
 </head>
 <body class="article">
 <div id="header">
-<h1>Raspberry PI increase swap size</h1>
+<h1>Raspberry PI increase swap size</h1>
 </div>
 <div id="content">
-<div id="preamble">
+<div class="sect1">
+<h2 id="_stop_the_swap">Stop the swap</h2>
 <div class="sectionbody">
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Stop the swap</p>
-</li>
-</ol>
-</div>
 <div class="listingblock">
 <div class="content">
-<pre>dphys-swapfile swapoff</pre>
+<pre>sudo dphys-swapfile swapoff</pre>
+</div>
 </div>
 </div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Modify the size of the swap</p>
-</li>
-</ol>
 </div>
+<div class="sect1">
+<h2 id="_modify_the_size_of_the_swap">Modify the size of the swap</h2>
+<div class="sectionbody">
 <div class="paragraph">
 <p>As <code>root</code>, edit the file <code>/etc/dphys-swapfile</code> and modify
-the variable <code>dphys-swapfile</code>:</p>
+the variable <code>CONF_SWAPSIZE</code>:</p>
 </div>
 <div class="listingblock">
 <div class="content">
 <pre>CONF_SWAPSIZE=1024</pre>
 </div>
 </div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Start the swap</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>To modify the swap file, edit the variable <code>CONF_SWAPFILE</code>, and run
+<code>dphys-swapfile setup</code> which will create and initialize the file.</p>
+</div>
 </div>
+</div>
+<div class="sect1">
+<h2 id="_start_the_swap">Start the swap</h2>
+<div class="sectionbody">
 <div class="listingblock">
 <div class="content">
-<pre>dphys-swapfile swapon</pre>
+<pre>sudo dphys-swapfile swapon</pre>
 </div>
 </div>
 </div>
@@ -62,8 +57,23 @@ the variable <code>dphys-swapfile</code>:</p>
 </div>
 <div id="footer">
 <div id="footer-text">
-Last updated 2016-12-21 23:53:00 UTC
-</div>
-</div>
+Last updated 2018-09-28 20:13:23 CEST
+</div>
+</div>
+<footer>
+        <ul>
+                <li><i class="fa fa-rss" aria-hidden="true"></i>
+                        Feed: <a href="https://wpitchoune.net/news/feed.xml">RSS 2.0</a>
+                </li>
+
+                <li><i class="fa fa-envelope" aria-hidden="true"></i>
+                    Email: <a href="mailto:jeanfi@gmail.com">jeanfi@gmail.com</a>
+                </li>
+
+                <li><i class="fa fa-git-square" aria-hidden="true"></i>
+                    Source repository: <a href="https://git.wpitchoune.net/gitweb">gitweb</a>
+                </li>
+        </ul>
+</footer>
 </body>
 </html>
\ No newline at end of file