View Single Post
Old 2019-02-18, 18:51   #4
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

23·577 Posts
Default skipped interim residues; primality test type

Welcome changes and a few small things that might be cleaned up.
Following brief test was run on an HP G72 notebook (i3-M370, Win7 x64)

0) no benchmarking tested

1) The skipped interim residue case first reported for V29.4 remains in V29.6b1. See https://www.mersenneforum.org/showpo...&postcount=427 Note iteration 11 and 17 below have no interim residue output.
In prime.txt,
Code:
OutputIterations=1
InterimResidues=1
Worker window contains
Code:
[Feb 18 12:01] Worker starting
[Feb 18 12:01] Setting affinity to run worker on CPU core #1
[Feb 18 12:01] Setting affinity to run helper thread 1 on CPU core #2
[Feb 18 12:01] Starting primality test of M82589933 using FFT length 4480K, Pass1=896, Pass2=5K, clm=4, 2 threads
[Feb 18 12:01] Iteration: 3 / 82589933 [0.00%], ms/iter: 59.833, ETA: 57d 04:40
[Feb 18 12:01] M82589933 interim LL residue 000000000000000E at iteration 3
[Feb 18 12:01] Iteration: 4 / 82589933 [0.00%], ms/iter: 62.653, ETA: 59d 21:22
[Feb 18 12:01] M82589933 interim LL residue 00000000000000C2 at iteration 4
[Feb 18 12:01] Iteration: 5 / 82589933 [0.00%], ms/iter: 85.160, ETA: 81d 09:43
[Feb 18 12:01] M82589933 interim LL residue 0000000000009302 at iteration 5
[Feb 18 12:01] Iteration: 6 / 82589933 [0.00%], ms/iter: 63.056, ETA: 60d 06:36
[Feb 18 12:01] M82589933 interim LL residue 00000000546B4C02 at iteration 6
[Feb 18 12:01] Iteration: 7 / 82589933 [0.00%], ms/iter: 67.032, ETA: 64d 01:49
[Feb 18 12:01] M82589933 interim LL residue 1BD696D9F03D3002 at iteration 7
[Feb 18 12:01] Iteration: 8 / 82589933 [0.00%], ms/iter: 62.132, ETA: 59d 09:24
[Feb 18 12:01] M82589933 interim LL residue 8CC88407A9F4C002 at iteration 8
[Feb 18 12:01] Iteration: 9 / 82589933 [0.00%], ms/iter: 63.589, ETA: 60d 18:50
[Feb 18 12:01] M82589933 interim LL residue 55599F9D37D30002 at iteration 9
[Feb 18 12:01] Iteration: 10 / 82589933 [0.00%], ms/iter: 63.583, ETA: 60d 18:42
[Feb 18 12:01] M82589933 interim LL residue F460D65DDF4C0002 at iteration 10
[Feb 18 12:01] Iteration: 11 / 82589933 [0.00%], ms/iter: 65.185, ETA: 62d 07:26
[Feb 18 12:01] Stopping primality test of M82589933 at iteration 11 [0.00%]
[Feb 18 12:01] Worker stopped.
[Feb 18 12:01] Worker starting
[Feb 18 12:01] Setting affinity to run worker on CPU core #1
[Feb 18 12:01] Setting affinity to run helper thread 1 on CPU core #2
[Feb 18 12:01] Running Jacobi error check.  Passed.  Time:  1.159 sec.
[Feb 18 12:01] Resuming primality test of M82589933 using FFT length 4480K, Pass1=896, Pass2=5K, clm=4, 2 threads
[Feb 18 12:01] Iteration: 12 / 82589933 [0.00%].
[Feb 18 12:01] M82589933 interim LL residue 9BDB491DF4C00002 at iteration 12
[Feb 18 12:01] Iteration: 13 / 82589933 [0.00%], ms/iter: 31.265, ETA: 29d 21:15
[Feb 18 12:01] M82589933 interim LL residue 4CEBB477D3000002 at iteration 13
[Feb 18 12:01] Iteration: 14 / 82589933 [0.00%], ms/iter: 60.381, ETA: 57d 17:14
[Feb 18 12:01] M82589933 interim LL residue 0B97D1DF4C000002 at iteration 14
[Feb 18 12:01] Iteration: 15 / 82589933 [0.00%], ms/iter: 91.954, ETA: 87d 21:34
[Feb 18 12:01] M82589933 interim LL residue ACEF477D30000002 at iteration 15
[Feb 18 12:01] Iteration: 16 / 82589933 [0.00%], ms/iter: 61.444, ETA: 58d 17:37
[Feb 18 12:01] M82589933 interim LL residue 9CBD1DF4C0000002 at iteration 16
[Feb 18 12:01] Iteration: 17 / 82589933 [0.00%], ms/iter: 65.462, ETA: 62d 13:48
[Feb 18 12:01] Stopping primality test of M82589933 at iteration 17 [0.00%]
[Feb 18 12:01] Worker stopped.
[Feb 18 12:02] Worker starting
[Feb 18 12:02] Setting affinity to run worker on CPU core #1
[Feb 18 12:02] Setting affinity to run helper thread 1 on CPU core #2
[Feb 18 12:02] Running Jacobi error check.  Passed.  Time:  1.752 sec.
[Feb 18 12:02] Resuming primality test of M82589933 using FFT length 4480K, Pass1=896, Pass2=5K, clm=4, 2 threads
[Feb 18 12:02] Iteration: 18 / 82589933 [0.00%].
[Feb 18 12:02] M82589933 interim LL residue 0BD1DF4C00000002 at iteration 18
[Feb 18 12:02] Iteration: 19 / 82589933 [0.00%], ms/iter: 34.795, ETA: 33d 06:14
[Feb 18 12:02] M82589933 interim LL residue 2F477D3000000002 at iteration 19
[Feb 18 12:02] Iteration: 20 / 82589933 [0.00%], ms/iter: 68.893, ETA: 65d 20:30
[Feb 18 12:02] M82589933 interim LL residue BD1DF4C000000002 at iteration 20
[Feb 18 12:02] Iteration: 21 / 82589933 [0.00%], ms/iter: 64.226, ETA: 61d 09:27
[Feb 18 12:02] M82589933 interim LL residue F477D30000000002 at iteration 21
[Feb 18 12:02] Iteration: 22 / 82589933 [0.00%], ms/iter: 65.461, ETA: 62d 13:47
[Feb 18 12:02] M82589933 interim LL residue D1DF4C0000000002 at iteration 22
[Feb 18 12:02] Iteration: 23 / 82589933 [0.00%], ms/iter: 66.030, ETA: 63d 02:50
[Feb 18 12:02] Stopping primality test of M82589933 at iteration 23 [0.00%]
[Feb 18 12:02] Worker stopped.
2) This run indicates LL in the worker title bar, a nice addition to distinguish it from PRP3. Similarly, PRP under way indicates x.xx% of PRP (exponent) in the worker title bar. Interim residue lines contained in the worker window also indicate LL or PRP: format approximately
Mexponent interim LL residue DEADBEEF12340002 at iteration n

