# Re: Re: Re: chef 10.12 slower?

**URL:** https://discourse.chef.io/t/re-re-re-chef-10-12-slower/3088
**Category:** Chef Infra (archive)
**Created:** [August 6, 2012, 8:59pm UTC](https://discourse.chef.io/t/re-re-re-chef-10-12-slower/3088 "2012-08-06T20:59:48Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Phil\_Dibowitz](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@Phil\_Dibowitz](https://discourse.chef.io/u/Phil_Dibowitz)
#### Post date: [August 6, 2012, 8:59pm UTC](https://discourse.chef.io/t/re-re-re-chef-10-12-slower/3088/1 "2012-08-06T20:59:48Z")

</div>

## There's a bug for this (don't have the link but it was filed recently)...it's only omnibus and only on platforms where omnibus has the newer version of rubygems

Sent from my phone... Excuse horrible formatting.

John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com) wrote:

> Sorry about that. I forgot to mention these are omnibus installer  
> installations. Wow, what a difference then between the two projects, a  
> 7.5x increase in just the initial startup time.
> 
> On Mon, Aug 6, 2012 at 3:23 PM, Bryan McLellan [btm@loftninjas.org](mailto:btm@loftninjas.org) wrote:
> 
> > On Mon, Aug 6, 2012 at 1:15 PM, John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com)  
> > wrote:
> > 
> > > Anyone else notice chef 10.12 release being significantly slow just on  
> > > startup compared to 10.10?
> > 
> > Most of the 10.12.0 packages were built with the new ruby omnibus  
> > project whereas 0.10.10 was mostly the clojure omnibus project, so  
> > there could be significant differences there.
> > 
> > Bryan
> 
> --  
> John Alberts

---

<div class="post-metadata">

### Author: ![John\_Alberts](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/john_alberts/32/293_2.png) [@John\_Alberts](https://discourse.chef.io/u/John_Alberts)
#### Post date: [August 6, 2012, 9:05pm UTC](https://discourse.chef.io/t/re-re-re-chef-10-12-slower/3088/2 "2012-08-06T21:05:40Z")

</div>

Looks like this already filed as a bug here:  
[http://tickets.opscode.com/browse/CHEF-3295](http://tickets.opscode.com/browse/CHEF-3295). Thanks for pointing that out  
and I guess I should have searched JIRA first. 🙂

John

On Mon, Aug 6, 2012 at 3:59 PM, Phil Dibowitz [phil@ipom.com](mailto:phil@ipom.com) wrote:

> ## There's a bug for this (don't have the link but it was filed recently)...it's only omnibus and only on platforms where omnibus has the newer version of rubygems
> 
> Sent from my phone... Excuse horrible formatting.
> 
> John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com) wrote:
> 
> > Sorry about that. I forgot to mention these are omnibus installer  
> > installations. Wow, what a difference then between the two projects, a  
> > 7.5x increase in just the initial startup time.
> > 
> > On Mon, Aug 6, 2012 at 3:23 PM, Bryan McLellan [btm@loftninjas.org](mailto:btm@loftninjas.org)  
> > wrote:
> > 
> > > On Mon, Aug 6, 2012 at 1:15 PM, John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com)  
> > > wrote:
> > > 
> > > > Anyone else notice chef 10.12 release being significantly slow just on  
> > > > startup compared to 10.10?
> > > 
> > > Most of the 10.12.0 packages were built with the new ruby omnibus  
> > > project whereas 0.10.10 was mostly the clojure omnibus project, so  
> > > there could be significant differences there.
> > > 
> > > Bryan
> > 
> > --  
> > John Alberts

--  
John Alberts

---

<div class="post-metadata">

### Author: ![Charles\_Sullivan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/charles_sullivan/32/483_2.png) [@Charles\_Sullivan](https://discourse.chef.io/u/Charles_Sullivan)
#### Post date: [August 6, 2012, 9:20pm UTC](https://discourse.chef.io/t/re-re-re-chef-10-12-slower/3088/3 "2012-08-06T21:20:46Z")

