Go Back > Great Internet Mersenne Prime Search > Software

Thread Tools
Old 2003-11-05, 10:39   #1
optim's Avatar
Nov 2003
European Union

1508 Posts
Talking MPrime on Linux


I just installed MPrime 23.5 on my Slackware Linux 9.1 (kernel 2.4.22) machine that I use for learning Linux.

I have some questions:
1. is it better to run MPrime on a terminal window under KDE/GNOME or run it at another text console (for example, running mprime on console 1 and KDE on console 7)
2. how can I exit MPrime while it is runing?
3. how can I pause MPrime?
4. my Linux machine connects to the internet thru my proxy server, which runs on my Windows machine. These two machines are sharing the same monitor/keyboard/mouse by using a KVM switch, but usually I only use the windows machine. I have set up MPrime to think that it is always connected to the Internet by using RouteRequired=0 in the primenet.ini file. I have a dial-up ISDN connection, so I have to manually dial up my ISP when MPrime needs to contact PrimeNet. Is there any way to make MPrime beep thru the PC speaker when it wants to connect to the Internet? I want to be able to know when my linux machine needs internet access without switching the KVM switch.
5. is CTRL+Z a good way of stopping MPrime ?
6. Is there any special procedure that I should follow before shutting down my Linux box? Usually I shut down using this command:
shutdown -h now
is it okay? should I exit MPrime before shutting down or not?
7. is there any graphical PrimeNet client for KDE or GNOME? will George make one?

thats enough for now, thanks for reading my post!

Last fiddled with by optim on 2003-11-05 at 10:47
optim is offline   Reply With Quote
Old 2003-11-05, 14:55   #2
Xyzzy's Avatar
Aug 2002

32×23×41 Posts

Run it via cron or in the background...

nohup ./mprime &

CTRL+Z just pauses a process...

When you reboot or shutdown, Mprime will "see" the shutdown and stop cleanly...

If you need to kill Mprime use top or ps to get the process id and use kill...
Xyzzy is offline   Reply With Quote
Old 2003-11-05, 15:33   #3
GP2's Avatar
Sep 2003

13×199 Posts

2. If you're running mprime directly in a terminal window, you can use CTRL-C to terminate it like any other program. Or, if it's running in the background, you can use the "ps" command to find out its PID and then use the "kill" command.

3. There's no reason to pause it, just kill it and later restart it.

4. You can force a manual connection. Dial up and establish your ISDN connection, then run "mprime -m" to get the menu. Choose 12 (Advanced/Manual communication):

Contact PrimeNet server automatically:
Contact PrimeNet server now:
Send new expected completion dates to server:

Accept the answers above?

Answer "Y" to "Contact PrimeNet server now"

After communciation with the PrimeNet server is complete, choose 6 (Test/Exit) to quit the menu.

5. CTRL-Z just suspends a process, which you can then resume with the "fg" shell command. There's really no point in doing this for mprime, just CTRL-C to kill it (which causes it to write a save file) and then restart it again later. CTRL-Z suspend does NOT cause mprime to write a save file, so if you shut your system down after CTRL-Zing mprime you may lose up to half an hour of work.

7. There is no graphical client for Linux.
GP2 is offline   Reply With Quote
Old 2003-11-05, 22:58   #4
QuintLeo's Avatar
Oct 2002
Lost in the hills of Iowa

44810 Posts

I've always run mprime on non-XWindow machines, so can't address the 'terminal window vs. whatever" question.

Control-Z is a not real good idea with mprime, in my experience - better to kill -9 it, it shuts down cleanly that way and then you can just restart it later.

mprime is quite fine with a standard shutdown sequence - no need to shut it down seperately then reboot the machine. It even tolerates "bad" shutdowns by power failure and the like, though you will lose any data since the last save file update in those cases.

There is no graphical client for Prime under any OS that I'm aware of - even the Windows client is a text-mode client, I'm pretty sure. Making it a graphical-mode client would slow it down at best....

Is your ISDN connection "measured service", or "unmeasured service"? If it's unmeasured, why not keep it up all the time? I had unmeasured ISDN service for a while, and it seemed to be pretty good at staying up for days at a time....