3) Status counts both LL and PRP3 assignment lines in worktodo.txt toward total exponents to be tested, and presumably toward odds of finding a prime.

4) This worktodo.txt content briefly showed PRP in the worker title bar and then went back to computing LL iterations, despite the worktodo order.
Code:
PRP=N/A,1,2,82589933,-1
Test=N/A,82589933,76,1
Are the save files named the same for LL and PRP3? Worker window content:
Code:
[Feb 18 12:10] Worker starting
[Feb 18 12:10] Setting affinity to run worker on CPU core #1
[Feb 18 12:10] Setting affinity to run helper thread 1 on CPU core #2
[Feb 18 12:10] Error reading intermediate file: p82589933
[Feb 18 12:10] Renaming p82589933 to p82589933.bad1
[Feb 18 12:10] Trying backup intermediate file: p82589933.bu
[Feb 18 12:10] Error reading intermediate file: p82589933.bu
[Feb 18 12:10] Renaming p82589933.bu to p82589933.bad2
[Feb 18 12:10] Trying backup intermediate file: p82589933.bu2
[Feb 18 12:10] Error reading intermediate file: p82589933.bu2
[Feb 18 12:10] Renaming p82589933.bu2 to p82589933.bad3
[Feb 18 12:10] All intermediate files bad.  Temporarily abandoning work unit.
[Feb 18 12:10] Setting affinity to run helper thread 1 on CPU core #2
[Feb 18 12:10] Trying backup intermediate file: p82589933.bad3
[Feb 18 12:10] Running Jacobi error check.  Passed.  Time:  1.200 sec.
[Feb 18 12:10] Resuming primality test of M82589933 using FFT length 4480K, Pass1=896, Pass2=5K, clm=4, 2 threads
[Feb 18 12:10] Iteration: 12 / 82589933 [0.00%].
[Feb 18 12:10] M82589933 interim LL residue 9BDB491DF4C00002 at iteration 12
[Feb 18 12:10] Iteration: 13 / 82589933 [0.00%], ms/iter: 30.680, ETA: 29d 07:50
[Feb 18 12:10] M82589933 interim LL residue 4CEBB477D3000002 at iteration 13
[Feb 18 12:10] Iteration: 14 / 82589933 [0.00%], ms/iter: 63.538, ETA: 60d 17:39
[Feb 18 12:10] M82589933 interim LL residue 0B97D1DF4C000002 at iteration 14
[Feb 18 12:10] Iteration: 15 / 82589933 [0.00%], ms/iter: 61.414, ETA: 58d 16:56
[Feb 18 12:10] M82589933 interim LL residue ACEF477D30000002 at iteration 15
[Feb 18 12:10] Iteration: 16 / 82589933 [0.00%], ms/iter: 66.542, ETA: 63d 14:35
[Feb 18 12:10] M82589933 interim LL residue 9CBD1DF4C0000002 at iteration 16
[Feb 18 12:10] Iteration: 17 / 82589933 [0.00%], ms/iter: 71.187, ETA: 68d 01:08
[Feb 18 12:10] M82589933 interim LL residue 02F477D300000002 at iteration 17
[Feb 18 12:10] Iteration: 18 / 82589933 [0.00%], ms/iter: 62.478, ETA: 59d 17:20
[Feb 18 12:10] M82589933 interim LL residue 0BD1DF4C00000002 at iteration 18
[Feb 18 12:10] Iteration: 19 / 82589933 [0.00%], ms/iter: 60.849, ETA: 58d 03:59
[Feb 18 12:10] M82589933 interim LL residue 2F477D3000000002 at iteration 19
[Feb 18 12:10] Iteration: 20 / 82589933 [0.00%], ms/iter: 64.582, ETA: 61d 17:37
[Feb 18 12:10] M82589933 interim LL residue BD1DF4C000000002 at iteration 20
[Feb 18 12:10] Iteration: 21 / 82589933 [0.00%], ms/iter: 62.924, ETA: 60d 03:34
[Feb 18 12:10] M82589933 interim LL residue F477D30000000002 at iteration 21
[Feb 18 12:10] Iteration: 22 / 82589933 [0.00%], ms/iter: 63.104, ETA: 60d 07:43
[Feb 18 12:10] M82589933 interim LL residue D1DF4C0000000002 at iteration 22
[Feb 18 12:10] Iteration: 23 / 82589933 [0.00%], ms/iter: 82.314, ETA: 78d 16:24
[Feb 18 12:10] M82589933 interim LL residue 477D300000000002 at iteration 23
[Feb 18 12:10] Iteration: 24 / 82589933 [0.00%], ms/iter: 67.763, ETA: 64d 18:35
[Feb 18 12:10] M82589933 interim LL residue 1DF4C00000000002 at iteration 24
[Feb 18 12:10] Iteration: 25 / 82589933 [0.00%], ms/iter: 60.561, ETA: 57d 21:22
[Feb 18 12:10] M82589933 interim LL residue 77D3000000000002 at iteration 25
[Feb 18 12:10] Iteration: 26 / 82589933 [0.00%], ms/iter: 65.237, ETA: 62d 08:38
[Feb 18 12:10] M82589933 interim LL residue DF4C000000000002 at iteration 26
[Feb 18 12:10] Iteration: 27 / 82589933 [0.00%], ms/iter: 63.078, ETA: 60d 07:06
[Feb 18 12:10] Stopping primality test of M82589933 at iteration 27 [0.00%]
[Feb 18 12:10] Worker stopped.
There were a few intermediate save files labeled bad, in the working folder. Presumably because they were from LL and the first worktodo item was PRP, for the same exponent. This case should be very rare. It may occur by accident or in some testing scenarios.