</div>

Yes, I can verify this. I also confirmed it was Ruby 1.9.2 by switching  
out to 1.9.3. For me it wasn't a big deal so I just decided to wait until  
Ruby gets bumped..

--Charlie

On Mon, Aug 6, 2012 at 4:05 PM, John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com)wrote:

> Looks like this already filed as a bug here:  
> [http://tickets.opscode.com/browse/CHEF-3295](http://tickets.opscode.com/browse/CHEF-3295). Thanks for pointing that  
> out and I guess I should have searched JIRA first. 🙂
> 
> John
> 
> On Mon, Aug 6, 2012 at 3:59 PM, Phil Dibowitz [phil@ipom.com](mailto:phil@ipom.com) wrote:
> 
> > ## There's a bug for this (don't have the link but it was filed recently)...it's only omnibus and only on platforms where omnibus has the newer version of rubygems
> > 
> > Sent from my phone... Excuse horrible formatting.
> > 
> > John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com) wrote:
> > 
> > > Sorry about that. I forgot to mention these are omnibus installer  
> > > installations. Wow, what a difference then between the two projects, a  
> > > 7.5x increase in just the initial startup time.
> > > 
> > > On Mon, Aug 6, 2012 at 3:23 PM, Bryan McLellan [btm@loftninjas.org](mailto:btm@loftninjas.org)  
> > > wrote:
> > > 
> > > > On Mon, Aug 6, 2012 at 1:15 PM, John Alberts \<[john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com)
> > > 
> > > > wrote:
> > > > 
> > > > > Anyone else notice chef 10.12 release being significantly slow just  
> > > > > on  
> > > > > startup compared to 10.10?
> > > > 
> > > > Most of the 10.12.0 packages were built with the new ruby omnibus  
> > > > project whereas 0.10.10 was mostly the clojure omnibus project, so  
> > > > there could be significant differences there.
> > > > 
> > > > Bryan
> > > 
> > > --  
> > > John Alberts
> 
> --  
> John Alberts

--  
Charles Sullivan  
[charlie.sullivan@gmail.com](mailto:charlie.sullivan@gmail.com)

---

<div class="post-metadata">

### Author: ![KC\_Braunschweig](https://avatars.discourse-cdn.com/v4/letter/k/ea5d25/32.png) [@KC\_Braunschweig](https://discourse.chef.io/u/KC_Braunschweig)
#### Post date: [August 6, 2012, 9:40pm UTC](https://discourse.chef.io/t/re-re-re-chef-10-12-slower/3088/4 "2012-08-06T21:40:02Z")

</div>

