[chef] Re: debugging slow knife?


Chronological Thread 
  • From: Alex Soto < >
  • To:
  • Subject: [chef] Re: debugging slow knife?
  • Date: Tue, 3 May 2011 10:28:46 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=GgKFrJKq8nmd+c5l2LezQlYCr6ocQ9VurxJrgfkUQw/ujC/pzk1tSSrqg0YDMd7HMV N/dqe0qnTe+G7CRARiaT5hDtsrABib1Tqs6cTqAvpgTks6R8O+FqDgOP4qY17t4u0tTv XtzEH419m/HJUSIr2oc4xaXYA0AJPYWBnkQ+c=

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.

§