<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Why mod_rails is great for light-duty Rails apps</title>
	<atom:link href="http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/</link>
	<description>Jamie Flournoy's Software Development Blog</description>
	<lastBuildDate>Fri, 19 Mar 2010 02:13:16 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: links for 2008-09-09 &#171; Amy G. Dala</title>
		<link>http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/comment-page-1/#comment-10201</link>
		<dc:creator>links for 2008-09-09 &#171; Amy G. Dala</dc:creator>
		<pubDate>Tue, 09 Sep 2008 14:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/#comment-10201</guid>
		<description>[...] Why mod_rails is great for light-duty Rails apps at Pervasive Code (tags: ruby rails apache) [...]</description>
		<content:encoded><![CDATA[<p>[...] Why mod_rails is great for light-duty Rails apps at Pervasive Code (tags: ruby rails apache) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markov Blog &#187; Blog Archive &#187; Trying out mod_rails</title>
		<link>http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/comment-page-1/#comment-8396</link>
		<dc:creator>Markov Blog &#187; Blog Archive &#187; Trying out mod_rails</dc:creator>
		<pubDate>Tue, 10 Jun 2008 16:01:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/#comment-8396</guid>
		<description>[...] swap area hard, so it seems that it takes a little more memory than a pair of mongrels. Although I already read about that. I suppose it should be fine with 512MB with a light load. And RailsMaxPoolSize is quite [...]</description>
		<content:encoded><![CDATA[<p>[...] swap area hard, so it seems that it takes a little more memory than a pair of mongrels. Although I already read about that. I suppose it should be fine with 512MB with a light load. And RailsMaxPoolSize is quite [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dreamhost and mod_rails for your tiny Rails application &#124; alex brie . net</title>
		<link>http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/comment-page-1/#comment-7467</link>
		<dc:creator>Dreamhost and mod_rails for your tiny Rails application &#124; alex brie . net</dc:creator>
		<pubDate>Thu, 29 May 2008 03:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/#comment-7467</guid>
		<description>[...] dedicated or VPS, mongrel is still the right choice being slightly faster and using less RAM (see this for reference). What&#8217;s the best part about mod_rails ? Dreamhost included it on their [...]</description>
		<content:encoded><![CDATA[<p>[...] dedicated or VPS, mongrel is still the right choice being slightly faster and using less RAM (see this for reference). What&#8217;s the best part about mod_rails ? Dreamhost included it on their [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; Ditching Mongrel for mod_rails &#187; My geek blog - Brian McQuay</title>
		<link>http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/comment-page-1/#comment-7087</link>
		<dc:creator>&#187; Ditching Mongrel for mod_rails &#187; My geek blog - Brian McQuay</dc:creator>
		<pubDate>Sun, 25 May 2008 08:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/#comment-7087</guid>
		<description>[...] in the past but everything sent me back to Mongrel. Until today of course when I came across Jamie Flournoy&#8217;s blog about [...]</description>
		<content:encoded><![CDATA[<p>[...] in the past but everything sent me back to Mongrel. Until today of course when I came across Jamie Flournoy&#8217;s blog about [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2008-05-25 &#171; Mike Does Tech</title>
		<link>http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/comment-page-1/#comment-7051</link>
		<dc:creator>links for 2008-05-25 &#171; Mike Does Tech</dc:creator>
		<pubDate>Sun, 25 May 2008 00:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/#comment-7051</guid>
		<description>[...] Why mod_rails is great for light-duty Rails apps at Pervasive Code (tags: mod_rails rubyonrails deployment apache) [...]</description>
		<content:encoded><![CDATA[<p>[...] Why mod_rails is great for light-duty Rails apps at Pervasive Code (tags: mod_rails rubyonrails deployment apache) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Copeland</title>
		<link>http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/comment-page-1/#comment-6940</link>
		<dc:creator>Tom Copeland</dc:creator>
		<pubDate>Fri, 23 May 2008 22:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/#comment-6940</guid>
		<description>For the the big win is not having to manage the mongrel cluster port range, not having to worry about a couple slow file uploads/downloads locking up all the mongrels, not having to worry about slow S3 or Salesforce calls locking up all the mongrels, etc., etc.  Count me onboard the mod_rails bandwagon... it&#039;s making my cluster management skills obsolete and I still love it :-)</description>
		<content:encoded><![CDATA[<p>For the the big win is not having to manage the mongrel cluster port range, not having to worry about a couple slow file uploads/downloads locking up all the mongrels, not having to worry about slow S3 or Salesforce calls locking up all the mongrels, etc., etc.  Count me onboard the mod_rails bandwagon&#8230; it&#8217;s making my cluster management skills obsolete and I still love it :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 28 mod_rails / Passenger Resources To Help You Deploy Rails Applications Faster</title>
		<link>http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/comment-page-1/#comment-6931</link>
		<dc:creator>28 mod_rails / Passenger Resources To Help You Deploy Rails Applications Faster</dc:creator>
		<pubDate>Fri, 23 May 2008 20:36:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/#comment-6931</guid>
		<description>[...] &amp; Benchmarks  Why mod_rails is great for light-duty Rails apps - A blog post that takes a deep look into the motivation behind Passenger and where it fits in [...]</description>
		<content:encoded><![CDATA[<p>[...] &amp; Benchmarks  Why mod_rails is great for light-duty Rails apps &#8211; A blog post that takes a deep look into the motivation behind Passenger and where it fits in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bensie</title>
		<link>http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/comment-page-1/#comment-5943</link>
		<dc:creator>bensie</dc:creator>
		<pubDate>Mon, 21 Apr 2008 16:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/#comment-5943</guid>
		<description>What types of things within the rails application itself might take a long time to load it up?  This particular app is a rails 1.2.6 app with just a few plugins...

I&#039;m going to try it with different apps now to see if that&#039;s the issue.</description>
		<content:encoded><![CDATA[<p>What types of things within the rails application itself might take a long time to load it up?  This particular app is a rails 1.2.6 app with just a few plugins&#8230;</p>
<p>I&#8217;m going to try it with different apps now to see if that&#8217;s the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: This Week in Ruby (April 21, 2008) &#124; Zen and the Art of Programming</title>
		<link>http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/comment-page-1/#comment-5936</link>
		<dc:creator>This Week in Ruby (April 21, 2008) &#124; Zen and the Art of Programming</dc:creator>
		<pubDate>Mon, 21 Apr 2008 08:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/#comment-5936</guid>
		<description>[...] The first tutorials for mod_rails have started to pop up, in particular there was this guide for setting up Passenger on SliceHost with Ubuntu 7.10 and the more discursive Why mod_rails is great for light-duty Rails apps. [...]</description>
		<content:encoded><![CDATA[<p>[...] The first tutorials for mod_rails have started to pop up, in particular there was this guide for setting up Passenger on SliceHost with Ubuntu 7.10 and the more discursive Why mod_rails is great for light-duty Rails apps. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Flournoy</title>
		<link>http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/comment-page-1/#comment-5894</link>
		<dc:creator>Jamie Flournoy</dc:creator>
		<pubDate>Sat, 19 Apr 2008 00:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2008/04/14/why-mod_rails-is-a-really-good-thing-for-light-duty-ruby-on-rails/#comment-5894</guid>
		<description>Hmm. If I reboot my VPS (thereby clearing the disk cache) and then load a page served by mod_rails, it takes 7.122s to load the whole page. That includes all the startup time of the mod_rails spawners as well.

Maybe the dom0 disk cache is involved, but it has a very limited amount of memory so I doubt it. Or maybe my VPS is on much faster hardware than bensie&#039;s VPS, and it&#039;s just gonna take that long any time the app really starts without the benefit of any disk caching.

I guess the way to test that theory is to reboot the VMWare virtual server and try a cold start, and see how long that takes.

If disk performance is really the bottleneck, a quick and dirty Rails startup accelerator could be added that would work more or less like the &#039;readahead&#039; program that comes with CentOS 5.1:


cd /usr/lib/ruby/gems/1.8/gems ; \
find . -type f  -iname \*.rb -and \( \
-iwholename ./actionpack\* -or \
-iwholename ./actionmailer\* -or \
-iwholename ./activerecord\* -or \
-iwholename ./activesupport\* -or \
-iwholename ./activeresource\* \) \
-exec cat {} &gt; /dev/null \;
</description>
		<content:encoded><![CDATA[<p>Hmm. If I reboot my VPS (thereby clearing the disk cache) and then load a page served by mod_rails, it takes 7.122s to load the whole page. That includes all the startup time of the mod_rails spawners as well.</p>
<p>Maybe the dom0 disk cache is involved, but it has a very limited amount of memory so I doubt it. Or maybe my VPS is on much faster hardware than bensie&#8217;s VPS, and it&#8217;s just gonna take that long any time the app really starts without the benefit of any disk caching.</p>
<p>I guess the way to test that theory is to reboot the VMWare virtual server and try a cold start, and see how long that takes.</p>
<p>If disk performance is really the bottleneck, a quick and dirty Rails startup accelerator could be added that would work more or less like the &#8216;readahead&#8217; program that comes with CentOS 5.1:</p>
<p>cd /usr/lib/ruby/gems/1.8/gems ; \<br />
find . -type f  -iname \*.rb -and \( \<br />
-iwholename ./actionpack\* -or \<br />
-iwholename ./actionmailer\* -or \<br />
-iwholename ./activerecord\* -or \<br />
-iwholename ./activesupport\* -or \<br />
-iwholename ./activeresource\* \) \<br />
-exec cat {} &gt; /dev/null \;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
