mersenneforum.org Linux vs Windows performance issue
 Register FAQ Search Today's Posts Mark Forums Read

 2010-05-19, 07:22 #1 Freezer   2·5·563 Posts Linux vs Windows performance issue Hi, I'm running mprime/prime95 on two identical computers, one is running Windows XP SP3 and the other runs Ubuntu 9.10. Both are now doing LL testing on large exponents (48 mil). Linux mprime per-iteration time is roughly 0.127 sec. Windows prime95 per-iteration time is roughly 0.055 sec. What's going on here?? Shouldn't Linux have better performance than Windows? Please help... thanks.
2010-05-19, 13:14   #2
Uncwilly
6809 > 6502

"""""""""""""""""""
Aug 2003
101×103 Posts

7·1,523 Posts

Quote:
 Originally Posted by Freezer What's going on here??
How many exponents are each of them working on? Is hyperthreading on for the Windows machine?

2010-05-19, 13:32   #3
retina
Undefined

"The unspeakable one"
Jun 2006
My evil lair

2·3·1,093 Posts

Quote:
 Originally Posted by Freezer Shouldn't Linux have better performance than Windows?
No. Why do you think that?

In my experience the Windows scheduler is very efficient. Whereas the Linux scheduler is very average.

 2010-05-19, 13:46 #4 rajula     "Tapio Rajala" Feb 2010 Finland 32·5·7 Posts Are you sure you have installed 64-bit linux and using 64-bit mprime?
2010-05-19, 14:20   #5
joblack

Oct 2008
n00bville

2·5·73 Posts

Quote:
 Originally Posted by Freezer Hi, I'm running mprime/prime95 on two identical computers, one is running Windows XP SP3 and the other runs Ubuntu 9.10. Both are now doing LL testing on large exponents (48 mil). Linux mprime per-iteration time is roughly 0.127 sec. Windows prime95 per-iteration time is roughly 0.055 sec. What's going on here?? Shouldn't Linux have better performance than Windows? Please help... thanks.
I've got the same problem (described in the hardware thread in more detail). It's a dual boot solution (means it's the same hardware) and the configuration is the same.

It seems that the mprime is slower in certain circumstances (on my main Pc the win and linux version performs the same). Haven't heart from Mr. Prime95 so far but it seems to be a problem.

PS: Retina - the Linux scheduler is very fast - even if it wouldn't be half of the performance is a little bit over the top ;).

Last fiddled with by joblack on 2010-05-19 at 14:21

2010-05-19, 16:13   #6
retina
Undefined

"The unspeakable one"
Jun 2006
My evil lair

2×3×1,093 Posts

Quote:
 Originally Posted by joblack PS: Retina - the Linux scheduler is very fast - even if it wouldn't be half of the performance is a little bit over the top ;).
I was just responding to the sentence I quoted. The thing with 1/2 performance is entirely a different matter.

2010-05-19, 17:26   #7
__HRB__

Dec 2008
Boycotting the Soapbox

24·32·5 Posts

Quote:
I doubt it's a Linux-issue. You could try ruling out a debian/*buntu-issue by picking some other 64-bit live-CD from http://distrowatch.com/

2010-05-19, 17:55   #8
jrk

May 2008

3×5×73 Posts

Quote:
 Originally Posted by Freezer Hi, I'm running mprime/prime95 on two identical computers, one is running Windows XP SP3 and the other runs Ubuntu 9.10. Both are now doing LL testing on large exponents (48 mil). Linux mprime per-iteration time is roughly 0.127 sec. Windows prime95 per-iteration time is roughly 0.055 sec. What's going on here?? Shouldn't Linux have better performance than Windows? Please help... thanks.
Check whether CPU frequency scaling is being used.

2010-05-19, 21:05   #9
joblack

Oct 2008
n00bville

73010 Posts

Quote:
 Originally Posted by jrk Check whether CPU frequency scaling is being used.
I can speak for my configuration. I have the cpufreq configuration set up to 'performance' and it didn't change the bad performance.

By the way I got the same kernel version from the same source (debian amd64 2.6.32-x) and I also tried the 2.6.34 (self-compiled - nothing changed).

 2010-05-20, 01:05 #10 __HRB__     Dec 2008 Boycotting the Soapbox 24·32·5 Posts Hm...what happens when you start another instance of mprime? If the performance/process is unchanged on linux but drops by ~50% on windows it's obvious that we should check the configuration for multithreading (presumably you have a dual core processor).
2010-05-20, 16:27   #11
joblack

Oct 2008
n00bville

2·5·73 Posts

Quote:
 Originally Posted by __HRB__ Hm...what happens when you start another instance of mprime? If the performance/process is unchanged on linux but drops by ~50% on windows it's obvious that we should check the configuration for multithreading (presumably you have a dual core processor).
The point is that top shows a fairly good processor use (around 190 %) so both cores are occupied.

Perhaps mprime does the wrong cpu allocation ...

 Similar Threads Thread Thread Starter Forum Replies Last Post VictordeHolland GMP-ECM 7 2018-02-21 17:19 cuBerBruce Information & Answers 2 2017-07-10 13:43 Unregistered Information & Answers 14 2010-04-10 21:47 joblack Software 2 2010-03-21 15:56 Schamschi Software 5 2009-09-20 20:45

All times are UTC. The time now is 17:00.

Mon Aug 8 17:00:41 UTC 2022 up 32 days, 11:48, 1 user, load averages: 1.15, 1.63, 1.42