FWIW, seems related to [Mega slowness in custom require · Issue #73 · rubygems/rubygems · GitHub](https://github.com/rubygems/rubygems/issues/73)

Would be great to see this resolved. Very irritating.

KC

On Mon, Aug 6, 2012 at 2:20 PM, Charles Sullivan  
[charlie.sullivan@gmail.com](mailto:charlie.sullivan@gmail.com) wrote:

> Yes, I can verify this. I also confirmed it was Ruby 1.9.2 by switching out  
> to 1.9.3. For me it wasn't a big deal so I just decided to wait until Ruby  
> gets bumped..
> 
> --Charlie
> 
> On Mon, Aug 6, 2012 at 4:05 PM, John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com)  
> wrote:
> 
> > Looks like this already filed as a bug here:  
> > [http://tickets.opscode.com/browse/CHEF-3295](http://tickets.opscode.com/browse/CHEF-3295). Thanks for pointing that out  
> > and I guess I should have searched JIRA first. 🙂
> > 
> > John
> > 
> > On Mon, Aug 6, 2012 at 3:59 PM, Phil Dibowitz [phil@ipom.com](mailto:phil@ipom.com) wrote:
> > 
> > > ## There's a bug for this (don't have the link but it was filed recently)...it's only omnibus and only on platforms where omnibus has the newer version of rubygems
> > > 
> > > Sent from my phone... Excuse horrible formatting.
> > > 
> > > John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com) wrote:
> > > 
> > > > Sorry about that. I forgot to mention these are omnibus installer  
> > > > installations. Wow, what a difference then between the two projects, a  
> > > > 7.5x increase in just the initial startup time.
> > > > 
> > > > On Mon, Aug 6, 2012 at 3:23 PM, Bryan McLellan [btm@loftninjas.org](mailto:btm@loftninjas.org)  
> > > > wrote:
> > > > 
> > > > > On Mon, Aug 6, 2012 at 1:15 PM, John Alberts  
> > > > > [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com)  
> > > > > wrote:
> > > > > 
> > > > > > Anyone else notice chef 10.12 release being significantly slow just  
> > > > > > on  
> > > > > > startup compared to 10.10?
> > > > > 
> > > > > Most of the 10.12.0 packages were built with the new ruby omnibus  
> > > > > project whereas 0.10.10 was mostly the clojure omnibus project, so  
> > > > > there could be significant differences there.
> > > > > 
> > > > > Bryan
> > > > 
> > > > --  
> > > > John Alberts
> > 
> > --  
> > John Alberts
> 
> --  
> Charles Sullivan  
> [charlie.sullivan@gmail.com](mailto:charlie.sullivan@gmail.com)

---

<div class="post-metadata">

### Author: ![Stephane\_Jourdan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/stephane_jourdan/32/582_2.png) [@Stephane\_Jourdan](https://discourse.chef.io/u/Stephane_Jourdan)
#### Post date: [August 7, 2012, 2:26pm UTC](https://discourse.chef.io/t/re-re-re-chef-10-12-slower/3088/5 "2012-08-07T14:26:41Z")

</div>

Hi,

I confirm that with ruby 1.9.2 (from Omnibus or not) chef-client launch  
times are 20 times higher (from 20 to 30 seconds on a typical ubuntu 12.04  
m1.small on EC2).  
Solved by migrating to ruby 1.9.3 where needed, and I'll stay with Ruby  
1.8.7 where I can (launch times usually under 2 seconds).

Cheers,  
Stef

On Mon, Aug 6, 2012 at 11:40 PM, KC Braunschweig  
[kcbraunschweig@gmail.com](mailto:kcbraunschweig@gmail.com)wrote:

