mersenneforum.org M929 progress: Sure, drinking kills brain cells - but only the slow ones!
 Register FAQ Search Today's Posts Mark Forums Read

2012-11-21, 11:37   #78
xilman
Bamboozled!

"𒉺𒌌𒇷𒆷𒀭"
May 2003
Down not across

28A016 Posts

Quote:
 Originally Posted by em99010pepe Edit: Stupid linux. I can do this under windows in 20 secs, I am almost at two hours to understand how to run a "batch" file under linux.
Stupid Linux user.

It takes me at most 20 seconds to set up a Linux script to run a program at reboot. I have yet to manage to get a scheduled task to do that for me on either Vista or Win7, despite having tried off and on for several years.

Paul

 2012-11-21, 11:37 #79 em99010pepe     Sep 2004 2·5·283 Posts How do I check if it is running on terminal? By the noise of the fan it started and already created the txt files.
2012-11-21, 11:39   #80
em99010pepe

Sep 2004

2×5×283 Posts

Quote:
 Originally Posted by xilman Stupid Linux user. It takes me at most 20 seconds to set up a Linux script to run a program at reboot. I have yet to manage to get a scheduled task to do that for me on either Vista or Win7, despite having tried off and on for several years. Paul
On win 7 it is very easy. I grew up with windows, not with linux Paul.

2012-11-21, 11:41   #81
em99010pepe

Sep 2004

2×5×283 Posts

Quote:
 Originally Posted by em99010pepe How do I check if it is running on terminal? By the noise of the fan it started and already created the txt files.
I meant, how do I see the progress of the siever? I can only hear the noise of the cpu fan, can't see nothing on ubuntu desktop. The sievers must be hidden.

Sorry for the stupid linux questions.

Edit: Started the script under "run" and not under "Run in terminal". I think that's why I can't see the sievers progress.

Last fiddled with by em99010pepe on 2012-11-21 at 11:44

 2012-11-21, 11:50 #82 axn     Jun 2003 2×5×479 Posts top can tell you if the siever processes are running. tail on the dat files can tell you where the sieve has reached (if you have used -n parameter for different sieve instances, you can look at the .last_spq files to see the progress).
2012-11-21, 11:54   #83
em99010pepe

Sep 2004

1011000011102 Posts

Quote:
 Originally Posted by axn top can tell you if the siever processes are running. tail on the dat files can tell you where the sieve has reached (if you have used -n parameter for different sieve instances, you can look at the .last_spq files to see the progress).
Under windows I can see the blabla: "q at 55010003 (0.50667 sec/rel)". Here on ubuntu how do I see the siever speed and instant q region being sieved?
top works. Thank you.

Last fiddled with by em99010pepe on 2012-11-21 at 11:56

2012-11-21, 12:02   #84
xilman
Bamboozled!

"𒉺𒌌𒇷𒆷𒀭"
May 2003
Down not across

25×52×13 Posts

Quote:
 Originally Posted by em99010pepe On win 7 it is very easy. I grew up with windows, not with linux Paul.
We'll discuss this off-line.

My problems have always been to do with permissions. I refuse to run a boot-time script with administrator privileges except under very special circumstances.

Paul

2012-11-21, 12:05   #85
em99010pepe

Sep 2004

2·5·283 Posts

Here are the txt files. I don't have .last_spq<n>.
Attached Files
 files.zip (434.2 KB, 56 views)

2012-11-21, 13:11   #86
Dubslow

"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

722110 Posts

Quote:
 Originally Posted by em99010pepe I meant, how do I see the progress of the siever? I can only hear the noise of the cpu fan, can't see nothing on ubuntu desktop. The sievers must be hidden. Sorry for the stupid linux questions. Edit: Started the script under "run" and not under "Run in terminal". I think that's why I can't see the sievers progress.
Quote:
 Originally Posted by em99010pepe Under windows I can see the blabla: "q at 55010003 (0.50667 sec/rel)". Here on ubuntu how do I see the siever speed and instant q region being sieved? top works. Thank you.
Quote:
 Originally Posted by em99010pepe Here are the txt files. I don't have .last_spq.
In order to see progress from the program itself, you must run in terminal *and* have a -v somewhere in the command. (To get the .last_spq file, you must have a -n in the command, and you must also check the hidden files, since the first character is a period [the same applies in Windows too].)

Strictly speaking, the nohup isn't necessary; the & is very key, otherwise the shell waits for the first command to finish before running the second one.

If you're interested, consider using the slightly modified script below. Run it in terminal (after setting the file as an executable, like fivemack described), and it should print the progress of the first of the four processes.
Code:
#! /bin/bash
nice -n 19 taskset 1 ./gnfs-lasieve4I15e -v -R snfs -o 330.txt -f 330000000 -c 1000000 &
nice -n 19 taskset 2 ./gnfs-lasieve4I15e -R snfs -o 331.txt -f 331000000 -c 1000000 &
nice -n 19 taskset 4 ./gnfs-lasieve4I15e -R snfs -o 332.txt -f 332000000 -c 1000000 &
nice -n 19 taskset 8 ./gnfs-lasieve4I15e -R snfs -o 333.txt -f 333000000 -c 1000000 &
This assumes you have four processors.

Last fiddled with by Dubslow on 2012-11-21 at 13:38 Reason: linky

2012-11-21, 13:28   #87
xilman
Bamboozled!

"𒉺𒌌𒇷𒆷𒀭"
May 2003
Down not across

25·52·13 Posts

Quote:
 Originally Posted by Dubslow In order to see progress from the program itself, you must run in terminal *and* have a -v somewhere in the command.
A much easier and/or better way, IMO, is to capture both stdout and stderr to separate files. Then it doesn't matter whether there is an attached terminal and the output can be viewed from a wide variety of places, even on another machine if the filesystem in question is imported/exported between the two systems.

Paul

2012-11-21, 13:36   #88
Dubslow

"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts

Quote:
 Originally Posted by xilman A much easier and/or better way, IMO, is to capture both stdout and stderr to separate files. Then it doesn't matter whether there is an attached terminal and the output can be viewed from a wide variety of places, even on another machine if the filesystem in question is imported/exported between the two systems. Paul
[pedant]
Perhaps, but then the only way to get "live" output is to watch it with tail -f, which isn't actually live at all, and has a slight chance of doing something bad to the file. (Regardless, there is no output without -v on Linux.)
[/pedant]

Man, I'm really antagonizing you this morning, aren't I? (Maybe it's lack of sleep.)

 Similar Threads Thread Thread Starter Forum Replies Last Post VictordeHolland Hardware 2 2018-02-16 15:13 Xyzzy Miscellaneous Math 62 2017-03-02 00:35 thomasn Factoring 5 2011-05-29 01:13 BlackOmega Information & Answers 6 2010-03-01 07:32 markhl Software 8 2003-07-07 16:00

All times are UTC. The time now is 01:52.

Sun Dec 6 01:52:33 UTC 2020 up 2 days, 22:03, 0 users, load averages: 3.22, 2.97, 2.78