<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4552&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] swap using file rather than partition]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4552</link>
		<description><![CDATA[The most recent posts in [SOLVED] swap using file rather than partition.]]></description>
		<lastBuildDate>Thu, 21 Oct 2021 11:57:17 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] swap using file rather than partition]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32290#p32290</link>
			<description><![CDATA[<p>It&#039;s very easy to hang your entire system when browsing the modern web on a 2GB RAM (or less) PC without swap. Even Raspberry Pis have a 128MB swapfile as standard on the SD card.</p>]]></description>
			<author><![CDATA[dummy@example.com (NicePics13)]]></author>
			<pubDate>Thu, 21 Oct 2021 11:57:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32290#p32290</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] swap using file rather than partition]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32010#p32010</link>
			<description><![CDATA[<p>Unless you are really short of memory, (i.e. 1GB or less), &amp; only use it as a standard desktop type of system, you don&#039;t even need swap.</p><p>I run Devuan on an old 1GB ram laptop, &amp; I give it 2GB of swap, it works well enough as a basic machine, it even goes online with Firefox, if a little slowly, but perfectly usable. Two other old laptops with just 2GB ram, I don&#039;t even bother with swap. <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>If you have a laptop, &amp; want it to hibernate, you will want a swap partition of equal size to your ram.</p>]]></description>
			<author><![CDATA[dummy@example.com (Camtaf)]]></author>
			<pubDate>Sun, 10 Oct 2021 08:39:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32010#p32010</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] swap using file rather than partition]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32007#p32007</link>
			<description><![CDATA[<div class="quotebox"><cite>nobodyuknow wrote:</cite><blockquote><div><p>Is there any performance difference between partition-swap and file-swap?</p></div></blockquote></div><p>On an SSD, probably not, assuming you&#039;re using a non-exotic filesystem. On a mechanical HDD, the traditional reasons for using a swap partition are avoiding fragmentation (and thus expensive head seeks) and the ability to place the swap partition on the fastest part of the disk (pi and RPM vs linear velocity and all that).</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>@p.H over at the Debian forums maintains that swap files are a dirty hack because swap is designed to operate on block devices and they seem to know what they&#039;re talking about.</p></div></blockquote></div><p>It certainly was, and he sure does. <br />My (admittedly fairly limited) real-world tests don&#039;t show any performance penalty for swap files though, at least not on an ext4 formatted SSD. Swap files have been a thing for many years, so I&#039;d expect most of the bees are ironed out by now.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>The fact that btrfs has only recently gained the ability to support swap files would seem to confirm this.</p></div></blockquote></div><p>TBF, BTRFS is a COW filesystem. Swap files on COW filesystems are always going to need explicit support from the FS, and are always going to be a hack.<br />If running BTRFS (or ZFS), I&#039;d go with a swap partition any day. Ideally more than one and on different devices so they can stripe.</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sat, 09 Oct 2021 23:59:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32007#p32007</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] swap using file rather than partition]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32001#p32001</link>
			<description><![CDATA[<p>Test for yourself to determine any performance difference but I don&#039;t think there is any.</p><p>@p.H over at the Debian forums maintains that swap files are a dirty hack because swap is designed to operate on block devices and they seem to know what they&#039;re talking about (and certainly more so than me). The fact that btrfs has only recently gained the ability to support swap files would seem to confirm this.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 09 Oct 2021 23:06:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32001#p32001</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] swap using file rather than partition]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31999#p31999</link>
			<description><![CDATA[<p>In &quot;How Linux Works&quot; (chapter 4), the author noted that a file, instead of a partition, can be used for swap. I could see how this could be useful for installing Devuan after Windows to create a dual-boot, in other words, only having to worry about creating one extra partition. Is there any performance difference between partition-swap and file-swap?</p><p>P.S. In my first draft of the above, I wrote &quot;duel-boot&quot; instead of &quot;dual-boot,&quot; which is probably more accurate. :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (nobodyuknow)]]></author>
			<pubDate>Sat, 09 Oct 2021 21:15:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31999#p31999</guid>
		</item>
	</channel>
</rss>
