<div dir="ltr"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">There are some handy benefits to having swap, if only a small amount of it. Specifically if you are a developer and make an oops in your code and develop a memory leak. this will help you to gracefully identify whats going on and do whatever testing you need to resolve your leak. it will allow you pt page out some memory pages that get used very infrequently (boot time only ect).</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">A couple handy bits of reading on the matter.</div><div class="gmail_default" style><font face="trebuchet ms, sans-serif"><a href="http://www.linux.com/news/software/applications/8208-all-about-linux-swap-space">http://www.linux.com/news/software/applications/8208-all-about-linux-swap-space</a></font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif"><a href="http://superuser.com/questions/639618/linux-dont-create-swap-partition">http://superuser.com/questions/639618/linux-dont-create-swap-partition</a><br></font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif"><a href="http://superuser.com/questions/571707/why-does-linux-use-a-swap-partition-when-the-kernel-supports-paging-virtual-memo">http://superuser.com/questions/571707/why-does-linux-use-a-swap-partition-when-the-kernel-supports-paging-virtual-memo</a><br></font></div><div class="gmail_default" style><font face="trebuchet ms, sans-serif"><br></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 15, 2015 at 10:07 PM, Phil Waclawski <span dir="ltr"><<a href="mailto:phil.waclawski@mesacc.edu" target="_blank">phil.waclawski@mesacc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">From what I understand, for laptops to properly hibernate, they need at least as much swap as you have RAM. But on the little servers I set up for my students/etc....SWAP is never used.<div><br></div><div>Phil W</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 15, 2015 at 9:13 PM, coverturtle <span dir="ltr"><<a href="mailto:coverturtle@gmail.com" target="_blank">coverturtle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>The quick answer is that a swap
partition is faster than a swap file. Using a file means you have
the overhead of the file system software.<br>
Using a partition means that the kernel can use the swap space
with less overhead.<br>
<br>
If you noticed when you installed, the linux installer only wants
to allocate as much swap space as you have memory. If you intend
to add more memory later, you might want to<br>
make your swap partition as large as the maximum size of memory
you computer will hold. OTOH, I've noticed that I hardly ever use
any swap space at all and I only have 2GB <br>
of memory.<br>
<br>
Watch the memory use in more or less real time in you system
monitor app.<span><br>
<br>
On 03/15/2015 09:13 PM, Michael Havens wrote:<br>
</span></div>
<blockquote type="cite"><span>
<div dir="ltr">I was wondering why Linux uses a swap partition
rather than a swap file. I mean I would think a swap file would
be superior since a files size can fluctuate whereas a partition
is static.<br clear="all">
<div>
<div>:-)~MIKE~(-:</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</span><span><pre>---------------------------------------------------
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a>
To subscribe, unsubscribe, or to change your mail settings:
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></pre>
</span></blockquote>
<br>
</div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.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/mailman/listinfo/plug-discuss</a><br></blockquote></div><br></div>
</div></div><br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.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/mailman/listinfo/plug-discuss</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">A mouse trap, placed on top of your alarm clock, will prevent you from rolling over and going back to sleep after you hit the snooze button.<br><br>Stephen<br><br></div>
</div>