<div dir="ltr">There's also the memory dump thing.  Personally, I tend to disable swap entirely.  YMMV.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 15, 2015 at 6:44 PM, Matt Graham <span dir="ltr"><<a href="mailto:mhgraham@crow202.org" target="_blank">mhgraham@crow202.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2015-03-15 18:13, Michael Havens wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
I was wondering why Linux uses a swap partition rather than a swap<br>
file. I mean I would think a swap file would be superior since a<br></span>
file's size can fluctuate whereas a partition is static.<br>
</blockquote>
<br>
Historical reasons and performance.  A partition is a contiguous area of disk, while a file can be a widely-scattered area of blocks.  The kernel can also access a partition directly, while accessing a file incurs unavoidable overhead of going through the filesystem kernel code. This overhead is (almost) invisible in modern high-powered systems with many G of RAM and CPUs >= 2 GHz.  When 128M of RAM and 400 MHz of CPU were what was available, people needed to be more concerned about performance.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Crow202 Blog: <a href="http://crow202.org/wordpress" target="_blank">http://crow202.org/wordpress</a><br>
There is no Darkness in Eternity<br>
But only Light too dim for us to see.<br>
------------------------------<u></u>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/<u></u>mailman/listinfo/plug-discuss</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">James McPhee<br><a href="mailto:jmcphe@gmail.com">jmcphe@gmail.com</a></div>
</div>