<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Swap File</title><link>https://sourceforge.net/p/peppermintos/pepwiki/Swap%2520File/</link><description>Recent changes to Swap File</description><atom:link href="https://sourceforge.net/p/peppermintos/pepwiki/Swap%20File/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 19 Aug 2024 00:54:12 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/peppermintos/pepwiki/Swap%20File/feed" rel="self" type="application/rss+xml"/><item><title>Swap File modified by Peppermint OS</title><link>https://sourceforge.net/p/peppermintos/pepwiki/Swap%2520File/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -24,6 +24,8 @@

 `/swapfile swap swap defaults 0 0`

+These next steps are ran in terminal
+
 `sudo swapon --show`

 ~~~
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peppermint OS</dc:creator><pubDate>Mon, 19 Aug 2024 00:54:12 -0000</pubDate><guid>https://sourceforge.net0c769a80bc0705f1cd115442b8901604e2de8e19</guid></item><item><title>Discussion for Swap File page</title><link>https://sourceforge.net/p/peppermintos/pepwiki/Swap%2520File/?limit=25#882e</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Much simpler is another way.  I just installed the package &lt;strong&gt;dphys-swapfile&lt;/strong&gt;&lt;br/&gt;
and it autoaticly generated a swapfile with 2GB and activated it.&lt;br/&gt;
This is, when you have not much physical  RAM. The swap space is much slower than pysical RAM.&lt;/p&gt;
&lt;p&gt;I use a SSD Disk, so no problem.&lt;/p&gt;
&lt;p&gt;to show it:&lt;br/&gt;
sudo swapon --show&lt;/p&gt;
&lt;p&gt;NAME      TYPE SIZE USED PRIO&lt;br/&gt;
/var/swap file   2G 768K   -2&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan Z</dc:creator><pubDate>Tue, 12 Sep 2023 09:17:23 -0000</pubDate><guid>https://sourceforge.net613919f5c4f544e0ae77177b7748afd66b13ba64</guid></item><item><title>Swap File modified by &lt;REDACTED&gt;</title><link>https://sourceforge.net/p/peppermintos/pepwiki/Swap%2520File/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,3 +1,5 @@
+**Addendum** 15 June 2023: cavypmos video guide: https://www.youtube.com/watch?v=Bf3j0QlrSs8
+
 How to create a swap file, open a terminal and enter (best to copy and paste) the following commands individually.

 Do not use this method if you already have a functional machine set up with a swap partition. I do not include a swap partition with my install, favouring a swap file post install during the configuration of my computer.
&lt;/pre&gt;
&lt;/div&gt;</description><pubDate>Thu, 15 Jun 2023 08:09:33 -0000</pubDate><guid>https://sourceforge.net26a7e21007b33ae7191cde415164e5106d57ecef</guid></item><item><title>Swap File modified by &lt;REDACTED&gt;</title><link>https://sourceforge.net/p/peppermintos/pepwiki/Swap%2520File/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;How to create a swap file, open a terminal and enter (best to copy and paste) the following commands individually.&lt;/p&gt;
&lt;p&gt;Do not use this method if you already have a functional machine set up with a swap partition. I do not include a swap partition with my install, favouring a swap file post install during the configuration of my computer.&lt;/p&gt;
&lt;p&gt;Be warned if you intend to use the hibernate function, you must have a swap partition to mirror your ram. For example if your machine has 16GB it will require a 16GB swap partition.   &lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo swapon --show&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;There should be no printout, if there is. Stop! Do not proceed any further, you will destroy your system&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo fallocate -l 4G /swapfile&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo chmod 600 /swapfile&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo mkswap /swapfile&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo swapon /swapfile&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo nano /etc/fstab&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Add the following text to the &lt;code&gt;/etc/fstab&lt;/code&gt; file under the last entry, should be &lt;code&gt;/&lt;/code&gt;or the &lt;code&gt;/home&lt;/code&gt; depending on your schema.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/swapfile swap swap defaults 0 0&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo swapon --show&lt;/code&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;NAME      TYPE SIZE USED PRIO
/swapfile file   4G   0B   -2
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;sudo update-grub&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now the important bit reboot your machine&lt;/p&gt;
&lt;p&gt;&lt;code&gt;systemctl reboot&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;To check if the swap functions correctly&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo swapon --show&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Don't forget to adjust your swappiness to the value of 10 at: &lt;a href="https://sourceforge.net/p/peppermintos/pepwiki/Configure%20PeppermintOS/"&gt;https://sourceforge.net/p/peppermintos/pepwiki/Configure%20PeppermintOS/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><pubDate>Sat, 05 Mar 2022 13:34:16 -0000</pubDate><guid>https://sourceforge.netb68c98c7fad64652fed0ba8ad9adf1eaeb6ad4b9</guid></item></channel></rss>