- From: Alon Rohter <
>
- To:
- Subject: [chef] Re: Re: Re: debugging slow knife?
- Date: Tue, 3 May 2011 16:07:42 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=vd7w0209nHIUhTdaoIyr3wD0yKUxiNthpmTRtTeYH5eEKJ/C4I8TsRlrghD+SBmTvP ZHUXj6TtkIB2MIA6DXljbi55i/1ian6A4weLkLgCvJsgiuWK8J05qqE91RgVDiBcq/Sm 69/X4xDI96/OZWQj6ujR2svkvjUvj0+im6UIc=
I get similar timings. knife config dl from the console organization
Generate knife config. 3x runs of each:
$ time knife help
real 0m2.555s
user 0m0.295s
sys 0m1.185s
real 0m1.520s
user 0m0.327s
sys 0m1.045s
real 0m1.524s
user 0m0.343s
sys 0m1.076s
$ time knife client list
real 0m3.039s
user 0m0.343s
sys 0m1.465s
real 0m2.501s
user 0m0.374s
sys 0m1.435s
real 0m2.567s
user 0m0.389s
sys 0m1.419s
-A
On Tue, May 3, 2011 at 1:18 PM, AJ Christensen
<
>
wrote:
>
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.