mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Factoring

Reply
 
Thread Tools
Old 2012-11-21, 11:37   #78
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

25×52×13 Posts
Default

Quote:
Originally Posted by em99010pepe View Post
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
xilman is offline   Reply With Quote
Old 2012-11-21, 11:37   #79
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

B0E16 Posts
Default

How do I check if it is running on terminal? By the noise of the fan it started and already created the txt files.
em99010pepe is offline   Reply With Quote
Old 2012-11-21, 11:39   #80
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

B0E16 Posts
Default

Quote:
Originally Posted by xilman View Post
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.
em99010pepe is offline   Reply With Quote
Old 2012-11-21, 11:41   #81
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

2·5·283 Posts
Default

Quote:
Originally Posted by em99010pepe View Post
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
em99010pepe is offline   Reply With Quote
Old 2012-11-21, 11:50   #82
axn
 
axn's Avatar
 
Jun 2003

2×5×479 Posts
Default

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<n> files to see the progress).
axn is offline   Reply With Quote
Old 2012-11-21, 11:54   #83
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

283010 Posts
Default

Quote:
Originally Posted by axn View Post
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<n> 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
em99010pepe is offline   Reply With Quote
Old 2012-11-21, 12:02   #84
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

25·52·13 Posts
Default

Quote:
Originally Posted by em99010pepe View Post
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
xilman is offline   Reply With Quote
Old 2012-11-21, 12:05   #85
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

2×5×283 Posts
Default

Here are the txt files. I don't have .last_spq<n>.
Attached Files
File Type: zip files.zip (434.2 KB, 56 views)
em99010pepe is offline   Reply With Quote
Old 2012-11-21, 13:11   #86
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Quote:
Originally Posted by em99010pepe View Post
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 View Post
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 View Post
Here are the txt files. I don't have .last_spq<n>.
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
Dubslow is offline   Reply With Quote
Old 2012-11-21, 13:28   #87
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

25·52·13 Posts
Default

Quote:
Originally Posted by Dubslow View Post
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
xilman is offline   Reply With Quote
Old 2012-11-21, 13:36   #88
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Quote:
Originally Posted by xilman View Post
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.)
Dubslow is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samsung: smaller SRAM cells with EUV, better than Intel VictordeHolland Hardware 2 2018-02-16 15:13
Slow progress! Xyzzy Miscellaneous Math 62 2017-03-02 00:35
Some questions about M929 thomasn Factoring 5 2011-05-29 01:13
Prime 95 kills CPUs? BlackOmega Information & Answers 6 2010-03-01 07:32
Windows XP logoff sometimes kills Prime95 markhl Software 8 2003-07-07 16:00

All times are UTC. The time now is 02:15.

Sun Dec 6 02:15:36 UTC 2020 up 2 days, 22:26, 0 users, load averages: 1.71, 1.88, 2.20

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.