mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > No Prime Left Behind

Reply
 
Thread Tools
Old 2010-03-14, 20:11   #12
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3×2,083 Posts
Default

Quote:
Originally Posted by kar_bon View Post
it's ok for me!

i've also put the determination of the local prime-logfile (primes.txt) in the WIN-script at the start of it, so it's done only once for a batch-run. otherwise it would be done everytime a prime was found. not that big timing issue.
BTW, just to let you guys know: this bug should not exist in the Perl script. Since Gary copied over the same code for submitting/logging results, checking for primes, etc. that was used under "normal" circumstances, and used it for the -c code path as well, everything should be logged the same either way.

As for the version numbers, agreed, that sounds good.

Last fiddled with by mdettweiler on 2010-03-14 at 20:11
mdettweiler is offline   Reply With Quote
Old 2010-03-14, 20:59   #13
gd_barnes
 
gd_barnes's Avatar
 
May 2007
Kansas; USA

2·3·19·89 Posts
Default

So is the updated Windows script in the client in the 1st post here?

kar_bon: yes, it is!

Last fiddled with by kar_bon on 2010-03-14 at 21:25
gd_barnes is online now   Reply With Quote
Old 2010-03-15, 00:00   #14
MyDogBuster
 
MyDogBuster's Avatar
 
May 2008
Wilmington, DE

17×167 Posts
Default

The old LLRNET client kept a zxxxxxxxx file maintained during a test in case the test was interrupted. cllr doesn't. One is created if a ctrl-c is enacted.

Any chance of maintaining a zxxxxxxx file for cllr just like LLRNET did.

The reason I ask is that I had a power failure and lost any work done on current tests.

Last fiddled with by MyDogBuster on 2010-03-15 at 00:01
MyDogBuster is offline   Reply With Quote
Old 2010-03-15, 00:37   #15
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

11000011010012 Posts
Default

Quote:
Originally Posted by MyDogBuster View Post
The old LLRNET client kept a zxxxxxxxx file maintained during a test in case the test was interrupted. cllr doesn't. One is created if a ctrl-c is enacted.

Any chance of maintaining a zxxxxxxx file for cllr just like LLRNET did.

The reason I ask is that I had a power failure and lost any work done on current tests.
LLR/cllr updates its z* file per an amount of minutes specified in llr.ini (the DiskWriteTime= option). If unspecified, it defaults to 30 minutes. From what I've observed, I think old LLRnet saved at 50% through the test in addition to every 30 minutes (which may have been configurable there as well, depending on whether it actually read the llr.ini file that was usually included with the client--I don't think it did).

While it would be rather hard to change this in standard LLR/cllr, in the do.pl script you can change the frequency at which it saves its z* files by setting the $iniOptions setting as follows:
$iniOptions = "OutputIterations=10000\nDiskWriteTime=1\n";
...which would set it to 1 minute. Note that while this probably isn't possible in do.bat since it handles setting OutputIterations differently, do.pl does work on Windows as well as long as you have Perl installed so if it's particularly important you can use that.

Last fiddled with by mdettweiler on 2010-03-15 at 00:38
mdettweiler is offline   Reply With Quote
Old 2010-03-15, 00:46   #16
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

1011000000002 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
Note that while this probably isn't possible in do.bat since it handles setting OutputIterations differently
you can do this also in the do.bat by inserting a line:
Code:
(...)
if not exist tosend.txt goto error_notos
echo OutputIterations=%op_Iterations% >llr.ini
echo DiskWriteTime=1 >>llr.ini

:do_llrnet
llrnet
(...)
that's it.
perhaps it's worth a new option at the top of the script the user can set when needed (when testing-time is more than say 30 min).
kar_bon is offline   Reply With Quote
Old 2010-03-15, 01:52   #17
MyDogBuster
 
MyDogBuster's Avatar
 
May 2008
Wilmington, DE

17×167 Posts
Default

Thanks guys. I tested BOTH solutions and they work.
MyDogBuster is offline   Reply With Quote
Old 2010-03-25, 12:01   #18
gd_barnes
 
gd_barnes's Avatar
 
May 2007
Kansas; USA

100111101000102 Posts
Default

Hi Karsten,

I'm running the Windows DOS client for the first time on my Windows I7. It appears that the option to change the output iterations is not working. I even tried tweaking the code and it didn't work.

No matter what I do, it will not write that line to the llr.ini file that allows it to be changed. Instead it keeps writing out that annoying line every 10,000 iterations with a percentage complete. Even testing at n=~550K, it fairly quickly fills up the screen because there's no way to make the DOS window wider.

I'd like to set it to 1,000,000 iterations like all of my other clients. Can you help?

Edit: I just noticed something. It corrects itself after the first batch, writes the line to llr.ini, and stops outputting every 10,000 iterations. I'm surprsied that me trying to move the statement ahead of the "if" statement right ahead of it did not fix the problem. So it is a more minor bug than I originally thought but it still is a bit annoying.


