mersenneforum.org LLRnet supports LLR V3.8! (LLRnet2010 V0.73L)
 Register FAQ Search Today's Posts Mark Forums Read

2010-03-14, 20:11   #12
mdettweiler
A Sunny Moo

Aug 2007
USA (GMT-5)

141518 Posts

Quote:
 Originally Posted by kar_bon 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

 2010-03-14, 20:59 #13 gd_barnes     May 2007 Kansas; USA 237008 Posts 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
 2010-03-15, 00:00 #14 MyDogBuster     May 2008 Wilmington, DE 25×89 Posts 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
2010-03-15, 00:37   #15
mdettweiler
A Sunny Moo

Aug 2007
USA (GMT-5)

624910 Posts

Quote:
 Originally Posted by MyDogBuster 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

2010-03-15, 00:46   #16
kar_bon

Mar 2006
Germany

54308 Posts

Quote:
 Originally Posted by mdettweiler 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).

 2010-03-15, 01:52 #17 MyDogBuster     May 2008 Wilmington, DE 284810 Posts Thanks guys. I tested BOTH solutions and they work.
 2010-03-25, 12:01 #18 gd_barnes     May 2007 Kansas; USA 26·3·53 Posts 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
2010-03-25, 12:17   #19
Mini-Geek
Account Deleted

"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts

Quote:
 Originally Posted by gd_barnes 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 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!

2010-03-25, 12:18   #20
kar_bon

Mar 2006
Germany

23·5·71 Posts

Quote:
 Originally Posted by gd_barnes 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

2010-03-25, 14:03   #21
gd_barnes

May 2007
Kansas; USA

237008 Posts

Quote:
 Originally Posted by kar_bon 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

2010-03-25, 14:11   #22
Mini-Geek
Account Deleted

"Tim Sorbera"
Aug 2006
San Antonio, TX USA

10000101010112 Posts

Quote:
 Originally Posted by gd_barnes 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

 Similar Threads Thread Thread Starter Forum Replies Last Post ValerieVonck Software 12 2010-03-15 18:09 balachmar Prime Sierpinski Project 4 2008-07-19 08:21 em99010pepe Riesel Prime Search 20 2007-09-11 21:03 ewmayer Soap Box 23 2007-05-27 12:37 Bananeweizen Sierpinski/Riesel Base 5 4 2006-10-14 07:51

All times are UTC. The time now is 07:33.

Tue Aug 11 07:33:45 UTC 2020 up 25 days, 3:20, 1 user, load averages: 1.81, 1.85, 1.87