mersenneforum.org  

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

Reply
 
Thread Tools
Old 2015-01-20, 15:59   #1
guest
 
Jan 2015

3 Posts
Default run mprime in background

Hello,

I want to run mprime on Linux (openSUSE) in the background. I started the stress test so:
Code:
mprime -t &
But after every cycle I get the status of each cpu, that the test is still running, like:
Code:
[Worker #1 Jan 20 16:56] Test 2, 5300 Lucas-Lehmer iterations of M14155775 using FFT length 720K, Pass1=320, Pass2=2304.
[Worker #2 Jan 20 16:56] Test 2, 5300 Lucas-Lehmer iterations of M14155775 using FFT length 720K, Pass1=320, Pass2=2304.
I want to have no outputs.
What can I do, to run mprime -t in the background? Why is the option -B not longer supported?

Kind regards.
Stefan
guest is offline   Reply With Quote
Old 2015-01-20, 16:26   #2
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

293010 Posts
Default

I like to run it in `screen`.

I put this in my crontab to have it start at boot
Code:
@reboot screen -S mprime -d -m /home/ontherange/mprime/mprime.exe -d
Alternatively you can run `screen mprime`. To detach from screen and leave it running, type ctrl-a, d. To reattach to screen running in the background, run `screen -r`.
Mark Rose is offline   Reply With Quote
Old 2015-01-20, 17:34   #3
guest
 
Jan 2015

3 Posts
Default

Currently I run it in screen mode, but I thought, there is a "better" way. Can I run mprime in a silent or quiet mode?
guest is offline   Reply With Quote
Old 2015-01-20, 17:38   #4
guest
 
Jan 2015

3 Posts
Default

Perhaps with?
Quote:
mprime -t > /dev/null 2>&1 &
guest is offline   Reply With Quote
Old 2015-01-20, 17:39   #5
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

9,767 Posts
Default

Quote:
Originally Posted by guest View Post
Currently I run it in screen mode, but I thought, there is a "better" way. Can I run mprime in a silent or quiet mode?
I do:
Code:
./mprime </dev/null >/dev/null 2>/dev/null &
...and then exit the SSH session (if not a local instance). The last step is critical, or else mprime will stop shortly after the SSH session terminates for whatever reason (local machine goes down, internet connection goes down, etc).
chalsall is online now   Reply With Quote
Old 2015-01-20, 17:45   #6
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

32×29×37 Posts
Default

How about CTRL+ALT+F6, login, run mprime, then ALT+F7 back to x?
(don't jump on me, I am not a linux guy, hehe, but the tty6 is almost never used, some may use 1, 2, 3, but that is! for some reasons debian offers 6...)
LaurV is offline   Reply With Quote
Old 2015-01-20, 18:12   #7
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

1011011100102 Posts
Default

Quote:
Originally Posted by LaurV View Post
How about CTRL+ALT+F6, login, run mprime, then ALT+F7 back to x?
(don't jump on me, I am not a linux guy, hehe, but the tty6 is almost never used, some may use 1, 2, 3, but that is! for some reasons debian offers 6...)
*sits down at LaurV's computer with the screensaver locked, hits ctrl-alt-f6, hits ctrl-c, does evil*


I wouldn't recommend that method ;)
Mark Rose is offline   Reply With Quote
Old 2015-01-20, 18:22   #8
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

2×23×179 Posts
Default

All bets (security) are off once you have physical access.

Xyzzy is offline   Reply With Quote
Old 2015-01-20, 18:57   #9
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

32×29×37 Posts
Default

Quote:
Originally Posted by Mark Rose View Post
*sits down at LaurV's computer with the screensaver locked, hits ctrl-alt-f6, hits ctrl-c, does evil*
I wouldn't recommend that method ;)
You have no imagination, take the keyboard and lock it in a cabinet. Didn't you see Mr. Bean with the steering wheel?
LaurV is offline   Reply With Quote
Old 2015-01-22, 04:22   #10
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·33·71 Posts
Default

Quote:
Originally Posted by LaurV View Post
You have no imagination, take the keyboard and lock it in a cabinet. Didn't you see Mr. Bean with the steering wheel?
On all my linux machines I can unplug the keyboard and plug in a different one and it will work fine. In fact, most of my machines currently have no keyboard, mouse or monitor. But, if I need to I can plug in all three and work away without crashing anything. And, that's PS2 keyboards...

As to the reference to screen, I have also used tmux via ssh on my systems from time to time.
EdH is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
mprime 257 bug? programmeryh Software 4 2008-11-13 15:23
Your favourite desktop background. Flatlander Lounge 8 2007-07-16 16:55
Whats going on in the background ltd Prime Sierpinski Project 2 2006-12-26 09:40
Problem with mprime (Fixed with mprime -d) antiroach Software 2 2004-07-19 04:07
What is your primary educational background? eepiccolo Lounge 8 2002-12-28 21:25

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


Mon Aug 2 13:36:47 UTC 2021 up 10 days, 8:05, 0 users, load averages: 1.94, 2.03, 2.00

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