The worker was stopped and all intermediate files for the exponent were moved to a separate folder. On resume, PRP3 started from iteration 1.
Code:
[Feb 18 12:19] Worker starting
[Feb 18 12:19] Setting affinity to run worker on CPU core #1
[Feb 18 12:19] Setting affinity to run helper thread 1 on CPU core #2
[Feb 18 12:19] Starting Gerbicz error-checking PRP test of M82589933 using FFT length 4480K, Pass1=896, Pass2=5K, clm=4, 2 threads
[Feb 18 12:19] Iteration: 1 / 82589933 [0.00%], ms/iter: 1332.191, ETA: 1273d 10:40
[Feb 18 12:19] Iteration: 2 / 82589933 [0.00%], ms/iter: 212.367, ETA: 203d 00:02
[Feb 18 12:19] M82589933 interim PRP residue 000000000000001B at iteration 1
[Feb 18 12:19] Iteration: 3 / 82589933 [0.00%], ms/iter: 213.918, ETA: 204d 11:38
[Feb 18 12:19] M82589933 interim PRP residue 000000000000088B at iteration 2
[Feb 18 12:19] Iteration: 4 / 82589933 [0.00%], ms/iter: 246.031, ETA: 235d 04:21
[Feb 18 12:19] M82589933 interim PRP residue 0000000000DAF26B at iteration 3
[Feb 18 12:19] Iteration: 5 / 82589933 [0.00%], ms/iter: 210.429, ETA: 201d 03:34
[Feb 18 12:19] M82589933 interim PRP residue 000231C54B5F6A2B at iteration 4
[Feb 18 12:19] Iteration: 6 / 82589933 [0.00%], ms/iter: 226.473, ETA: 216d 11:39
[Feb 18 12:19] M82589933 interim PRP residue D310B7D97DD4E9AB at iteration 5
[Feb 18 12:19] Iteration: 7 / 82589933 [0.00%], ms/iter: 205.084, ETA: 196d 00:58
[Feb 18 12:20] M82589933 interim PRP residue 2AC0B180838228AB at iteration 6
[Feb 18 12:20] Iteration: 8 / 82589933 [0.00%], ms/iter: 244.553, ETA: 233d 18:26
[Feb 18 12:20] M82589933 interim PRP residue 9B5ACA650265A6AB at iteration 7
[Feb 18 12:20] Iteration: 9 / 82589933 [0.00%], ms/iter: 211.244, ETA: 201d 22:16
[Feb 18 12:20] M82589933 interim PRP residue B47759B0D250A2AB at iteration 8
[Feb 18 12:20] Iteration: 10 / 82589933 [0.00%], ms/iter: 250.999, ETA: 239d 22:19
[Feb 18 12:20] M82589933 interim PRP residue DF36E033DAB69AAB at iteration 9
[Feb 18 12:20] Iteration: 11 / 82589933 [0.00%], ms/iter: 215.197, ETA: 205d 16:58
[Feb 18 12:20] M82589933 interim PRP residue C94525688DC28AAB at iteration 10
[Feb 18 12:20] Iteration: 12 / 82589933 [0.00%], ms/iter: 218.688, ETA: 209d 01:04
[Feb 18 12:20] M82589933 interim PRP residue FC7BEC947CDA6AAB at iteration 11
[Feb 18 12:20] Iteration: 13 / 82589933 [0.00%], ms/iter: 213.036, ETA: 203d 15:24
[Feb 18 12:20] Stopping PRP test of M82589933 at iteration 13 [0.00%]
[Feb 18 12:20] Worker stopped.
5) Note the seemingly out of order output above for PRP3; interim residue for iteration 11 appearing after iteration timing for iteration 12, for example. This is also behavior that was observed in v29.4. See also https://www.mersenneforum.org/showpo...&postcount=428