Last fiddled with by QuintLeo on 2003-11-05 at 23:00
QuintLeo is offline   Reply With Quote
Old 2003-11-06, 00:07   #5
garo's Avatar
Aug 2002
Termonfeckin, IE

24·173 Posts

Surely you mean "kill -2". kill -9 does not force a write to savefile which can mean loss of work whereas kill -2 does.
garo is offline   Reply With Quote
Old 2003-11-06, 08:20   #6
optim's Avatar
Nov 2003
European Union

23×13 Posts

Thanks for your answers.

Since I am in Greece I have to pay about 0.3 euro for each hour of Intenet usage during the day and 0.17 euro in the night, plus the ISDN connection cost (more than 12 euro per month) and the ISP account cost (from 50 to 80 euro every 3 months depending on different ISPs). I suppose this is what you call measured. These prices are for 64kbit ISDN. For 128kbit ISDN the usage prices are doubled. Also note that the service is not very good, since we have disconnects every some hours.

Unmeasured ADSL just appeared in Greece, but it costs more than 80 euro per month for 384kbit and the service is awful (the 384kbit speed is not guaranteed).

Cheap always-on Internet access is still a dream in my country

How much do you pay in your countries and where are you located?

Last fiddled with by optim on 2003-11-06 at 08:28
optim is offline   Reply With Quote
Old 2003-11-07, 23:04   #7
QuintLeo's Avatar
Oct 2002
Lost in the hills of Iowa

26·7 Posts

Ouch. Yup, that would be measured ISDN service. Expensive. 8-(

I used to pay about $40 (US) for unmeasured ADSL 384/128k service - currently I'm paying about $50 for Cable Modem service (seems to be a lightly loaded loop, as I've seen 3MBps download rates on occasion) since I moved.
QuintLeo is offline   Reply With Quote
Old 2003-11-08, 07:28   #8
Maybeso's Avatar
Aug 2002
Portland, OR USA

27410 Posts

Originally posted by optim
. . .[snip] How much do you pay in your countries and where are you located?
This is a great question, you should summarize your post on the 'Cost for various things worldwide' thread
If others provide as much info as you, we could build a table.
Or would that be too depressing?
Maybeso is offline   Reply With Quote
Old 2003-11-08, 10:45   #9
smh's Avatar
Oct 2002

29·41 Posts

How much do you pay in your countries and where are you located?
Here in the Netherlands, dail-up ISP's are free. Only pay the phone costs, which from €0,60 to €1,70 an hour depending on the time of the day (nights and weekends are cheaper)

Prices of ADSL dropped greately the last three months. Cheapest at the moment €14,95 a month for 386/128, but a few drawbacks. Price is only for the first year and a data limmit of 250MB :surprised

More serious offers go from €25(768/128) to €50(3072/512) and up to almost €80 for about the same thing depending on the ISP.

At the moment i pay €30 for a 386/128 connection. But since i want to give up my ISDN for a analoge phone line i have to give up my ADSL. That gives me the chance to chance providers and get double the speed for less money (at the cost of not having ADSL for several weeks).
smh is offline   Reply With Quote
Old 2003-11-09, 21:04   #10
NookieN's Avatar
Aug 2002

5910 Posts

And easy, set-and-forget way to run Prime under linux is to just add it to inittab. I have this line in /etc/inittab on my SuSE 8.1 box:

prim:2345:boot:/var/mprime/mprime -B

To kill it, I usually get the PID from top and do a kill =INT on it.
NookieN is offline   Reply With Quote
Old 2003-11-18, 23:05   #11

23·17·53 Posts

Originally posted by optim
How much do you pay in your countries and where are you located? [/B]
Here in Germany I use a provider for 19.95¤ for 1024/256 as a flatrate (Berlikomm)
  Reply With Quote

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling mprime on linux graysky Software 6 2011-03-14 07:00
Installing mprime on Linux lidocorc Software 9 2009-11-06 20:59
mprime and linux Echoblade Information & Answers 3 2007-06-24 22:28
How to Compile mprime Under Linux Blaise Pascal Software 12 2005-01-13 14:40
mprime RPM package for linux gbvalor Software 15 2004-01-04 11:51

All times are UTC. The time now is 11:48.

Fri Aug 19 11:48:09 UTC 2022 up 1 day, 9:16, 0 users, load averages: 1.10, 1.39, 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.

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