> FWIW, seems related to [Mega slowness in custom require · Issue #73 · rubygems/rubygems · GitHub](https://github.com/rubygems/rubygems/issues/73)
> 
> Would be great to see this resolved. Very irritating.
> 
> KC
> 
> On Mon, Aug 6, 2012 at 2:20 PM, Charles Sullivan  
> [charlie.sullivan@gmail.com](mailto:charlie.sullivan@gmail.com) wrote:
> 
> > Yes, I can verify this. I also confirmed it was Ruby 1.9.2 by switching  
> > out  
> > to 1.9.3. For me it wasn't a big deal so I just decided to wait until  
> > Ruby  
> > gets bumped..
> > 
> > --Charlie
> > 
> > On Mon, Aug 6, 2012 at 4:05 PM, John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com)  
> > wrote:
> > 
> > > Looks like this already filed as a bug here:  
> > > [http://tickets.opscode.com/browse/CHEF-3295](http://tickets.opscode.com/browse/CHEF-3295). Thanks for pointing that  
> > > out  
> > > and I guess I should have searched JIRA first. 🙂
> > > 
> > > John
> > > 
> > > On Mon, Aug 6, 2012 at 3:59 PM, Phil Dibowitz [phil@ipom.com](mailto:phil@ipom.com) wrote:
> > > 
> > > > ## There's a bug for this (don't have the link but it was filed recently)...it's only omnibus and only on platforms where omnibus has the newer version of rubygems
> > > > 
> > > > Sent from my phone... Excuse horrible formatting.
> > > > 
> > > > John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com) wrote:
> > > > 
> > > > > Sorry about that. I forgot to mention these are omnibus installer  
> > > > > installations. Wow, what a difference then between the two projects,  
> > > > > a  
> > > > > 7.5x increase in just the initial startup time.
> > > > > 
> > > > > On Mon, Aug 6, 2012 at 3:23 PM, Bryan McLellan [btm@loftninjas.org](mailto:btm@loftninjas.org)  
> > > > > wrote:
> > > > > 
> > > > > > On Mon, Aug 6, 2012 at 1:15 PM, John Alberts  
> > > > > > [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com)  
> > > > > > wrote:
> > > > > > 
> > > > > > > Anyone else notice chef 10.12 release being significantly slow  
> > > > > > > just  
> > > > > > > on  
> > > > > > > startup compared to 10.10?
> > > > > > 
> > > > > > Most of the 10.12.0 packages were built with the new ruby omnibus  
> > > > > > project whereas 0.10.10 was mostly the clojure omnibus project, so  
> > > > > > there could be significant differences there.
> > > > > > 
> > > > > > Bryan
> > > > > 
> > > > > --  
> > > > > John Alberts
> > > 
> > > --  
> > > John Alberts
> > 
> > --  
> > Charles Sullivan  
> > [charlie.sullivan@gmail.com](mailto:charlie.sullivan@gmail.com)

--  
Stephane Jourdan [sjourdan@greenalto.com](mailto:sjourdan@greenalto.com)  
Green Alto (La Fabrique)  
10, Rue Chaptal / 34000 Montpellier, FR  
+33(0)484-252-190 / +33(0)684-531-618

---

<div class="post-metadata">

### Author: ![John\_Alberts](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/john_alberts/32/293_2.png) [@John\_Alberts](https://discourse.chef.io/u/John_Alberts)
#### Post date: [August 7, 2012, 3:22pm UTC](https://discourse.chef.io/t/re-re-re-chef-10-12-slower/3088/6 "2012-08-07T15:22:03Z")

</div>

How do you update the ruby for an Omnibus installed chef-client?

On Tue, Aug 7, 2012 at 9:26 AM, Stéphane Jourdan [sjourdan@greenalto.com](mailto:sjourdan@greenalto.com)wrote:

