mersenneforum.org  

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

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

23·13 Posts
Talking MPrime on Linux

Hello,

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
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

11110001001002 Posts
Default

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
 
GP2's Avatar
 
Sep 2003

29×89 Posts
Default

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
 
QuintLeo's Avatar
 
Oct 2002
Lost in the hills of Iowa

26×7 Posts
Default

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
 
garo's Avatar
 
Aug 2002
Termonfeckin, IE

2×5×251 Posts
Default

QuitLeo,
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
 
optim's Avatar
 
Nov 2003
European Union

23·13 Posts
Default

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
 
QuintLeo's Avatar
 
Oct 2002
Lost in the hills of Iowa

26·7 Posts
Default

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
 
Maybeso's Avatar
 
Aug 2002
Portland, OR USA

2·137 Posts
Default

Quote:
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
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29×41 Posts
Default

Quote:
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
 
NookieN's Avatar
 
Aug 2002

5410 Posts
Default

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
Pinguin
 

72548 Posts
Default

Quote:
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
Reply

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 19:32.

Sat Oct 31 19:32:54 UTC 2020 up 51 days, 16:43, 2 users, load averages: 2.02, 1.96, 1.84

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