mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2007-02-24, 16:12   #1
Budgie
 
Feb 2007

1410 Posts
Default SMP on multi-processor machines

Hi, I am just starting with GIMPS using OS/2 machine and so far so good. However, I have a couple of old servers with quad Zeons which I would prefer to use on this project.

I see from these pages that recommended use of dual processor machines is to run two instances of software. Is there a Linux version of the software which will run one instance on all four Xeons in SMP mode? (Not a computer specialist so please forgive if question is dumb!).
Regards,
Budgie.
Budgie is offline   Reply With Quote
Old 2007-02-24, 23:23   #2
Cruelty
 
Cruelty's Avatar
 
May 2005

22×11×37 Posts
Default

hmmm, glucas comes to my mind
Cruelty is offline   Reply With Quote
Old 2007-02-25, 01:37   #3
Matt
 
Matt's Avatar
 
Feb 2007
San Francisco, Calif, USA

17 Posts
Default

Quote:
Originally Posted by Budgie View Post
Is there a Linux version of the software which will run one instance on all four Xeons in SMP mode?
No, because the problem can not be easily parallelized. However, you can launch four copies of mprime by running it with the -B4 option.

Matt
Matt is offline   Reply With Quote
Old 2007-02-25, 14:44   #4
T.Rex
 
T.Rex's Avatar
 
Feb 2004
France

92710 Posts
Default

Quote:
Originally Posted by Budgie View Post
Is there a Linux version of the software which will run one instance on all four Xeons in SMP mode ?
Cruelty proposed to use GLucas: GLucas is far as efficient than Prime95 is. One should rather use GLucas on architectures where Prime95 is not available (Itanium2, Power, SPARC, ...).
GLucas is parallelized. But using 2, 4 or more threads is less efficient than running 2, 4 or more instances.
George has worked on a parallelized version of Prime95. If I remember well, he said that this feature is OK but George is not satisfied by the performance when the PC is not fully devoted to Prime95. As an example, running parallelized Prime95 on a quad Xeons is OK if only Prime95 is running on the machine, because any program consuming at least 1 CPU will prevent the four threads of Prime95 to make progress ...
Since, in your case, it seems you want to use the 4 Xeons machines for GIMPS project only, it would be worth for you to use the new version of Prime95 on these slow machines: better to loose 10% of performance than waiting 3 months before an exponent is tested, with the risk of losing the disk of FileSystem during this time.
The problem is that George still does not plan to deliver this parallelized version of Prime95 ... I would be very happy to experiment it !
Look at this post in this thread.
Tony

Last fiddled with by T.Rex on 2007-02-25 at 14:57
T.Rex is offline   Reply With Quote
Old 2007-02-25, 23:26   #5
Budgie
 
Feb 2007

168 Posts
Default

Hi all and thanks very much for the helpful answers. I shall investigate options but IMHO a true multithreaded version of the software would be the best bet for the machines I have. Either for OS/2 or for 'nix would be fine. No M$ here.
Regards,
Budgie.
Budgie is offline   Reply With Quote
Old 2007-02-26, 23:07   #6
delta_t
 
delta_t's Avatar
 
Nov 2002
Anchorage, AK

5458 Posts
Default

In the meantime you could run mprime quite easily one per processor by using the -A option. basically you have one folder with mprime. then just do:
./mprime -A0 -b
./mprime -A1 -b
./mprime -A2 -b
./mprime -A3 -b
You could specify that each processor gets a different type of assignment. I've found on dual processor/dual core machines that splitting the assignments as one processor doing LL, the other doing factoring is a good on machines where you don't have dual channel memory. run some benches as your performance may vary depending on your memory.
delta_t is offline   Reply With Quote
Old 2007-02-27, 20:46   #7
Budgie
 
Feb 2007

2×7 Posts
Default

Quote:
Originally Posted by delta_t View Post
In the meantime you could run mprime quite easily one per processor by using the -A option. basically you have one folder with mprime. then just do:
./mprime -A0 -b
./mprime -A1 -b
./mprime -A2 -b
./mprime -A3 -b
You could specify that each processor gets a different type of assignment. I've found on dual processor/dual core machines that splitting the assignments as one processor doing LL, the other doing factoring is a good on machines where you don't have dual channel memory. run some benches as your performance may vary depending on your memory.
Hi, this is where my profound ignorance shows up. Have downloaded mprime2414.tar.gz, uncompressed and tried the first line to start the first instance, alas I get no questions from PrimeNet and no work to do. I guess I have done something wrong but a clue would be appreciated.
Regards,
Budgie.
Budgie is offline   Reply With Quote
Old 2007-02-28, 00:18   #8
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

100001000011002 Posts
Default

Show us the exact dialog of your interaction with the console.
Xyzzy is offline   Reply With Quote
Old 2007-02-28, 14:30   #9
Budgie
 
Feb 2007

2·7 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
Show us the exact dialog of your interaction with the console.
Hi, now there's a question! I just entered the commands one at a time in the console and they ran, just like that. No dialogue, nothing.

I have checked the log files and all four instances are working as expected Computer IDs have been assigned but no user ID or password.

Just a thought, all machines are on same lan using same router and my OS/2 machine is running mprime all the time too. Could the PrimeNet server have recognised me somehow by virtue of this connection?

If I could locate these accounts on PrimeNet I could hopefully put them all under my ID but cannot see them there at present.

Any suggestions would be much appreciated.
Regards,
Budgie
Budgie is offline   Reply With Quote
Old 2007-02-28, 19:41   #10
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

100001000011002 Posts
Default

They are running in the background then. Use "top" to view them. There are various controls in the shell to control them. I'd suggest setting up a cron job to start them and keep them running and set up an output file for each so you can see the progress. All of these have been covered here (somewhere) before.
Xyzzy is offline   Reply With Quote
Old 2007-02-28, 19:43   #11
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

210C16 Posts
Default

Also, for each instance, you need to run:

./mprime -m

to set it up.

(Note: I've never set up a multiprocessor deal before.)
Xyzzy is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
RSA multi factor labba FactorDB 2 2016-01-30 23:25
multi-core TF dbaugh Information & Answers 3 2011-09-06 01:32
Multi-threaded factoring bchaffin Aliquot Sequences 8 2010-10-24 13:38
Multi-Core / Multi-CPU Assignments (missing) worknplay Software 3 2008-11-05 17:26
Program Optimization for dual processor machines Altrus Software 4 2005-09-26 15:19

All times are UTC. The time now is 20:34.


Sat May 28 20:34:41 UTC 2022 up 44 days, 18:36, 0 users, load averages: 1.27, 1.31, 1.24

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, 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.

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