> Hi,
> 
> I confirm that with ruby 1.9.2 (from Omnibus or not) chef-client launch  
> times are 20 times higher (from 20 to 30 seconds on a typical ubuntu 12.04  
> m1.small on EC2).  
> Solved by migrating to ruby 1.9.3 where needed, and I'll stay with Ruby  
> 1.8.7 where I can (launch times usually under 2 seconds).
> 
> Cheers,  
> Stef
> 
> On Mon, Aug 6, 2012 at 11:40 PM, KC Braunschweig \<[kcbraunschweig@gmail.com](mailto:kcbraunschweig@gmail.com)
> 
> > wrote:
> 
> > FWIW, seems related to [Mega slowness in custom require · Issue #73 · rubygems/rubygems · GitHub](https://github.com/rubygems/rubygems/issues/73)
> > 
> > Would be great to see this resolved. Very irritating.
> > 
> > KC
> > 
> > On Mon, Aug 6, 2012 at 2:20 PM, Charles Sullivan  
> > [charlie.sullivan@gmail.com](mailto:charlie.sullivan@gmail.com) wrote:
> > 
> > > Yes, I can verify this. I also confirmed it was Ruby 1.9.2 by  
> > > switching out  
> > > to 1.9.3. For me it wasn't a big deal so I just decided to wait until  
> > > Ruby  
> > > gets bumped..
> > > 
> > > --Charlie
> > > 
> > > On Mon, Aug 6, 2012 at 4:05 PM, John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com)  
> > > wrote:
> > > 
> > > > Looks like this already filed as a bug here:  
> > > > [http://tickets.opscode.com/browse/CHEF-3295](http://tickets.opscode.com/browse/CHEF-3295). Thanks for pointing  
> > > > that out  
> > > > and I guess I should have searched JIRA first. 🙂
> > > > 
> > > > John
> > > > 
> > > > On Mon, Aug 6, 2012 at 3:59 PM, Phil Dibowitz [phil@ipom.com](mailto:phil@ipom.com) wrote:
> > > > 
> > > > > ## There's a bug for this (don't have the link but it was filed recently)...it's only omnibus and only on platforms where omnibus has the newer version of rubygems
> > > > > 
> > > > > Sent from my phone... Excuse horrible formatting.
> > > > > 
> > > > > John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com) wrote:
> > > > > 
> > > > > > Sorry about that. I forgot to mention these are omnibus installer  
> > > > > > installations. Wow, what a difference then between the two  
> > > > > > projects, a  
> > > > > > 7.5x increase in just the initial startup time.
> > > > > > 
> > > > > > On Mon, Aug 6, 2012 at 3:23 PM, Bryan McLellan [btm@loftninjas.org](mailto:btm@loftninjas.org)  
> > > > > > wrote:
> > > > > > 
> > > > > > > On Mon, Aug 6, 2012 at 1:15 PM, John Alberts  
> > > > > > > [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com)  
> > > > > > > wrote:
> > > > > > > 
> > > > > > > > Anyone else notice chef 10.12 release being significantly slow  
> > > > > > > > just  
> > > > > > > > on  
> > > > > > > > startup compared to 10.10?
> > > > > > > 
> > > > > > > Most of the 10.12.0 packages were built with the new ruby omnibus  
> > > > > > > project whereas 0.10.10 was mostly the clojure omnibus project, so  
> > > > > > > there could be significant differences there.
> > > > > > > 
> > > > > > > Bryan
> > > > > > 
> > > > > > --  
> > > > > > John Alberts
> > > > 
> > > > --  
> > > > John Alberts
> > > 
> > > --  
> > > Charles Sullivan  
> > > [charlie.sullivan@gmail.com](mailto:charlie.sullivan@gmail.com)
> 
> --  
> Stephane Jourdan [sjourdan@greenalto.com](mailto:sjourdan@greenalto.com)  
> Green Alto (La Fabrique)  
> 10, Rue Chaptal / 34000 Montpellier, FR  
> +33(0)484-252-190 / +33(0)684-531-618

--  
John Alberts

---

<div class="post-metadata">

### Author: ![Joshua\_Timberman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/joshua_timberman/32/424_2.png) [@Joshua\_Timberman](https://discourse.chef.io/u/Joshua_Timberman)
#### Post date: [August 7, 2012, 5:04pm UTC](https://discourse.chef.io/t/re-re-re-chef-10-12-slower/3088/7 "2012-08-07T17:04:26Z")

</div>

Ohai!

On Aug 6, 2012, at 3:05 PM, John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com) wrote:

