- From: AJ Christensen <
>
- To:
- Subject: [chef] Re: Re: debugging slow knife?
- Date: Wed, 4 May 2011 08:18:41 +1200
You got something bogus in your knife.rb(s)?
On 4 May 2011 05:28, Alex Soto
<
>
wrote:
>
Don't have a solution for you, just giving some comparison numbers:
>
>
MacBook Pro, 2.66Ghz i7, 7200 rpm drive
>
$ time knife node show i-1a795175
>
real 0m1.071s
>
user 0m0.346s
>
sys 0m0.116s
>
>
$ time knife help
>
real 0m0.410s
>
user 0m0.311s
>
sys 0m0.098s
>
>
$ ruby -v
>
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.4.0]
>
>
On May 3, 2011, at 9:54 AM, Michael Schueler wrote:
>
>
> Hi Chefs,
>
>
>
> I'm using the opscode platform. Before 0.10 the knife command was
>
> unbearably slow. It's definately at least twice as fast, but it's still
>
> kind of sluggish. Even issuing the help command to knife takes 2 seconds.
>
>
>
> Some simple stuff:
>
>
>
> Off my MacBook Pro..
>
> % time knife node show e02
>
> <snip>
>
> knife node show e02 3.17s user 0.23s system 74% cpu 4.544 total
>
>
>
> % time knife help
>
> <snip>
>
> knife help 2.12s user 0.17s system 99% cpu 2.296 total
>
>
>
> % ruby -v
>
> ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
>
>
>
>
>
> My results are similar from an ec2 c1.xlarge...
>
>
>
> # time knife ec2 --help
>
> <snip>
>
> real 0m1.843s
>
> user 0m1.300s
>
> sys 0m0.550s
>
>
>
> # ruby -v
>
> ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
>
>
>
>
>
> Is this expected? It might not seem like much but it's enough to really
>
> slow me down and annoy me..
>
>
>
> Thanks
>
> Mike
>
>
Archive powered by MHonArc 2.6.16.