[LRUG] rib / gem etc slow to start

Richard Livsey richard at livsey.org
Thu Apr 18 08:49:15 PDT 2013


Re-compiling with -O2 / -O3 seems to have resolved matters.


On Thursday, 18 April 2013 at 13:25, Richard Livsey wrote: 
> Anyone come across irb / gem etc commands being very slow to start to the order of 2 to 5 seconds? 
> 
> rlivsey at app2:~$ time irb -v 
> irb 0.9.6(09/06/30)
> real 0m2.980s
> user 0m2.635s
> sys 0m0.344s
> 
> rlivsey at app2:~$ time gem -v
> 1.8.23
> real 0m3.387s
> user 0m2.862s
> sys 0m0.523s
> 
> 
> 
> Ruby itself is quick:
> 
> rlivsey at app2:~$ time ruby -v
> ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
> 
> real 0m0.147s
> user 0m0.072s
> sys 0m0.076s
> 
> 
> This is on a new Linode box running Ubuntu 10.04 LTS 64bit, 2GB RAM. Ruby is freshly compiled from source with ruby-build, so not lots of gems or anything like that.
> 
> Just updated rubygems to see if that did anything, no real effect there:
> 
> rlivsey at app2:~$ time gem -v 
> 2.0.3
> real 0m1.660s
> user 0m1.394s
> sys 0m0.267s
> 
> 
> 
> 
> On another Linode box I'd previously setup I get expected times:
> 
> rlivsey at app1:~$ time irb -v 
> irb 0.9.6(09/06/30) 
> 
> real 0m0.233s 
> user 0m0.184s 
> sys 0m0.050s 
> 
> rlivsey at app1:~$ time ruby -v 
> ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] 
> 
> real 0m0.010s 
> user 0m0.005s 
> sys 0m0.005s 
> 
> 
> 
> Cheers.
> 
> -- 
> Richard Livsey
> Co-Founder, MinuteBase 
> Meeting collaboration made easy
> http://minutebase.com
> +44 (0) 7841 260 797






More information about the Chat mailing list