# Chef 10.12 slower?

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

<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, 8:15pm UTC](https://discourse.chef.io/t/chef-10-12-slower/3087/1 "2012-08-06T20:15:35Z")

</div>

Anyone else notice chef 10.12 release being significantly slow just on  
startup compared to 10.10?

[root@monitor01 ~]# time /opt/chef/bin/chef-client -h  
Usage: /opt/chef/bin/chef-client (options)  
-S, --server CHEFSERVERURL The chef server URL  
-k, --client\_key KEY\_FILE Set the client key file location  
-c, --config CONFIG The configuration file to use  
-d, --daemonize Daemonize the process  
-E, --environment ENVIRONMENT Set the Chef Environment on the node  
-g, --group GROUP Group to set privilege to  
-i, --interval SECONDS Run chef-client periodically, in  
seconds  
-j JSON\_ATTRIBS, Load attributes from a JSON file or URL  
–json-attributes  
-l, --log\_level LEVEL Set the log level (debug, info, warn,  
error, fatal)  
-L, --logfile LOGLOCATION Set the log file location, defaults to  
STDOUT - recommended for daemonizing  
-N, --node-name NODE\_NAME The node name for this client  
–once Cancel any interval or splay options,  
run chef once and exit  
-o RunlistItem,RunlistItem…, Replace current run list with  
specified items  
–override-runlist  
-P, --pid PIDFILE Set the PID file location, defaults to  
/tmp/chef-client.pid  
-s, --splay SECONDS The splay time for running at  
intervals, in seconds  
-u, --user USER User to set privilege to  
-K, --validation\_key KEY\_FILE Set the validation key file location,  
used for registering new clients  
-v, --version Show chef version  
-h, --help Show this message

_real 0m10.072s  
user 0m9.919s  
sys 0m0.175s_

[root@monitor01 ~]# rpm -qa | grep chef  
chef-10.12.0-1.el6.x86\_64

versus

[root@dc02vg0324na ~]# time /opt/opscode/bin/chef-client -h  
Usage: /opt/opscode/bin/chef-client (options)  
-S, --server CHEFSERVERURL The chef server URL  
-k, --client\_key KEY\_FILE Set the client key file location  
-c, --config CONFIG The configuration file to use  
-d, --daemonize Daemonize the process  
-E, --environment ENVIRONMENT Set the Chef Environment on the node  
-g, --group GROUP Group to set privilege to  
-i, --interval SECONDS Run chef-client periodically, in  
seconds  
-j JSON\_ATTRIBS, Load attributes from a JSON file or URL  
–json-attributes  
-l, --log\_level LEVEL Set the log level (debug, info, warn,  
error, fatal)  
-L, --logfile LOGLOCATION Set the log file location, defaults to  
STDOUT - recommended for daemonizing  
-N, --node-name NODE\_NAME The node name for this client  
–once Cancel any interval or splay options,  
run chef once and exit  
-override-runlist RunlistItem,RunlistItem…  
Replace current run list with  
specified items  
-P, --pid PIDFILE Set the PID file location, defaults to  
/tmp/chef-client.pid  
-s, --splay SECONDS The splay time for running at  
intervals, in seconds  
-u, --user USER User to set privilege to  
-K, --validation\_key KEY\_FILE Set the validation key file location,  
used for registering new clients  
-v, --version Show chef version  
-h, --help Show this message

_real 0m1.342s  
user 0m1.188s  
sys 0m0.140s_

[root@dc02vg0324na ~]# rpm -qa | grep chef  
chef-full-0.10.10-1

–  
John Alberts

---

<div class="post-metadata">

**Author:** ![Mike](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/mike/32/18_2.png) [@Mike](https://discourse.chef.io/u/Mike)\
**Post date:** [August 6, 2012, 8:19pm UTC](https://discourse.chef.io/t/chef-10-12-slower/3087/2 "2012-08-06T20:19:35Z")

</div>

Who built the packages? Are they installed with Opscode's Omnibus installer?

On Mon, Aug 6, 2012 at 4: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?
> 
> [root@monitor01 ~]# time /opt/chef/bin/chef-client -h  
> Usage: /opt/chef/bin/chef-client (options)  
> -S, --server CHEFSERVERURL The chef server URL  
> -k, --client\_key KEY\_FILE Set the client key file location  
> -c, --config CONFIG The configuration file to use  
> -d, --daemonize Daemonize the process  
> -E, --environment ENVIRONMENT Set the Chef Environment on the node  
> -g, --group GROUP Group to set privilege to  
> -i, --interval SECONDS Run chef-client periodically, in  
> seconds  
> -j JSON\_ATTRIBS, Load attributes from a JSON file or URL  
> --json-attributes  
> -l, --log\_level LEVEL Set the log level (debug, info, warn,  
> error, fatal)  
> -L, --logfile LOGLOCATION Set the log file location, defaults to  
> STDOUT - recommended for daemonizing  
> -N, --node-name NODE\_NAME The node name for this client  
> --once Cancel any interval or splay options,  
> run chef once and exit  
> -o RunlistItem,RunlistItem..., Replace current run list with specified  
> items  
> --override-runlist  
> -P, --pid PIDFILE Set the PID file location, defaults to  
> /tmp/chef-client.pid  
> -s, --splay SECONDS The splay time for running at  
> intervals, in seconds  
> -u, --user USER User to set privilege to  
> -K, --validation\_key KEY\_FILE Set the validation key file location,  
> used for registering new clients  
> -v, --version Show chef version  
> -h, --help Show this message
> 
> real 0m10.072s  
> user 0m9.919s  
> sys 0m0.175s
> 
> [root@monitor01 ~]# rpm -qa | grep chef  
> chef-10.12.0-1.el6.x86\_64
> 
> versus
> 
> [root@dc02vg0324na ~]# time /opt/opscode/bin/chef-client -h  
> Usage: /opt/opscode/bin/chef-client (options)  
> -S, --server CHEFSERVERURL The chef server URL  
> -k, --client\_key KEY\_FILE Set the client key file location  
> -c, --config CONFIG The configuration file to use  
> -d, --daemonize Daemonize the process  
> -E, --environment ENVIRONMENT Set the Chef Environment on the node  
> -g, --group GROUP Group to set privilege to  
> -i, --interval SECONDS Run chef-client periodically, in  
> seconds  
> -j JSON\_ATTRIBS, Load attributes from a JSON file or URL  
> --json-attributes  
> -l, --log\_level LEVEL Set the log level (debug, info, warn,  
> error, fatal)  
> -L, --logfile LOGLOCATION Set the log file location, defaults to  
> STDOUT - recommended for daemonizing  
> -N, --node-name NODE\_NAME The node name for this client  
> --once Cancel any interval or splay options,  
> run chef once and exit  
> -override-runlist RunlistItem,RunlistItem...  
> Replace current run list with specified  
> items  
> -P, --pid PIDFILE Set the PID file location, defaults to  
> /tmp/chef-client.pid  
> -s, --splay SECONDS The splay time for running at  
> intervals, in seconds  
> -u, --user USER User to set privilege to  
> -K, --validation\_key KEY\_FILE Set the validation key file location,  
> used for registering new clients  
> -v, --version Show chef version  
> -h, --help Show this message
> 
> real 0m1.342s  
> user 0m1.188s  
> sys 0m0.140s
> 
> [root@dc02vg0324na ~]# rpm -qa | grep chef  
> chef-full-0.10.10-1
> 
> --  
> John Alberts

---

<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 6, 2012, 8:23pm UTC](https://discourse.chef.io/t/chef-10-12-slower/3087/3 "2012-08-06T20:23:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aaron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/aaron/32/236_2.png) [@aaron](https://discourse.chef.io/u/aaron)\
**Post date:** [August 6, 2012, 8:28pm UTC](https://discourse.chef.io/t/chef-10-12-slower/3087/4 "2012-08-06T20:28:59Z")

</div>

Yes, as of the last couple of revs I've noticed terrible startup times on  
omnibus on ubuntu ec2 instances, typically around 45 seconds before seeing  
the version banner. I tried an m1.large and got 22 seconds before the  
banner. I took to running class by having folks daemonize it and send  
SIGUSR1s to kick off a run. I haven't had time to trace it yet, sorry.

-a

On Mon, Aug 6, 2012 at 1: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

---

<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, 8:29pm UTC](https://discourse.chef.io/t/chef-10-12-slower/3087/5 "2012-08-06T20:29:09Z")

</div>

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:** ![Jay\_Feldblum](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jay\_Feldblum](https://discourse.chef.io/u/Jay_Feldblum)\
**Post date:** [August 6, 2012, 8:34pm UTC](https://discourse.chef.io/t/chef-10-12-slower/3087/6 "2012-08-06T20:34:47Z")

</div>

Ruby 1.9.2 can, in some cases, have pathological Kernel#require performance.

Ruby 1.9.3 with the patch by Sokolov Yura (@funny-falcon) seems to perform  
much better.

Cheers,  
Jay

On Mon, Aug 6, 2012 at 4:29 PM, 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
