mersenneforum.org  

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

Reply
 
Thread Tools
Old 2002-09-13, 16:55   #1
guido72
 
guido72's Avatar
 
Aug 2002
Rovereto (Italy)

9F16 Posts
Default Mprime runs relatively slow

Hi all!
Recentely I've decided to learn a bit more about Linux, since I get bored with Windows blue Deaths and want to try to set a diskless LAN (Thank you Alf!).
I've installed Mandrake 8.2 but mprime 22.9, even it seems to detect the CPU correctely, doesn't uses the SSE2 George's optimization. As a result, "Pepe", a 2.0 Ghz P4 is working relatively slowly...
What's going wrong?
Regards
guido72 is offline   Reply With Quote
Old 2002-09-13, 17:35   #2
crash893
 
crash893's Avatar
 
Sep 2002

29610 Posts
Default

look in the undoc.txt

make it use it there is a option you add to prime.ini
crash893 is offline   Reply With Quote
Old 2002-09-13, 18:40   #3
ebx
 
ebx's Avatar
 
Aug 2002

6516 Posts
Default

See the thread below, 'Why it kept saying I got a P3'.

It was FreeBSD in that case. I ended up recompiling the kernel with an option to enable SEE2. I wonder if your Linux has the same problem.
ebx is offline   Reply With Quote
Old 2002-09-13, 20:49   #4
guido72
 
guido72's Avatar
 
Aug 2002
Rovereto (Italy)

3·53 Posts
Default Everithing seems OK now...

Quote:
Originally Posted by ebx
See the thread below, 'Why it kept saying I got a P3'.

It was FreeBSD in that case. I ended up recompiling the kernel with an option to enable SEE2. I wonder if your Linux has the same problem.
It was me... I just was using an old version of mprime... Sorry ops: ops:

Few questions from a Linux absolute novice:

I've ran mprime from an ordinary shell window with the command
./mprime - m -w/[path of win98 shared working directory], since sometimes I boot Win as well. Well, mprime seems to take its config files from this shared dir but it is saving its back-up files (PXXXXXXXX) just in its linux dir, not in the shared one. What do I have to do?

How to be sure that mprime starts everytime the system boot?

If I close the terminal do I close mprime as well? That is: in Linux click on "X" is like to kill an application?

Is a good sensation to have once again some command to type on a console (it remember me the ancient times...) but I've lost familiarity with this, so,please, be patient...
Thanks for any help in advance!
Regards
guido72 is offline   Reply With Quote
Old 2002-09-13, 21:02   #5
Prime Monster
 
Prime Monster's Avatar
 
Aug 2002

22×5×13 Posts
Default

From the readme.txt

Quote:
-Wdirectory This tells mprime to find all its files in a different
directory than the executable.
You can also run mprime in the background with the -B parameter, so that if you close the window it doesn't close mprime.

If you want to start mprime automatically at startup, then add the start cmd to your /etc/inittab file (or whateverit is called in Mandrake)

Alf
Prime Monster is offline   Reply With Quote
Old 2002-09-13, 22:47   #6
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

865810 Posts
Default

You can use "nohup" to run the program even though you have closed the window... It will redirect all the screen output to a file for you... I ran mlucas before, and not mprime, but the basic concept is the same...

[code:1]nohup nice -19 ./mlucas &[/code:1]

You could just put it into your crontab, but that is a bit more work... If you want to go that route, just let us know...
Xyzzy is offline   Reply With Quote
Old 2002-09-14, 02:12   #7
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17·487 Posts
Default Re: Everithing seems OK now...

Quote:
Originally Posted by guido72
I've ran mprime from an ordinary shell window with the command
./mprime - m -w/[path of win98 shared working directory], since sometimes I boot Win as well. Well, mprime seems to take its config files from this shared dir but it is saving its back-up files (PXXXXXXXX) just in its linux dir, not in the shared one. What do I have to do?
Sounds like a bug. Copy mprime to the win98 shared working directory and run mprime without the -w switch.
Prime95 is offline   Reply With Quote
Old 2002-09-14, 05:19   #8
guido72
 
guido72's Avatar
 
Aug 2002
Rovereto (Italy)

3·53 Posts
Default Many thanks

Wow! I've got answers from the GIMPS fleet admirals...
Thank you Alf, Thank you Mike and Thank you George! :D
I'm going to follow yours advices right now...
guido72 is offline   Reply With Quote
Old 2002-09-14, 10:56   #9
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

2·32·13·37 Posts
Default

One thing about running the process in the background that I forgot to mention is that it is hard to remember if it is running or not... There are several ways to approach this problem...

1) You can use prstat to view the system processes...
2) You can use tail to display the output file to the console...

I think in Linux you would use top for number one...

I don't know what types of output files mprime generates, but mlucas uses a file that is named pxxxxxxx.stat, where the x is the exponent... It is written to every 2000 iterations... So if you want to take a quick look at the last few entries you can type "tail pxxxxxxx.stat" and the last 10 lines will be displayed...

When you use nohup only stuff that would appear on the screen goes to the nohup file... Since we invoked mlucas with a "&" to put it into the background, nothing should ever be written to this file...

Now, if you like to watch output all the time but you still want the process to run in the background without worrying that it may stop if you close the window, set it up like before and run "tail -f pxxxxxxx.stat"... What will happen is the first 10 lines of pxxxxxxx.stat will be displayed, and when any new lines are added to the file it will echo them to the screen as well... The nice thing about doing it this way is if you kill the tail command or close the window, mlucas continues working... The other nice thing is it uses virtually no resources to tail output... Even after several days of running it will have used only a second or two of CPU...

You'll have to adjust some of what I wrote above to Linux, but the basic concept is the same...
Xyzzy is offline   Reply With Quote
Old 2002-09-14, 18:36   #10
ebx
 
ebx's Avatar
 
Aug 2002

101 Posts
Default Re: Everithing seems OK now...

Quote:
Originally Posted by guido72
How to be sure that mprime starts everytime the system boot?

If I close the terminal do I close mprime as well? That is: in Linux click on "X" is like to kill an application?
Best way is to put it in your local startup rc. That requires root. I am lazy so I made up a cron job to start mprime every 4 hours. If one already running, it exits right away. This will also help if mprime for whatever dies. Worst is losng 4 hours.

I always run
% ./mprime -B

It will be there unless you reboot or kill it.
ebx is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
short runs or long runs MattcAnderson Operazione Doppi Mersennes 3 2014-02-16 15:19
Finishing mprime runs bill-p Software 1 2009-12-08 17:45
Who runs prime95 ECM? hj47 Software 3 2009-10-07 15:21
My CPU Runs at 100% Unregistered Software 16 2004-08-10 13:34
Dual Processor Pentium 4 runs Slow! brodin Hardware 5 2004-04-28 23:12

All times are UTC. The time now is 13:56.


Fri Jul 7 13:56:39 UTC 2023 up 323 days, 11:25, 0 users, load averages: 0.88, 1.18, 1.16

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.

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