Today, to kill some time, I wrote some Java to make 96 threads, do
some crypto stuff, and put the results into a Hashtable. I did this
primarily to pass time and also to see how the T5140 performed with
this number of threads. To compare results, I ran the same program on
my G5 Mac. The results surprised me a bit as they were roughly the
same. It seems odd to me that a 12 core T5140 would be about the same
as a 2x2GHz Power Mac G5, when every benchmark I read would say that
the T5140 would be very significantly quicker, especially under such
heavily threaded loads. I have also run some other programs on the
T5140, and it is indeed over twice as fast as the G5, sometimes 3 or 4
times quicker.
On Fri, 11 Jul 2008 09:12:04 -0700, thegman wrote:
> Today, to kill some time, I wrote some Java to make 96 threads, do
> some crypto stuff, and put the results into a Hashtable. I did this
> primarily to pass time and also to see how the T5140 performed with
> this number of threads. To compare results, I ran the same program on
> my G5 Mac. The results surprised me a bit as they were roughly the
> same. It seems odd to me that a 12 core T5140 would be about the same
> as a 2x2GHz Power Mac G5, when every benchmark I read would say that
> the T5140 would be very significantly quicker, especially under such
> heavily threaded loads. I have also run some other programs on the
> T5140, and it is indeed over twice as fast as the G5, sometimes 3 or 4
> times quicker.
> Any ideas?
Show us this java code of yours...?
maybe its not doing what you think.
Id be happy to test it on my 5120 eval..
I tested it vs, an M4000 yesterday (openssl speed -engine pkcs11 rsa)
and up to 2048 bits the 5120 beat the heck out of the M4K...
On Jul 11, 5:27*pm, AGT <usenetpersonger...@gmail.com> wrote:
> On Fri, 11 Jul 2008 09:12:04 -0700, thegman wrote:
> > Today, to kill some time, I wrote some Java to make 96 threads, do
> > some crypto stuff, and put the results into a Hashtable. I did this
> > primarily to pass time and also to see how the T5140 performed with
> > this number of threads. To compare results, I ran the same program on
> > my G5 Mac. The results surprised me a bit as they were roughly the
> > same. It seems odd to me that a 12 core T5140 would be about the same
> > as a 2x2GHz Power Mac G5, when every benchmark I read would say that
> > the T5140 would be very significantly quicker, especially under such
> > heavily threaded loads. I have also run some other programs on the
> > T5140, and it is indeed over twice as fast as the G5, sometimes 3 or 4
> > times quicker.
> > Any ideas?
>
> Show us this java code of yours...?
> maybe its not doing what you think.
> Id be happy to test it on my 5120 eval..
>
> I tested it vs, an M4000 yesterday (openssl speed -engine pkcs11 rsa)
> and up to 2048 bits the 5120 beat the heck out of the M4K...
No problem... There are two classes, in between the asterisks.
Would be interested to see how that goes on different machines, it's
changed since the first post, now it's going much faster on the Mac...
As it stands right now, it runs in about 5 secs on the G5, and 10 secs
on the 5140, both much slower if I use -Xint, but the Mac still edges
it.
Going by my history, I've probably made a head-slapping mistake, but
we'll see...
I've done more testing, and I'm wondering what sort of performance
penalty using Java threads has? I made my program take an argument of
number of threads to make, and tried running 100 threads, and then 10
processes at the same time each with 10 threads, the results are like
so:
I only make one call to a synchronized method, and that's at the end
of each thread, and extremely does very minimal work. So it would seem
that processes run much faster than threads on the T5140, which is not
terribly surprising as there must be all kinds of locks in there which
I didn't write and don't know about, but the difference is pretty big,
and also those locks would still apply on my Power Mac G5, and this
still manages pretty good performance with 100 threads:
(Power Mac G5, 2x2GHz)
################ (100 threads (3384 ms.) )
For most other multi-thread/process apps, the T5140 is a lot faster
than the G5, any ideas what's going on? I can mail anyone the source
code for my test program.