Chef is slow on windows


#1

Hi Opscode / Chef Developers / Chef Users,

I have been using chef on windows and the speed of chef-client on windows
is very slow because it takes more time to load OHAI data etc on windows
platform.

Is there a way we can solve this problem because it is affecting the
performance of the app on windows?

Is Opscode working on this to solve the problem if there is no good
solution now and what is the timeline ?

Thanks
Akshay


#2

Would you be able to provide more info? These would all be helpful:

-How long does it take to run on your Windows machine (and include OS & patch set details), and how long does it take to run on a Linux (again, distro & version) machine on similar hardware?

-Redirecting the output to a file, how big is the file on each platform?

-What versions and implementations of Ruby are being used? (MRI, Rubinius, jRuby, IronRuby, etc)

-Are either machine in and LDAP/AD domain, and is OHAI outputting the users and groups?

-Waldo

Composed with two thumbs.

On Mar 20, 2013, at 3:50, Akshay Pratinav akshaypratinav@gmail.com wrote:

Hi Opscode / Chef Developers / Chef Users,

I have been using chef on windows and the speed of chef-client on windows is very slow because it takes more time to load OHAI data etc on windows platform.

Is there a way we can solve this problem because it is affecting the performance of the app on windows?

Is Opscode working on this to solve the problem if there is no good solution now and what is the timeline ?

Thanks
Akshay


#3

I’m also seeing slow chef-client startup times on Windows. Not sure if it is ohai or something else.

Is there a good way to get timing data? A debug logging mode?

-Pete

On Mar 20, 2013, at 12:50 AM, Akshay Pratinav akshaypratinav@gmail.com wrote:

Hi Opscode / Chef Developers / Chef Users,

I have been using chef on windows and the speed of chef-client on windows is very slow because it takes more time to load OHAI data etc on windows platform.

Is there a way we can solve this problem because it is affecting the performance of the app on windows?

Is Opscode working on this to solve the problem if there is no good solution now and what is the timeline ?

Thanks
Akshay


#4

Check out http://tickets.opscode.com/browse/OHAI-357

On Mar 20, 2013, at 4:54 PM, “Peter Loron” <peterl@standingwave.orgmailto:peterl@standingwave.org> wrote:

I’m also seeing slow chef-client startup times on Windows. Not sure if it is ohai or something else.

Is there a good way to get timing data? A debug logging mode?

-Pete

On Mar 20, 2013, at 12:50 AM, Akshay Pratinav <akshaypratinav@gmail.commailto:akshaypratinav@gmail.com> wrote:

Hi Opscode / Chef Developers / Chef Users,

I have been using chef on windows and the speed of chef-client on windows is very slow because it takes more time to load OHAI data etc on windows platform.

Is there a way we can solve this problem because it is affecting the performance of the app on windows?

Is Opscode working on this to solve the problem if there is no good solution now and what is the timeline ?

Thanks
Akshay


#5

You can selectively remove some ohai plugins if you don’t need their data.
The most common example for this that I’ve noticed on this list is
removing the passwd plugin which gets a list of users from your naming
service (AD, I’d guess):
http://wiki.opscode.com/display/chef/Disabling+Ohai+Plugins. Basically
something like crawling for users in your AD server could be the cause of
your slowness, so you can try excluding passwd and see if it works for you
and your cookbooks, and if it does, then problem solved. If not, try other
plugins one-at-a-time until you have success.

-Peter

On Wed, Mar 20, 2013 at 3:50 AM, Akshay Pratinav
akshaypratinav@gmail.comwrote:

Hi Opscode / Chef Developers / Chef Users,

I have been using chef on windows and the speed of chef-client on windows
is very slow because it takes more time to load OHAI data etc on windows
platform.

Is there a way we can solve this problem because it is affecting the
performance of the app on windows?

Is Opscode working on this to solve the problem if there is no good
solution now and what is the timeline ?

Thanks
Akshay


#6

In addition to these data points, it’s good to know how long a simple
chef-client -v takes as well and a high-level assessment of average cpu
utilization (the metric typically reported by taskmgr) during the
chef-client -v execution interval.

Opscode has been watching performance on Windows, the most recent work
here was tracked by http://tickets.opscode.com/browse/CHEF-3485, where
upgrading the Windows Omnibus package from Ruby 1.9.2 to Ruby 1.9.3
reduced periods of high cpu utilization (and overall execution time) ~
30-50%. Most of this came from cpu time spent processing requires. More
details in the aforementioned ticket, along with other future
optimizations under consideration.

Thanks for sharing the data on what you’re seeing.

-Adam


Adam Edwards,
Software Development Engineer, Opscode, Inc.

From: Peter Norton <pn+chef-list@knewton.commailto:pn+chef-list@knewton.com>
Reply-To: "chef@lists.opscode.commailto:chef@lists.opscode.com" <chef@lists.opscode.commailto:chef@lists.opscode.com>
Date: Wednesday, March 20, 2013 12:31 PM
To: "chef@lists.opscode.commailto:chef@lists.opscode.com" <chef@lists.opscode.commailto:chef@lists.opscode.com>
Subject: [chef] Re: Chef is slow on windows

You can selectively remove some ohai plugins if you don’t need their data. The most common example for this that I’ve noticed on this list is removing the passwd plugin which gets a list of users from your naming service (AD, I’d guess): http://wiki.opscode.com/display/chef/Disabling+Ohai+Plugins. Basically something like crawling for users in your AD server could be the cause of your slowness, so you can try excluding passwd and see if it works for you and your cookbooks, and if it does, then problem solved. If not, try other plugins one-at-a-time until you have success.

-Peter

On Wed, Mar 20, 2013 at 3:50 AM, Akshay Pratinav <akshaypratinav@gmail.commailto:akshaypratinav@gmail.com> wrote:
Hi Opscode / Chef Developers / Chef Users,

I have been using chef on windows and the speed of chef-client on windows is very slow because it takes more time to load OHAI data etc on windows platform.

Is there a way we can solve this problem because it is affecting the performance of the app on windows?

Is Opscode working on this to solve the problem if there is no good solution now and what is the timeline ?

Thanks
Akshay