<?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>Flatterline &#187; Tech</title>
	<atom:link href="http://flatterline.com/index.php/category/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://flatterline.com</link>
	<description>Kick ass developers helping web startups realize their vision.</description>
	<lastBuildDate>Thu, 12 Nov 2009 04:17:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Desert Code Camp Followup</title>
		<link>http://flatterline.com/index.php/2009/06/20/desert-code-camp-followup/</link>
		<comments>http://flatterline.com/index.php/2009/06/20/desert-code-camp-followup/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 18:43:14 +0000</pubDate>
		<dc:creator>Curtis</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Excursions]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[couchdb]]></category>
		<category><![CDATA[desertcodecamp]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://flatterline.com/?p=374</guid>
		<description><![CDATA[Thanks to everyone who attended the two sessions taught by Chris at Desert Code Camp! We hope that you had a great time and learned a lot. I know we did!
As promised, here are the slides from the Understanding Functional Programming session:
Understanding Functional Programming
View more PDF documents from Chris Chandler.

If you have any questions or [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to everyone who attended the two sessions taught by Chris at <a href="http://desertcodecamp.com">Desert Code Camp</a>! We hope that you had a great time and learned a lot. I know we did!</p>
<p>As promised, here are the slides from the Understanding Functional Programming session:</p>
<div style="width:425px;text-align:left" id="__ss_1589709"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/cchandler/understanding-functional-programming?type=presentation" title="Understanding Functional Programming">Understanding Functional Programming</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=functionalprogramming-090616003711-phpapp01&#038;stripped_title=understanding-functional-programming" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=functionalprogramming-090616003711-phpapp01&#038;stripped_title=understanding-functional-programming" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">PDF documents</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/cchandler">Chris Chandler</a>.</div>
</div>
<p>If you have any questions or comments, please <a href="mailto:chris@flatterline.com">send Chris an email</a>; he loves to explore and discuss technology.</p>
<p><strong>What topic(s) would you like to see next time?</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://flatterline.com/index.php/2009/06/20/desert-code-camp-followup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Desert Code Camp</title>
		<link>http://flatterline.com/index.php/2009/06/09/desert-code-camp/</link>
		<comments>http://flatterline.com/index.php/2009/06/09/desert-code-camp/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 22:50:09 +0000</pubDate>
		<dc:creator>Curtis</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Excursions]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[conferences]]></category>
		<category><![CDATA[couchdb]]></category>
		<category><![CDATA[desertcodecamp]]></category>
		<category><![CDATA[phoenix]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://flatterline.com/?p=360</guid>
		<description><![CDATA[Looks like it&#8217;s almost time for Desert Code Camp again! What is this event, you ask? From their site:
&#8220;Code Camps have been taking place all over the country.  This is a free, one-day event put on by the local Phoenix community to help promote software development in general.  There is no right or [...]]]></description>
			<content:encoded><![CDATA[<p>Looks like it&#8217;s almost time for <a href="http://desertcodecamp.com/">Desert Code Camp</a> again! What is this event, you ask? From their site:</p>
<blockquote><p>&#8220;Code Camps have been taking place all over the country.  This is a free, one-day event put on by the local Phoenix community to help promote software development in general.  There is no right or wrong language, platform, or technology.  If a topic relates in any way to the code that causes a machine to produce a desired result, it&#8217;s welcome here.&#8221;</p></blockquote>
<p>This year it will be held at the <a href="http://www.devry.edu/locations/campuses/loc_phoenixcampus.jsp">DeVry University Phoenix Campus</a> and is once again being organized by <a href="http://geekswithblogs.net/lorint/Default.aspx">Lorin Thwaits</a>.</p>
<p>Flatterline will be teaching two sessions this year in the 21st Century Software Development track: <a href="http://desertcodecamp.com/signUp.aspx?session=495">Developing with CouchDB</a> and <a href="http://desertcodecamp.com/signUp.aspx?session=477">Understanding functional programming</a>.</p>
<p>The schedule became available today, so if you haven&#8217;t registered do so now and build your schedule for Saturday. It looks like there are a lot of great sessions this year and we can&#8217;t wait to learn from all of our colleagues. See you there!</p>
]]></content:encoded>
			<wfw:commentRss>http://flatterline.com/index.php/2009/06/09/desert-code-camp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2009-04-30: Recap of Phoenix OpenCoffee Club</title>
		<link>http://flatterline.com/index.php/2009/05/03/2009-04-30-recap-of-phoenix-opencoffee-club/</link>
		<comments>http://flatterline.com/index.php/2009/05/03/2009-04-30-recap-of-phoenix-opencoffee-club/#comments</comments>
		<pubDate>Mon, 04 May 2009 04:32:08 +0000</pubDate>
		<dc:creator>Curtis</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Startups]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[entrepreneur]]></category>
		<category><![CDATA[investor]]></category>
		<category><![CDATA[opencoffee]]></category>
		<category><![CDATA[phoenix]]></category>

		<guid isPermaLink="false">http://flatterline.com/?p=252</guid>
		<description><![CDATA[
  
    
  
Photo by tonx.

We had a great turnout for the first Phoenix OpenCoffee Club, which took place April 30th at Fair Trade Cafe. About a dozen people, both entrepreneurs and investors, attended and spent several hours getting to know each other over some great coffee.
We heard at least [...]]]></description>
			<content:encoded><![CDATA[<div class="left">
  <a href="http://www.flickr.com/photos/tonx/17189040/"><br />
    <img title="Latte Art" src="http://farm1.static.flickr.com/13/17189040_a78ea36a0d_m_d.jpg" alt="Photo by tonx." width="160" height="115" /><br />
  </a></p>
<p class="caption">Photo by tonx.</p>
</div>
<p>We had a great turnout for the first <a href="http://flatterline.com/index.php/2009/04/24/phoenix-opencoffee-club/">Phoenix OpenCoffee Club</a>, which took place April 30th at <a href="http://www.azfairtrade.com/cafe/">Fair Trade Cafe</a>. About a dozen people, both entrepreneurs and investors, attended and spent several hours getting to know each other over some great coffee.</p>
<p>We heard at least 6 ideas pitched and discussed during the 2 hours we were there. The assembled group wasn&#8217;t shy about asking questions and raising concerns of the entrepreneurs pitching their ideas either. I know everyone appreciated hearing the perspectives of entrepreneurs and investors alike. We hope everyone who attended found the meetup engaging and useful. We sure did!</p>
<p>Special thanks to Fair Trade Cafe for allowing us to host our event there. The <a href="http://upcoming.yahoo.com/event/2561649/">May 7th Phoenix OpenCoffee Club</a> will be held at Hob Nobs Coffee House. We&#8217;ll try to have OpenCoffee Club every Thursday, so it&#8217;s not a big deal if there are times you can&#8217;t make it. Hope to see you there!</p>
]]></content:encoded>
			<wfw:commentRss>http://flatterline.com/index.php/2009/05/03/2009-04-30-recap-of-phoenix-opencoffee-club/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimizing hardware costs for Amazon EC2</title>
		<link>http://flatterline.com/index.php/2009/04/27/optimizing-hardware-costs-for-amazon-ec2/</link>
		<comments>http://flatterline.com/index.php/2009/04/27/optimizing-hardware-costs-for-amazon-ec2/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 17:29:05 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Startups]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[capacity planning]]></category>
		<category><![CDATA[linear programming]]></category>
		<category><![CDATA[operations]]></category>

		<guid isPermaLink="false">http://flatterline.com/?p=193</guid>
		<description><![CDATA[
A happy application in the cloud.
Photo by Timothy K. Hamilton.

Flatterline believes heavily in the power of cloud computing. Dynamically allocated hardware on a pay-for-what-you-need basis has tremendous advantages when it comes to helping clients manage and provision their clusters. The main advantage of cloud computing is dynamically growing, or shrinking, hardware as the needs of [...]]]></description>
			<content:encoded><![CDATA[<div class="left"><img title="A happy application in the cloud. Photo by Timothy K. Hamilton." src="http://farm1.static.flickr.com/67/170500174_d15d6c5541_m_d.jpg" alt="Cloud" width="160" height="120" /></p>
<p class="caption">A happy application in the cloud.<br />
Photo by Timothy K. Hamilton.
</div>
<p>Flatterline believes heavily in the power of <a href="http://en.wikipedia.org/wiki/Cloud_computing">cloud computing</a>. Dynamically allocated hardware on a pay-for-what-you-need basis has tremendous advantages when it comes to helping clients manage and provision their clusters. The main advantage of cloud computing is dynamically growing, or shrinking, hardware as the needs of the application change.</p>
<p>Because of the dynamic nature of cloud computing, we don&#8217;t need a guaranteed answer on hardware requirements up front. However, a client may want a ballpark figure in order to set aside the right amount of budget or let investors know the estimated operational cost. You could crunch the numbers yourself, but why would you do that when we&#8217;ve already automated the process for you?</p>
<h3>Determining optimal cost</h3>
<p>We&#8217;ve constructed a very basic model for minimizing the cost of <a href="http://aws.amazon.com/ec2/">Amazon EC2</a> hardware resources which satisfies a minimum number of <a href="http://aws.amazon.com/ec2/instance-types/">EC2 Compute Units</a> and a given amount of RAM per process. The technique uses <a title="Linear programming" href="http://en.wikipedia.org/wiki/Linear_programming">linear programming</a> and the <a title="GNU Linear programming kit" href="http://en.wikipedia.org/wiki/GNU_Linear_Programming_Kit">GNU linear programming kit (GLPK)</a>. <strong>Note</strong>: I&#8217;m a math geek that likes linear modeling, so if you&#8217;re unfamiliar with either, I&#8217;d be happy to chat with you about them over lunch.</p>
<h3>Installation</h3>
<p>First, install the GLPK. On Ubuntu execute the command</p>
<pre>sudo aptitude install glpk</pre>
<p>on Mac OS X execute the command</p>
<pre>sudo port install glpk</pre>
<p>Next, download the following gist as <code>cloud_cost.txt</code>.</p>
<p><script src="http://gist.github.com/101809.js"></script></p>
<h3>Computing the cost</h3>
<p>The model requires the specification of two variables: total number of EC2 Compute Units and RAM. Both variables are specified at the bottom with <code>param unitsNeeded</code> and <code>param ramRequiredPerAppInstance</code> respectively. Change these params to reflect your particular situation. <strong>Note</strong>: A future article will explore capacity planning in more detail.</p>
<p>When you&#8217;re ready, execute the solver using the following command:</p>
<pre>glpsol --model cloud_cost.txt --output result.txt</pre>
<h3>Analyzing the results</h3>
<p>The program generates the result into a file called <code>result.txt</code>. Assuming 500 EC2 Compute Units with 125MB of RAM per process, the file will look something like the following:</p>
<pre>Problem:    cloud_cost
Rows:       7
Columns:    5 (5 integer, 0 binary)
Non-zeros:  15
Status:     INTEGER OPTIMAL
Objective:  cost = 14400 (MINimum)

 1 InstanceQuantity[Small]
                    *              0             0
 2 InstanceQuantity[Large]
                    *              0             0
 3 InstanceQuantity[XLarge]
                    *              0             0
 4 InstanceQuantity[HCPULarge]
                    *              0             0
 5 InstanceQuantity[HCPUXLarge]
                    *             25             0</pre>
<p>The objective function was cost, so the optimal arrangement of hardware needed to get that computational power costs $14,400/month. The second column of the hardware arrangement indicates the number of instance needed. In this case we need 25 high-CPU, extra large instances.</p>
<p><strong>Did you find this useful? Let us know in the comments!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://flatterline.com/index.php/2009/04/27/optimizing-hardware-costs-for-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Phoenix OpenCoffee Club</title>
		<link>http://flatterline.com/index.php/2009/04/24/phoenix-opencoffee-club/</link>
		<comments>http://flatterline.com/index.php/2009/04/24/phoenix-opencoffee-club/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 18:33:15 +0000</pubDate>
		<dc:creator>Curtis</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Startups]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[entrepreneur]]></category>
		<category><![CDATA[investor]]></category>
		<category><![CDATA[opencoffee]]></category>
		<category><![CDATA[phoenix]]></category>

		<guid isPermaLink="false">http://flatterline.com/?p=163</guid>
		<description><![CDATA[
  

At Flatterline, our stated mission is to help startups realize their vision. To that end, we&#8217;ve decided to help bring OpenCoffee Club to Phoenix.
What is OpenCoffee Club?
OpenCoffee Club is a weekly gathering of entrepreneurs and investors in an informal setting (a.k.a, a coffee shop). The goal is to bring these entrepreneurs and investors [...]]]></description>
			<content:encoded><![CDATA[<div class="left">
  <a href="http://opencoffeeclub.org"><img src="http://flatterline.com/wp-content/uploads/2009/04/occ_logo.gif" alt="occ_logo" title="occ_logo" width="200" height="32" class="size-full wp-image-166" /></a>
</div>
<p>At Flatterline, our stated mission is to help startups realize their vision. To that end, we&#8217;ve decided to help bring <a href="http://upcoming.yahoo.com/group/15697/">OpenCoffee Club to Phoenix</a>.</p>
<h3>What is OpenCoffee Club?</h3>
<p>OpenCoffee Club is a weekly gathering of entrepreneurs and investors in an informal setting (a.k.a, a coffee shop). The goal is to bring these entrepreneurs and investors together to talk about projects, collaborate and get to know each other.</p>
<p>It was originally started in London by <a href="http://www.indexventures.com/team#profile_id_10">Saul Klein, a venture partner at Index Ventures</a>. Since then, over 80 OpenCoffee Clubs have sprung up worldwide. You can read more about it on <a href="http://localglobe.blogspot.com/2007/02/opencoffee-club.html">Saul&#8217;s blog</a> or at <a href="http://www.readwriteweb.com/archives/the_open_coffee_club_movement.php">ReadWriteWeb</a>.</p>
<h3>Why?</h3>
<p>On a recent trip to Boulder, CO I attended an OpenCoffee Club facilitated by <a href="http://www.askthevc.com/blog/">Jason Mendelson</a> of the <a href="http://www.foundrygroup.com/">Foundry Group</a>. It was really inspiring to see such a vibrant startup community meeting regularly to discuss ideas, share problems, give advice and, most of all, listen to each other.</p>
<p>We believe that Phoenix has a lot of talented, entrepreneurial people. We want them to have the best chance to grow and succeed and this is one small way we see that happening.</p>
<p>The first meetup will be on Thursday, April 30 from 8am &#8211; 10am at Fair Trade Coffee. <a href="http://upcoming.yahoo.com/event/2473241/">Please let us know you&#8217;re coming</a>.</p>
<p><strong>In what other ways can we help the Phoenix startup community thrive?</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://flatterline.com/index.php/2009/04/24/phoenix-opencoffee-club/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Disposable proxy for secure coffee shop browsing</title>
		<link>http://flatterline.com/index.php/2009/04/23/disposable-proxy-for-secure-coffee-shop-browsing/</link>
		<comments>http://flatterline.com/index.php/2009/04/23/disposable-proxy-for-secure-coffee-shop-browsing/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 23:39:37 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://flatterline.com/?p=155</guid>
		<description><![CDATA[
  

If you are a highly mobile laptop user, chances are you work out of a lot of varying public locations such as coffee shops, libraries, and just about anywhere that has public wifi. Are you concerned about the privacy of your data? If you&#8217;re like me, and our clients, you&#8217;re very concerned. Applications like [...]]]></description>
			<content:encoded><![CDATA[<div class="left">
  <a href="http://aws.amazon.com"><img src="http://flatterline.com/wp-content/uploads/2009/04/logo_aws.gif" alt="Amazon Web Services" title="logo_aws" width="164" height="60" class="size-full wp-image-160" /></a>
</div>
<p>If you are a highly mobile laptop user, chances are you work out of a lot of varying public locations such as coffee shops, libraries, and just about anywhere that has public wifi. Are you concerned about the privacy of your data? If you&#8217;re like me, and our clients, you&#8217;re very concerned. Applications like <a title="tcpflow" href="http://www.circlemud.org/~jelson/software/tcpflow/">tcpflow</a> and <a title="Wireshark" href="http://www.wireshark.org/">Wireshark</a> are not only particularly effective at grabbing content from the network, they also happen to be readily available.</p>
<p><strong>Here&#8217;s a very simple scheme to leverage the inexpensive power of Amazon&#8217;s EC2 to create a disposable, secure proxy.</strong></p>
<h3>Getting started</h3>
<p>You will need the following to make this recipe work:</p>
<ul>
<li>Amazon AWS account</li>
<li>A Ubuntu-based Amazon AMI with keypair (we are using public ami-7cfd1a15 for this article)</li>
<li>An EC2 security group allowing a minimum of port 22 for SSH</li>
</ul>
<p>To start, launch a small instance of your AMI of choice.  Once again, we prefer Ubuntu so most of this article is going to be Ubuntu-centric.  This instance will need to be setup with whatever key pair you plan on using as well as be placed in the security group that allows SSH access.  If you need help with this the Amazon <a title="Amazon AWS Console" href="http://console.aws.amazon.com/">AWS console</a> is particularly useful.</p>
<h3>Putting the pieces together</h3>
<p>Once the instance is made available ssh to your newly created instance.</p>
<pre>ssh -i identity_file -L 3128:localhost:3128 root@public_ec2_domain_name</pre>
<p>The noteworthy addition to the previous line is <code>-L 3128:localhost:3128</code>. This addition to the SSH command will open port 3128 locally and forward all traffic to the remote port 3128 across the open SSH connection.</p>
<p>Once the connection is open you will need to install a proxy, we prefer <a href="http://www.squid-cache.org/">squid</a>.  Squid can be installed through the following command:</p>
<pre>aptitude update
aptitude install squid</pre>
<p>The last remaining step is to configure your browser of choice to use proxy <code>localhost:3128</code>.</p>
<p>The final result is <strong>all local HTTP traffic will be relayed across local port 3128 across the encrypted SSH tunnel to the 10 cents / hour remote server</strong>. From there it will go out to the internet at large away from the prying eyes of nefarious coffee shop patrons. <strong>Keep the SSH connection open for as long as you need access to the proxy.</strong></p>
<h3>Cleaning up after yourself</h3>
<p>When your done at the coffee shop feel free to decommission the AMI instance and you&#8217;re done. The machine will go away with all records of the proxy&#8217;s cache.</p>
<p><em>If you&#8217;re looking for a solution to more than just your HTTP traffic you have options such as OpenVPN. Look for an article from us soon.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://flatterline.com/index.php/2009/04/23/disposable-proxy-for-secure-coffee-shop-browsing/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>What you don&#8217;t know is affecting your performance</title>
		<link>http://flatterline.com/index.php/2009/04/09/what-you-dont-know-is-affecting-your-performance/</link>
		<comments>http://flatterline.com/index.php/2009/04/09/what-you-dont-know-is-affecting-your-performance/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 01:13:55 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[swapping]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://flatterline.com/?p=141</guid>
		<description><![CDATA[Does your Linux-based virtualized hosting feel a little slow? Does it suffer from preemptive swapping? Here&#8217;s a quick tip on getting some more performance out of your current setup. This is especially useful if you have a significant ratio of physical RAM to in-memory programs.
Swappiness
The Linux 2.6 kernel has a parameter called vm.swappiness that regulates the [...]]]></description>
			<content:encoded><![CDATA[<p>Does your Linux-based virtualized hosting feel a little slow? Does it suffer from preemptive swapping? Here&#8217;s a quick tip on getting some more performance out of your current setup. This is especially useful if you have a significant ratio of physical RAM to in-memory programs.</p>
<h3>Swappiness</h3>
<p>The Linux 2.6 kernel has a parameter called vm.swappiness that regulates the kernel&#8217;s likelihood to swap memory to disk (e.g., to free up memory for disk/content caching, load other programs, etc). Valid values are between 0 and 100.  On the current release of Ubuntu (Intrepid) this value has a default value of 60 that you can investigate with the following command:</p>
<pre>$ cat /proc/sys/vm/swappiness
60</pre>
<p>This value is generally fine, but if your physical memory is significantly higher than what you need it&#8217;s worth investigating other choices. I personally find a pretty significant performance increase in Rails behavior with a value of 0; essentially telling the kernel to not swap anything out until it becomes absolutely necessary.</p>
<p>The value can be changed either with:</p>
<pre>$ sysctl vm.swappiness=0</pre>
<p>or</p>
<pre>$ echo 0 &gt; /proc/sys/vm/swappiness</pre>
<h3>A persistent lack of swappiness</h3>
<p>If you restart the server, then your change will be lost. If you want the change to remain persistent across restarts you&#8217;ll either need to create a script that calls one of these commands or edit /etc/sysctl.conf to specify the swappiness. As always, exercise caution playing with kernel parameters <img src='http://flatterline.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<h3>Swapping it back in</h3>
<p>If you change vm.swappiness and want to force the kernel to swap everything back in you can temporarily disable the swap partition and then immediately re-enable it.</p>
<pre>$ swapon -s

Filename                 Type            Size    Used    Priority
/dev/sda2                partition       524280  33948   -2

$ swapoff /dev/sda2
$ swapon /dev/sda2</pre>
<p>If the machine doesn&#8217;t have enough memory to accommodate the swap-in the command will fail with an error.</p>
<p><strong>Let us know if this helps you out!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://flatterline.com/index.php/2009/04/09/what-you-dont-know-is-affecting-your-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
