Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby on Solaris 10 performance problems

Reply
Thread Tools

Ruby on Solaris 10 performance problems

 
 
Colin Mackenzie
Guest
Posts: n/a
 
      01-28-2009
We just installed ruby on a
Sun T1000, 6 core UltraSPARC T1 cpu, 4G memory , Solaris 10

Right now Windows is out performing an Ultra SPARC by 25 seconds! Does
anyone know why this would be the case. I have downloaded ruby and
compiled it on the hardware, i have tried the binaries from sunfreeware
and the results are the same. Actually, the results from my compile were
a second or two worse than the binaries from SUN!


This is the program ran for the bench mark. I called it t.rb

require 'benchmark'

array = (1..1000000).map { rand }

Benchmark.bmbm do |x|
x.report("sort!") { array.dup.sort! } #this sorts the array.
x.report("sort") { array.dup.sort } #this makes a copy of the
array and sorts it.
end


###########################################

Solaris v10
# ruby t.rb
Rehearsal -----------------------------------------
sort! 29.450000 0.020000 29.470000 ( 29.458899)
sort 29.760000 0.010000 29.770000 ( 29.772163)
------------------------------- total: 59.240000 sec

user system total real
sort! 29.060000 0.010000 29.070000 ( 29.064410)
sort 29.070000 0.000000 29.070000 ( 29.076217)
#

Windows

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\cmackenzie>ruby t.rb
Rehearsal -----------------------------------------
sort! 4.735000 0.000000 4.735000 ( 4.813000)
sort 4.359000 0.000000 4.359000 ( 4.390000)
-------------------------------- total: 9.094000 sec
user system total real
sort! 4.313000 0.000000 4.313000 ( 4.375000)
sort 4.297000 0.015000 4.312000 ( 4.422000)

C:\Documents and Settings\cmackenzie>

Ubuntu Linux

colmac@sideshowbob: ruby t.rb
Rehearsal -----------------------------------------
sort! 3.310000 0.010000 3.320000 ( 3.317860)
sort 3.250000 0.020000 3.270000 ( 3.270037)
-------------------------------- total: 6.5890000 sec

user system total real
sort! 3.280000 0.030000 3.10000 ( 3.318575)
sort 3.250000 0.020000 3.270000 ( 3.269284)
colmac@sideshowbob:
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Daniel Berger
Guest
Posts: n/a
 
      01-28-2009


On Jan 28, 12:36=A0pm, Colin Mackenzie <(E-Mail Removed)> wrote:
> We just installed ruby on a
> Sun T1000, 6 core UltraSPARC T1 cpu, 4G memory =A0, Solaris 10
>
> Right now Windows is out performing an Ultra SPARC by 25 seconds! Does
> anyone know why this would be the case.


<snip>

What version of Ruby?
Which compiler?
What flags did you build with?
Have you seen http://tinyurl.com/dln99p ?

Regards,

Dan

 
Reply With Quote
 
 
 
 
Colin Mackenzie
Guest
Posts: n/a
 
      01-29-2009

> What version of Ruby?

ruby 1.8.7 (2008-08-11 patchlevel 72) [sparc-solaris2.10]

> Which compiler?

gcc (GCC) 3.4.6

> What flags did you build with?

I ran configure , what ever default flags it used.

> Have you seen http://tinyurl.com/dln99p ?

no I will check it out.

# uname -a
SunOS tk3 5.10 Generic_137137-09 sun4v sparc SUNW,Sun-Fire-T1000

btw, downloaded binaries from blastwave.org and the results are even
worse..
#./ruby --version
ruby 1.8.7 (2008-06-20 patchlevel 22) [sparc-solaris2.8]uname
# ./ruby t.rb
Rehearsal -----------------------------------------
sort! 34.080000 0.020000 34.100000 ( 34.098341)
sort 33.430000 0.010000 33.440000 ( 33.443781)
------------------------------- total: 67.540000sec
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Robert Klemme
Guest
Posts: n/a
 
      01-29-2009
2009/1/28 Colin Mackenzie <(E-Mail Removed)>:
> We just installed ruby on a
> Sun T1000, 6 core UltraSPARC T1 cpu, 4G memory , Solaris 10
>
> Right now Windows is out performing an Ultra SPARC by 25 seconds! Does
> anyone know why this would be the case.