> Looks like this already filed as a bug here: [http://tickets.opscode.com/browse/CHEF-3295](http://tickets.opscode.com/browse/CHEF-3295). Thanks for pointing that out and I guess I should have searched JIRA first. 🙂

It's not a particularly intuitive thing to search for - I found that ticket because I knew the topic precisely, and I had seen that ticket before :-).

I created a pull request that updates both Ruby and RubyGems to the latest current versions. This also relates to CHEF-2871, which was specific about updating to Ruby 1.9.3.

> <https://github.com/chef/omnibus-software/pull/3>
>
> \- Update Ruby to version 1.9.3-p194
> \- Update Rubygems to version 1.8.24
> 
> Users w…ill need to update their .gemrc if they are using SSL and do not
> have a globally valid SSL certificate, per RubyGems 1.8.23.

You may see some improvement by simply updating the RubyGems version on a system. You can do that with this:

% sudo /opt/chef/embedded/bin/gem update --system

To illustrate that this may positively affect the performance on its own, an isolated example (my 2 core, 8G Ubuntu 12.04 system):

% /opt/chef/embedded/bin/gem --version  
1.8.12

% time chef-client --help  
real 0m13.034s  
user 0m11.881s  
sys 0m0.408s

% sudo /opt/chef/embedded/bin/gem update --system  
...RubyGems 1.8.24 installed...

% /opt/chef/embedded/bin/gem --version  
1.8.24

% time chef-client --help  
real 0m2.286s  
user 0m1.912s  
sys 0m0.296s

---

<div class="post-metadata">

### Author: ![John\_Alberts](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/john_alberts/32/293_2.png) [@John\_Alberts](https://discourse.chef.io/u/John_Alberts)
#### Post date: [August 7, 2012, 5:11pm UTC](https://discourse.chef.io/t/re-re-re-chef-10-12-slower/3088/8 "2012-08-07T17:11:49Z")

</div>

On Tue, Aug 7, 2012 at 12:04 PM, Joshua Timberman [joshua@opscode.com](mailto:joshua@opscode.com)wrote:

> You may see some improvement by simply updating the RubyGems version on a  
> system.

Wow, that did it. Updated from rubygems 1.8.12 to 1.8.24 and running  
chef-client -h went from 10.1s to 1.6s! 🙂  
Thank you.

--  
John Alberts

---

<div class="post-metadata">

### Author: ![Andrea\_Campi](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/andrea_campi/32/514_2.png) [@Andrea\_Campi](https://discourse.chef.io/u/Andrea_Campi)
#### Post date: [August 8, 2012, 6:59am UTC](https://discourse.chef.io/t/re-re-re-chef-10-12-slower/3088/9 "2012-08-08T06:59:27Z")

</div>

On Tue, Aug 7, 2012 at 7:11 PM, John Alberts [john.m.alberts@gmail.com](mailto:john.m.alberts@gmail.com) wrote:

> On Tue, Aug 7, 2012 at 12:04 PM, Joshua Timberman [joshua@opscode.com](mailto:joshua@opscode.com)  
> wrote:
> 
> > You may see some improvement by simply updating the RubyGems version on a  
> > system.
> 
> Wow, that did it. Updated from rubygems 1.8.12 to 1.8.24 and running  
> chef-client -h went from 10.1s to 1.6s! 🙂

Another data point: this speeds up even ruby 1.9.3 tremendously.  
On a (rather old, Atom-based, slow server) chef-client -h went from 34s to 9s

Andrea

---

<div class="post-metadata">

### Author: ![Bryan\_McLellan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/bryan_mclellan/32/81_2.png) [@Bryan\_McLellan](https://discourse.chef.io/u/Bryan_McLellan)
#### Post date: [August 17, 2012, 9:24pm UTC](https://discourse.chef.io/t/re-re-re-chef-10-12-slower/3088/10 "2012-08-17T21:24:48Z")

</div>

On Wed, Aug 8, 2012 at 2:59 AM, Andrea Campi  
[andrea.campi@zephirworks.com](mailto:andrea.campi@zephirworks.com) wrote:

> > Wow, that did it. Updated from rubygems 1.8.12 to 1.8.24 and running  
> > chef-client -h went from 10.1s to 1.6s! 🙂
> 
> Another data point: this speeds up even ruby 1.9.3 tremendously.  
> On a (rather old, Atom-based, slow server) chef-client -h went from 34s to 9s

FYI, the Chef 10.14.0 Omnibus release is planned to be built on Ruby  
1.9.3-p194 and Rubygems 1.8.24. A release candidate should be  
available on Monday.

[http://tickets.opscode.com/browse/CHEF-3295](http://tickets.opscode.com/browse/CHEF-3295)

Bryan