6) The skipped-interim-residue observed for LL also occurs for PRP3. Note there's no interim residue given for iteration 12 below. It's not known whether this skipping may also occur for cases of higher spacing than 1, but it seems likely it does, with lowered probability as the interim interval is increased.
Code:
[Feb 18 12:20] M82589933 interim PRP residue C94525688DC28AAB at iteration 10
[Feb 18 12:20] Iteration: 12 / 82589933 [0.00%], ms/iter: 218.688, ETA: 209d 01:04
[Feb 18 12:20] M82589933 interim PRP residue FC7BEC947CDA6AAB at iteration 11
[Feb 18 12:20] Iteration: 13 / 82589933 [0.00%], ms/iter: 213.036, ETA: 203d 15:24
[Feb 18 12:20] Stopping PRP test of M82589933 at iteration 13 [0.00%]
[Feb 18 12:20] Worker stopped.
[Feb 18 12:29] Worker starting
[Feb 18 12:29] Setting affinity to run worker on CPU core #1
[Feb 18 12:29] Setting affinity to run helper thread 1 on CPU core #2
[Feb 18 12:29] Resuming Gerbicz error-checking PRP test of M82589933 using FFT length 4480K, Pass1=896, Pass2=5K, clm=4, 2 threads
[Feb 18 12:29] Iteration: 14 / 82589933 [0.00%].
[Feb 18 12:29] M82589933 interim PRP residue 628CE0A31369AAAB at iteration 13
[Feb 18 12:29] Iteration: 15 / 82589933 [0.00%], ms/iter: 121.541, ETA: 116d 04:21
[Feb 18 12:29] M82589933 interim PRP residue B332521E7C28AAAB at iteration 14
kriesel is offline   Reply With Quote