Thanks,
Gary

Last fiddled with by gd_barnes on 2010-03-25 at 12:06
gd_barnes is online now   Reply With Quote
Old 2010-03-25, 12:17   #19
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

Quote:
Originally Posted by gd_barnes View Post
It appears that the option to change the output iterations is not working. I even tried tweaking the code and it didn't work.
Works for me (Windows XP).
Quote:
Originally Posted by gd_barnes View Post
Instead it keeps writing out that annoying line every 10,000 iterations with a percentage complete. Even testing at n=~550K, it fairly quickly fills up the screen because there's no way to make the DOS window wider.
To make the window wide, right click on the command window's title bar, click Properties, go to the Layout tab, and change both Width values to something higher (e.g. 90), then press OK, check "Save properties for future windows with the same title," and click OK. Ta-da!
Mini-Geek is offline   Reply With Quote
Old 2010-03-25, 12:18   #20
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

28·11 Posts
Default

Quote:
Originally Posted by gd_barnes View Post
Edit: I just noticed something. It corrects itself after the first batch, writes the line to llr.ini, and stops outputting every 10,000 iterations. I'm surprsied that me trying to move the statement ahead of the "if" statement right ahead of it did not fix the problem. So it is a more minor bug than I originally thought but it still is a bit annoying.
yep, the change will first be set when llr tested all pairs in workfile.txt.
after getting the next set of pairs, the script will write again/new llr.ini with this new iteration-setting!

this could be done in the DOS-script by telling to update the llr.ini with code like this:
Code:
type llr.ini | find /v "OutputIterations=" > llr.new
echo OutputIterations=%1>> llr.new
move /Y llr.new llr.ini >nul
with parameter %1 as the number of iterations.
so the script could be stopped while llr is running and starting again the script (with a parameter or comparing the current setting) with changing to this parameter and continue llr-testing.

i can make this modification, if needed.

Last fiddled with by kar_bon on 2010-03-25 at 18:28
kar_bon is offline   Reply With Quote
Old 2010-03-25, 14:03   #21
gd_barnes
 
gd_barnes's Avatar
 
May 2007
Kansas; USA

2×3×19×89 Posts
Default

Quote:
Originally Posted by kar_bon View Post
yep, the change will first be set when llr tested all pairs in workfile.txt.
after getting the next set of pairs, the script will write again/new llr.ini with this new iteration-setting!

this could be done in the DOS-script by telling to update the llr.ini with code like this:
Code:
type llr.ini | find /v "OutputIterations=" > llr.new
echo OutputIterations=%1>> llr.new
move /Y llr.new llr.ini >nul
with parameter %1 as the number of iterations.
so the script could be stopped while llr is running and starting again the script (with a parameter or comparing the current setting) with changing to this parameter and continue llr-testing.

i can make this modification, if needed.

It seems a little bit cheesy to have it do something incorrectly for a short time and then do it correctly. If it's not too much trouble, yes, I think the change should be made.

Thanks for the info. on making the screen wider Tim. Regardless, I'm not looking at my machines 99% of the time so I'd rather not have the iterations show up.

One more thing: How do you easily change do.bat? When I made the change to the # of iterations, I renamed do.bat to do.txt, modified it in notepad, and then renamed it back to do.bat. Is there an easier way? A novice might wonder how to change the various options since you can't just edit do.bat.

Last fiddled with by kar_bon on 2010-03-25 at 18:28
gd_barnes is online now   Reply With Quote
Old 2010-03-25, 14:11   #22
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17·251 Posts
Default

Quote:
Originally Posted by gd_barnes View Post
One more thing: How do you easily change do.bat? When I made the change to the # of iterations, I renamed do.bat to do.txt, modified it in notepad, and then renamed it back to do.bat. Is there an easier way? A novice might wonder how to change the various options since you can't just edit do.bat.
Right click on do.bat > Edit, or
Open Notepad, browse to do.bat's location, set Files of type: All Files, open do.bat.

Not too hard.

Last fiddled with by Mini-Geek on 2010-03-25 at 14:11
Mini-Geek is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
LLRNET ValerieVonck Software 12 2010-03-15 18:09
llrnet 64 bit balachmar Prime Sierpinski Project 4 2008-07-19 08:21
LLRNet em99010pepe Riesel Prime Search 20 2007-09-11 21:03
Bush Supports $120 Billion Iraq War Compromise ewmayer Soap Box 23 2007-05-27 12:37
LLRnet over proxy? Bananeweizen Sierpinski/Riesel Base 5 4 2006-10-14 07:51

All times are UTC. The time now is 20:43.

Fri Jul 3 20:43:50 UTC 2020 up 100 days, 18:16, 2 users, load averages: 1.61, 1.46, 1.49

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.