Topic: 2.3.3 on Ubuntu 9.04: very slow perf?

Hi All,

On all our dev boxes (Ubuntu 9.04) we're seeing very bad performance under Rails 2.3.3 (but not earlier versions); I've logged a ticket here and will be investigating the reason in detail shortly.

I was just wondering if anyone else has come across this, & can shed some light upon it?  I've never used Ruby profilers before but my rough plan is to profile the full stack from Webrick down.  I'm keen to postpone that particular hike up the learning curve if anyone is already standing at the top waving ...

Yours,
Duncan

Re: 2.3.3 on Ubuntu 9.04: very slow perf?

Apparently the Ruby package that comes with Ubuntu is compiled with the enable threads option which hampers performance. Compiling your own Ruby seems to do the trick

https://bugs.launchpad.net/ubuntu/+sour … bug/307462

Note that after you do this you will need to re install RubyGems and all your gems. You may also have problems with openssl which can be resolved here.

http://blog.spaceprogram.com/2009/04/ho … enssl.html

Re: 2.3.3 on Ubuntu 9.04: very slow perf?

skuunk wrote:

Compiling your own Ruby seems to do the trick

Thanks for the heads up - investigating this issue is coming up soon on our schedule; I'll post my findings here when we do that.  We're already building our own Ruby and RubyGems from source during deployment so we control the exact version & options, so this shouldn't be a big deal.