<p>First off: the 2x rule has long since been outdated.  It made sense back when swap was something you&#39;d regularly need, and can still make sense when you are forced to work without enough RAM in the computer.  And if that is the case then you probably need more than 2x.</p>

<p>As an example, if one were to attempt to install Ubuntu on a computer, I would say that the system should have at least 4 GB of virtual memory capacity available. That means that if you have 512 MB of primary storage, you should allocate 3.5 GB of secondary storage to step in as RAM if needed.</p>

<p>If you have more than 4 GB of real RAM, then consider making your swap space between 1 and 4 GB, unless you know for a fact that you require more. I usually set aside one or two gigs, not even four.  Why? Because if you hit swap with that much memory, there is almost universally a massive problem---whether it is that more RAM is truly required or a runaway process, the whole system will be brought to its knees thrashing, which will always cost more than having enough RAM.</p>

<p>So, no, 2x on modern systems is just wasting disk.  (For that matter, most end-user systems shouldn&#39;t even have a dedicated swap partition anymore; a normal file works well for swap for many situations and can be easily resized on demand.)</p>

<p>--<br>
Sent from my HTC Vision (G2), running Gingerbread.<br>
That is, a phone-like mobile device. :)</p>
<div class="gmail_quote">On Jan 17, 2011 5:22 PM, &quot;Ron Frazier&quot; &lt;<a href="mailto:atllinuxenthinfo@c3energy.com">atllinuxenthinfo@c3energy.com</a>&gt; wrote:<br type="attribution"></div>