![]() |
![]() |
#210 | |
A Sunny Moo
Aug 2007
USA
2·31·101 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#211 |
Mar 2006
Germany
13·233 Posts |
![]()
wordprocessing/counting in dos-batch is not easy to do. gawk is possible to solve that problem, but another .awk to handle.
to the issue: do again the same test, but be sure delete all files created on client/server. what i think: you did 'do -c' and instantly 'do' again! the server have to get (commit) the cancellation first and must given the chance to prune the knpairs and joblist! try again: - do - do -c - llrserver -s - llrserver -s - do this should work! |
![]() |
![]() |
![]() |
#212 | |
A Sunny Moo
Aug 2007
USA
2·31·101 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#213 |
Mar 2006
Germany
13×233 Posts |
![]()
but than how it work's now?
as i said, pruning could only be done when a command was submitted to the server like requesting new pairs or submitting results. perhaps we should test this on an 'old' server/client to verify this! as long the server did no pruning, the pairs just cancelled are still in the joblist as 'working' and 'CANCEL' for the same user, and the 'lowestKnPair' is determined as a pair not in status working/cancelled by another user. that lowestKnPair is set every time a AskPair hits the server. Last fiddled with by kar_bon on 2010-03-05 at 19:34 |
![]() |
![]() |
![]() |
#214 |
A Sunny Moo
Aug 2007
USA
2·31·101 Posts |
![]()
In the old client, all results are submitted as soon as they're done, so theoretically there will be no completed workunits in workfile.txt to worry about when canceling. All it has to do is cancel whatever's up next in workfile.txt, no questions asked.
|
![]() |
![]() |
![]() |
#215 |
Mar 2006
Germany
13×233 Posts |
![]()
so your suggestion: simulate more the normal llrclient with script!?
means: - receive number of pairs - test one pair - submit that result when test complete and delete pair from workfile.txt - next test - if no workunits = workfile.txt empty -> receive next pairs so when the script is stopped, the workfile.txt only contains pairs not done yet. perhaps this could work. Last fiddled with by kar_bon on 2010-03-05 at 19:48 |
![]() |
![]() |
![]() |
#216 | |
A Sunny Moo
Aug 2007
USA
2×31×101 Posts |
![]() Quote:
Here's what I'd suggest we have it do: -Continue to use the gawk script to process the lresults files as always. -However, before the cancellation code sends in the newly-produced tosend file, have it count the # of lines in it first. Let this be x for the purposes of this description. -Then, remove the first x k/n pairs from workfile.txt. Possibly a second gawk script could be used to do this. -Then, proceed to cancel whatever's left. That's essentially what do.pl does, but adapted to the fact that do.bat uses gawk to do the processing. |
|
![]() |
![]() |
![]() |
#217 |
Mar 2006
Germany
1011110101012 Posts |
![]()
ok, i can do this the next hour, i think.
|
![]() |
![]() |
![]() |
#218 |
Mar 2006
Germany
13×233 Posts |
![]()
i've got a second gawk-script to delete the first processed pairs of the workfile.txt.
i also changed the do.bat for this. i've just uploaded the new version for testing! |
![]() |
![]() |
![]() |
#219 | |
A Sunny Moo
Aug 2007
USA
2·31·101 Posts |
![]() Quote:
![]() Both scripts should be all set now--I believe the only thing left to do is the big stress test Gary had planned, hmm? Last fiddled with by mdettweiler on 2010-03-05 at 22:39 |
|
![]() |
![]() |
![]() |
#220 |
Mar 2006
Germany
13·233 Posts |
![]()
i have to test the new cancel-functionality with 0/5, 2/5 or 5/5 tests done from reserved and cancelling. also cancel and just get new pairs.
and the n=1-1000 test from Gary, too. |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Anti-poverty drug testing vs "high" tax deduction testing | kladner | Soap Box | 3 | 2016-10-14 18:43 |
What am I testing? | GARYP166 | Information & Answers | 9 | 2009-02-18 22:41 |
k=243 testing ?? | gd_barnes | Riesel Prime Search | 20 | 2007-11-08 21:13 |
Testing | grobie | Marin's Mersenne-aries | 1 | 2006-05-15 12:26 |
Speed of P-1 testing vs. Trial Factoring testing | eepiccolo | Math | 6 | 2006-03-28 20:53 |