mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2007-08-29, 12:01   #1
abcd
 
Aug 2007

22 Posts
Default Is mprime significantly slower than Prime95?

Hi,

I installed Ubuntu 7.04 just couple of weeks ago. Until then I used Windows XP pro edition.

I have noticed that in windows, Prime95 took 0.071 ms per Iteration, while mprime takes about 0.120 ms per Iteration on Ubuntu 7.04, on the same computer. No other modifications has been made in it. The times refer to when the computer is idle.

Does anybody know what's the cause for this much slower calculation time?

Is there any way I could improve that?

Thanks in advanced.
abcd is offline   Reply With Quote
Old 2007-08-29, 14:23   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

5×937 Posts
Default

Was the same Mersenne number being tested? (Don't post it.)

What was the version number of mprime and of Prime95?

On typing "top" is mprime using 99-100% of the processor? ("q" to quit.)

Is your computer a multi-core one or one that has hyperthreading?

Last fiddled with by paulunderwood on 2007-08-29 at 14:28
paulunderwood is offline   Reply With Quote
Old 2007-08-29, 15:32   #3
abcd
 
Aug 2007

22 Posts
Default

1) The mersenne numbers are not the same. The one I test with mprime is bigger than the numbers I tested with Prime95.

2) Both are version 2414.

3) No, it uses about 35-49% of the CPU.

4) My CPU is Pentuim 4, one core.

Thanks.
abcd is offline   Reply With Quote
Old 2007-08-29, 15:51   #4
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

5×937 Posts
Default

Quote:
Originally Posted by abcd View Post
1) The mersenne numbers are not the same. The one I test with mprime is bigger than the numbers I tested with Prime95.

2) Both are version 2414.

3) No, it uses about 35-49% of the CPU.

4) My CPU is Pentuim 4, one core.

Thanks.
A bigger number will take longer. Please post the two numbers in the form 332xxxxx or whatever, to disguise your numbers but to let us know the FFT sizes used.

Running mprime under linux or prime95 under windows should not make much difference.

49% usage indicates your machine is a hyperthreading one. This can be switched off in BIOS. Doing this is up to you and others here might have more to say on this. Your computer is, however, now being used at "100%". This all assuming there is nothing else processor intensive under "top".

ps. Beware that you will not be able to boot a SMP linux kernel when there is no hyperthreading (nor multi-core.)

Last fiddled with by paulunderwood on 2007-08-29 at 15:55
paulunderwood is offline   Reply With Quote
Old 2007-08-29, 16:14   #5
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

2×32×13×37 Posts
Default

Quote:
ps. Beware that you will not be able to boot a SMP linux kernel when there is no hyperthreading (nor multi-core.)
We do it all the time. Most distros ship a SMP kernel by default, to cover everyone.

Single core (obviously!) Prescott P4:

Code:
$ uname -a
Linux p4 2.6.18-5-686 #1 SMP Sun Aug 12 21:57:02 UTC 2007 i686 GNU/Linux
Xyzzy is offline   Reply With Quote
Old 2007-08-29, 16:35   #6
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

5·937 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
We do it all the time. Most distros ship a SMP kernel by default, to cover everyone.
I made a mistake above; What really went wrong was that I tried to run a non-HT chip with the motherboard in HT mode and the SMP kernel panicked.

I notice that Ubuntu now have a default "generic kernel".

Last fiddled with by paulunderwood on 2007-08-29 at 16:41
paulunderwood is offline   Reply With Quote
Old 2007-08-29, 20:22   #7
abcd
 
Aug 2007

22 Posts
Default

On windows, most of the numbers were between 32**** and 35****.
Now, the number I'm testing is 399****.
Please note that I am not talking about the overall time to test a number, but the time it takes between Iterations.

My knowledge of linux is poor, but i'll try it.

Thanks.
abcd is offline   Reply With Quote
Old 2007-08-29, 22:40   #8
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

1106710 Posts
Default

That looks about right.

Go to http://www.mersenne.org/bench.htm
And scroll down.

You will notice that the numbers that you had been testing are in the purple column, while the current number is in the green. The bigger the number the more time per iteration (based upon the FFT size).
Uncwilly is online now   Reply With Quote
Old 2007-08-30, 11:33   #9
abcd
 
Aug 2007

22 Posts
Default

Thanks.
abcd is offline   Reply With Quote
Old 2007-08-31, 14:26   #10
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

2×3×13×83 Posts
Default

Note that the "iteration" in an LLtest of 2^n-1
consists primarily of squaring a n bit number.
davieddy is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime95 vs mprime Sticks210 Linux 4 2014-01-03 10:26
2 of 4 cores slow down significantly when I turn main monitor off markdjonson Information & Answers 9 2012-12-31 15:34
MPrime Significantly Faster than P95 Dubslow Software 8 2011-12-06 15:44
mprime vs. prime95 ThomRuley Linux 8 2004-08-02 17:32
Prime95 runs slower after Norton AntiVirus markhl Software 5 2003-10-20 13:39

All times are UTC. The time now is 14:03.


Fri Jul 7 14:03:03 UTC 2023 up 323 days, 11:31, 0 users, load averages: 0.60, 0.98, 1.09

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