<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>thinking sysadmin &#187; swap</title>
	<atom:link href="http://andyleonard.com/tag/swap/feed/" rel="self" type="application/rss+xml" />
	<link>http://andyleonard.com</link>
	<description>qstat -u aleonard -s z</description>
	<lastBuildDate>Tue, 28 Feb 2012 04:47:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Adding Swap to an EC2 Micro Instance</title>
		<link>http://andyleonard.com/2010/12/03/adding-swap-to-an-ec2-micro-instance/</link>
		<comments>http://andyleonard.com/2010/12/03/adding-swap-to-an-ec2-micro-instance/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 21:57:46 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[utility computing]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[ebs]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[swap]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=552</guid>
		<description><![CDATA[EC2 micro instances come with no swap by default &#8211; at least every micro instance that I&#8217;ve ever launched does, I&#8217;m not sure if it&#8217;s theoretically possible to launch an instance with swap. The lack of swap is probably a side-effect of the limited memory combined with EBS-only storage and concomitant risk of high EBS [...]]]></description>
			<content:encoded><![CDATA[<p>EC2 micro instances come with no swap by default &#8211; at least every micro instance that I&#8217;ve ever launched does, I&#8217;m not sure if it&#8217;s theoretically possible to launch an instance with swap.  The lack of swap is probably a side-effect of the limited memory combined with EBS-only storage and concomitant risk of high EBS charges if you swap heavily.</p>
<p>However, if you&#8217;re willing to accept the risk of unexpected high EBS I/O costs, it&#8217;s straightforward to add swap:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
# /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
# /sbin/mkswap /var/swap.1
# /sbin/swapon /var/swap.1
</pre>
<p>Or, if you prefer Puppet:</p>
<pre class="brush: plain; title: ; notranslate">
class swapfile {

  exec { &quot;create swap file&quot;:
    command =&gt; &quot;/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024&quot;,
    creates =&gt; &quot;/var/swap.1&quot;,
  }

  exec { &quot;attach swap file&quot;:
    command =&gt; &quot;/sbin/mkswap /var/swap.1 &amp;&amp; /sbin/swapon /var/swap.1&quot;,
    require =&gt; Exec[&quot;create swap file&quot;],
    unless =&gt; &quot;/sbin/swapon -s | grep /var/swap.1&quot;,
  }

}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2010/12/03/adding-swap-to-an-ec2-micro-instance/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>VMware about ESX swap on NFS: It&#8217;s okay</title>
		<link>http://andyleonard.com/2008/11/24/vmware-about-esx-swap-on-nfs-its-okay/</link>
		<comments>http://andyleonard.com/2008/11/24/vmware-about-esx-swap-on-nfs-its-okay/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 18:32:42 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[virtualization]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=178</guid>
		<description><![CDATA[Paul Manning, from VMware, in response to a question I asked in the VI:OPS forums: The current best practice for NFS is to not seperate the VM swap space from the VMhome directory on a NFS datastore. The reason for the originial recommendation was just good old fashioned conservitiveness. More at the forum post, including [...]]]></description>
			<content:encoded><![CDATA[<p>Paul Manning, from VMware, in <a href="http://viops.vmware.com/home/message/1672?tstart=0#1672">response</a> to a question I asked in the VI:OPS forums:</p>
<blockquote><p>The current best practice for NFS is to not seperate the VM swap space from the VMhome directory on a NFS datastore. The reason for the originial recommendation was just good old fashioned conservitiveness.</p></blockquote>
<p>More at the forum post, including more on the reasoning for the old recommendation of separating swap when using NFS &#8211; thanks, Paul, you made my day.</p>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2008/11/24/vmware-about-esx-swap-on-nfs-its-okay/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

