[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

gem install SUPER SLOW in linux virtual machine

Max Williams

1/22/2008 1:20:00 PM

I'm switching a project over to working in a linux virtual machine,
running in windows xp. Ruby and rails are working generally, but
there's one gem (ferret) that i need to get for this project. I typed
in "gem install ferret" and got a message "Updating metadata for 903
gems from http://gems.rubyforge....

Fair enough, except that it's been doing that for over an hour now (more
like an hour and a half). Whenever i've done this in windows it's taken
a minute or two at most.

Does anyone know why it might be so slow? My network connection (wired)
out of the linux vm is otherwise pretty fast, about 6 Mb at the moment.

thanks
max
--
Posted via http://www.ruby-....

5 Answers

Max Williams

1/22/2008 2:14:00 PM

0

Max Williams wrote:
> I'm switching a project over to working in a linux virtual machine,
> running in windows xp. Ruby and rails are working generally, but
> there's one gem (ferret) that i need to get for this project. I typed
> in "gem install ferret" and got a message "Updating metadata for 903
> gems from http://gems.rubyforge....
>
> Fair enough, except that it's been doing that for over an hour now (more
> like an hour and a half). Whenever i've done this in windows it's taken
> a minute or two at most.
>
> Does anyone know why it might be so slow? My network connection (wired)
> out of the linux vm is otherwise pretty fast, about 6 Mb at the moment.
>
> thanks
> max

I ended up killing this and forcing the install without update with

sudo gem install ferret --no-update-sources

So, i'm up and running but still puzzled over why it was taking so long.
I tried starting it again and once again it looked like taking much
longer than usual (I killed it again). So, if anyone has any ideas i'd
still like to know :)
--
Posted via http://www.ruby-....

Daniel Lucraft

1/22/2008 3:13:00 PM

0

Max Williams wrote:
> So, i'm up and running but still puzzled over why it was taking so long.
> I tried starting it again and once again it looked like taking much
> longer than usual (I killed it again). So, if anyone has any ideas i'd
> still like to know :)

If you're not running >1.0.0 then try upgrading.

In previous versions Rubygems used up a LOT of memory as YAML parsed the
update log. On my server this led to memory swapping and taking ages.
It's largely fixed in later versions. I think they use Marshal now??

best,
Dan
--
Posted via http://www.ruby-....

Eric Hodel

1/24/2008 12:56:00 AM

0

On Jan 22, 2008, at 06:14 AM, Max Williams wrote:
> Max Williams wrote:
>> I'm switching a project over to working in a linux virtual machine,
>> running in windows xp. Ruby and rails are working generally, but
>> there's one gem (ferret) that i need to get for this project. I
>> typed
>> in "gem install ferret" and got a message "Updating metadata for 903
>> gems from http://gems.rubyforge....
>>
>> Fair enough, except that it's been doing that for over an hour now
>> (more
>> like an hour and a half). Whenever i've done this in windows it's
>> taken
>> a minute or two at most.
>>
>> Does anyone know why it might be so slow? My network connection
>> (wired)
>> out of the linux vm is otherwise pretty fast, about 6 Mb at the
>> moment.
>>
> I ended up killing this and forcing the install without update with
>
> sudo gem install ferret --no-update-sources
>
> So, i'm up and running but still puzzled over why it was taking so
> long.
> I tried starting it again and once again it looked like taking much
> longer than usual (I killed it again). So, if anyone has any ideas
> i'd
> still like to know :)

Can you run it under the profiler?

Bill Kelly

1/24/2008 1:32:00 AM

0


From: "Max Williams" <toastkid.williams@gmail.com>
> Max Williams wrote:
>> I'm switching a project over to working in a linux virtual machine,
>> running in windows xp. Ruby and rails are working generally, but
>> there's one gem (ferret) that i need to get for this project. I typed
>> in "gem install ferret" and got a message "Updating metadata for 903
>> gems from http://gems.rubyforge....
>>
>> Fair enough, except that it's been doing that for over an hour now (more
>> like an hour and a half). Whenever i've done this in windows it's taken
>> a minute or two at most.
>>
>> Does anyone know why it might be so slow? My network connection (wired)
>> out of the linux vm is otherwise pretty fast, about 6 Mb at the moment.

Any possibility the virtual machine was swapping (out of RAM) ?

That happened to me on a 512 MB linux system under VMWare, during the
"building rdoc documentation" portion of a gem install... it was swapping
so badly it became horrendously slow... I let it run for a couple hours before
giving up and killing it.


Regards,

Bill



Max Williams

1/24/2008 10:11:00 AM

0

Eric Hodel wrote:

> Can you run it under the profiler?

sure - using 'top' (the extent of my profiling knowledge) i can see that
gem is using
cpu - negligible (0.2%)
ram - 10% (of the virtual memory allocated to the virtual machine?)
virt - 63624 (is this in kB? 63 meg sounds about right for 10%)

So, it doesn't seem to be using excessive amounts of memory, but i don't
know enough to tell whether lots of swapping is happening.

Thanks for the help guys btw :)
--
Posted via http://www.ruby-....