SPARC processors are slow, raw CPU speed is not among the strengths of
those beasts - especially since Ruby does not use native threads.
You're putting the load on a single core only (well, your test does
not contain any concurrency anyway ).

It's pretty easy to see why: RISC has fewer machine instructions which
take one clock to execute. Nowadays CISC processors come close to
taking one clock as well by using pipelining, branch prediction and
what not. But CISC processor commands are more powerful, so you need
multiple RISC commands to do the same amount of work. And since clock
speeds slowly reach physical limits RISC cannot compensate with higher
clock rates. That's why RISK is falling behind. IMHO it's a dead
technology.

Kind regards

robert

--
remember.guy do |as, often| as.you_can - without end

 
Reply With Quote
 
Colin Mackenzie
Guest
Posts: n/a
 
      01-29-2009
Robert Klemme wrote:
...snip... IMHO it's a dead technology.

Thanks, Robert, I had a bad feeling about that.

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Robert Klemme
Guest
Posts: n/a
 
      01-29-2009
2009/1/29 Colin Mackenzie <(E-Mail Removed)>:
> Robert Klemme wrote:
> ...snip... IMHO it's a dead technology.
>
> Thanks, Robert, I had a bad feeling about that.




I don't say that Sparc machines or Solaris operating systems do not
have their merits. It's just that raw CPU speed is not among them.

Cheers

robert

--
remember.guy do |as, often| as.you_can - without end

 
Reply With Quote
 
Mark Thomas
Guest
Posts: n/a
 
      01-29-2009
On Jan 28, 2:36*pm, Colin Mackenzie <(E-Mail Removed)> wrote:
> We just installed ruby on a
> Sun T1000, 6 core UltraSPARC T1 cpu, 4G memory *, Solaris 10
>
> Right now Windows is out performing an Ultra SPARC by 25 seconds! Does
> anyone know why this would be the case. I have downloaded ruby and
> compiled it on the hardware, i have tried the binaries from sunfreeware
> and the results are the same. Actually, the results from my compile were
> a second or two worse than the binaries from SUN!


I wonder what kind of performance you'd get if you used JRuby 1.1.6+
 
Reply With Quote
 
Simon Krahnke
Guest
Posts: n/a
 
      01-30-2009
* Colin Mackenzie <(E-Mail Removed)> (2009-01-2 schrieb:

What machine are

> Microsoft Windows XP [Version 5.1.2600]


and

> Ubuntu Linux


running on?

mfg, simon .... l
 
Reply With Quote
 
Colin Mackenzie
Guest
Posts: n/a
 
      01-30-2009
Mark Thomas wrote:
> On Jan 28, 2:36�pm, Colin Mackenzie <(E-Mail Removed)> wrote:
>> We just installed ruby on a
>> Sun T1000, 6 core UltraSPARC T1 cpu, 4G memory �, Solaris 10
>>
>> Right now Windows is out performing an Ultra SPARC by 25 seconds! Does
>> anyone know why this would be the case. I have downloaded ruby and
>> compiled it on the hardware, i have tried the binaries from sunfreeware
>> and the results are the same. Actually, the results from my compile were
>> a second or two worse than the binaries from SUN!

>
> I wonder what kind of performance you'd get if you used JRuby 1.1.6+


java runs 7 times slower on this RISC platform, just going to drop it.
Every thing runs slow
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Colin Mackenzie
Guest
Posts: n/a
 
      01-30-2009
Simon Krahnke wrote:
> * Colin Mackenzie <(E-Mail Removed)> (2009-01-2 schrieb:
>
> What machine are
>
>> Microsoft Windows XP [Version 5.1.2600]

>
> and
>
>> Ubuntu Linux

>
> running on?
>
> mfg, simon .... l


at this point it does not matter. really the only question was why it is
running so slow on Solaris platform. Robert gave me the answer. Thanks
though.
If you are interested
Ubuntu is on an intel E4500@2.2GHz
Windows is on a Dell LapTop D630
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python performance on Solaris inaf Python 10 10-17-2009 07:29 AM
java, multithreading, fork() - performance problem on Solaris bugbear Java 4 03-28-2008 07:25 PM
JNI Invokation problems on Solaris Hf Java 0 02-26-2004 03:34 PM
Complie PERL Solaris 9 64-bit problems krigare Perl 0 12-27-2003 05:52 PM
JVM performance Linux versus AIX/Solaris thomhashi Java 2 10-31-2003 08:02 AM



Advertisments