mersenneforum.org  

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

Reply
 
Thread Tools
Old 2014-03-14, 00:31   #1
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

3×1,657 Posts
Default General Unix job-scheduling discussion

Under linux.
Inside ecm folder I have 8 folders called cl1 to cl8.
Will this script work? Will ecmclient run hidden, not with terminal open?

Code:
#!/bin/sh
for i in 1 2 3 4 5 6 7 8
  do
    cd cl${i}
    ./ecmclient
    cd ..
  done
pinhodecarlos is online now   Reply With Quote
Old 2014-03-14, 10:51   #2
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

115538 Posts
Default

Is the server down?

Edit: It is down. Email sent to Paul.

Last fiddled with by pinhodecarlos on 2014-03-14 at 11:21
pinhodecarlos is online now   Reply With Quote
Old 2014-03-14, 12:05   #3
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

10,939 Posts
Default

Quote:
Originally Posted by pinhodecarlos View Post
Is the server down?

Edit: It is down. Email sent to Paul.
Actually, it is up and has been fo some time. The problem is that my ISP is amazingly flaky today. Mail back to Carlos is still waiting to be sent on by the ISP's mail server and I'm typing this in a brief window of activity. Let's hope the net stays up long enough for posting.


Paul
xilman is online now   Reply With Quote
Old 2014-03-14, 16:32   #4
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

3·1,657 Posts
Default

Thank you Paul. I see the server up and running but I still didn't get your email but that is not important.
Added four cores, more four within a week. The problem was when I fired up the fourth core it was night here so I forgot to check if the server was online. When I woke up I noticed the server was down, this core was idle, but the others were in cycle loop trying to connect the server every time a curve was completed within one minute pause between client-server connection.

Hope this can help others or me to find factors quickly.

Can you check if I got right that script?

Last fiddled with by pinhodecarlos on 2014-03-14 at 16:38
pinhodecarlos is online now   Reply With Quote
Old 2014-03-19, 21:46   #5
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

136B16 Posts
Default

Found a factor but didn't get the email notification.
pinhodecarlos is online now   Reply With Quote
Old 2014-03-20, 16:34   #6
blip
 
blip's Avatar
 
Jan 2014

2·73 Posts
Default

Quote:
Originally Posted by pinhodecarlos View Post
Under linux.
Inside ecm folder I have 8 folders called cl1 to cl8.
Will this script work? Will ecmclient run hidden, not with terminal open?
Code:
#!/bin/bash
for i in {1..8}
  do
    ECMFOLDER/cl$i/ecmclient >/dev/null 2>&1 &
  done
Better: use screen and run each instance in its own terminal. Then you can detach screen, and everything keeps running in the background. when you reattach, you get all terminals back.

Even better: use byobu (fancy wrapper around screen or - which I prefer - tmux)

Last fiddled with by blip on 2014-03-20 at 16:40
blip is offline   Reply With Quote
Old 2014-03-20, 18:02   #7
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

115538 Posts
Default

Here's the problem. I use Putty under windows to connect to the linux servers and therefore I can't detach screen. What I usually do is to shutdown putty after I start an application. I repeat this process as many times I want to start any instance of ecm (10 times).

Last fiddled with by pinhodecarlos on 2014-03-20 at 18:09
pinhodecarlos is online now   Reply With Quote
Old 2014-03-20, 19:12   #8
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

24·3·173 Posts
Default

You should be able to detach (and resume) your session.

http://www.gnu.org/software/screen/m...de/Detach.html

We do this all of the time with Putty.
Xyzzy is offline   Reply With Quote
Old 2014-03-20, 19:59   #9
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

3×1,657 Posts
Default

Thank you both. I will take a look on those (cycle and detach thing).
I think it is better to move this conversation to other place because we are hijacking Paul's thread.

Carlos
pinhodecarlos is online now   Reply With Quote
Old 2014-03-22, 20:11   #10
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

136B16 Posts
Default

Blip, I tried your script and didn't work. Must be something on the setup of Putty or something related with permission to the server.
pinhodecarlos is online now   Reply With Quote
Old 2014-04-12, 11:56   #11
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

115538 Posts
Default

I have another question related to linux.
Having only access to a linux machine through terminal, no GUI, how do I download the files from NFS@Home with password? This machine is dedicated to run LLR and from time to time some post-processing jobs for NFS@Home.
What I usually do is to download the files from my windows computer work and then upload them to the server but this upload is limited to 1MB/s so it is quite boring. The set of files are always something like:

W_2_786.dat.gz
W_2_786.ini
W_2_786.fb

Thank you in advance,

Carlos
pinhodecarlos is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandela effect, general discussion and how would you study it scientifically? jasong Lounge 12 2018-04-15 05:13
S9 and general sieving discussion Lennart Conjectures 'R Us 31 2014-09-14 15:14
Scheduling alternatives in v25? Raterus Software 2 2009-10-15 18:26
Scheduling question khanricksteele Information & Answers 3 2008-04-09 20:34
Unix client? Cruncher Software 1 2003-12-17 05:53

All times are UTC. The time now is 08:57.


Sat Oct 16 08:57:20 UTC 2021 up 85 days, 3:26, 0 users, load averages: 1.03, 1.00, 0.99

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.