mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   Prime95 v30.4/30.5/30.6 (https://www.mersenneforum.org/showthread.php?t=26376)

pepi37 2021-09-01 11:11

[QUOTE=Prime95;586958]What's wrong with ProofPower=0?[/QUOTE]


Thank you! Works perfect!

SethTro 2021-09-02 19:55

I missed a comma in a PMinus1 assignment which resulted in only stage one happening (which it completed).
When I added the exponent back with

PMinus1=1,2,21317,-1,30000000000,0,67,2

[CODE]
[Worker #5 Sep 1 23:29] P-1 on M21317 with B1=30000000000, B2=TBD
[Worker #5 Sep 1 23:29] Using AVX FFT length 1K
[Worker #5 Sep 1 23:29] M21317 stage 1 complete. 0 transforms. Time: 0.887 sec.
[Worker #5 Sep 1 23:29] Stage 1 GCD complete. Time: 0.001 sec.
[Worker #5 Sep 1 23:29] Available memory is 31000MB.
(6 hours to make up it's mind)
[Worker #5 Sep 2 05:36] With trial factoring done to 2^67, optimal B2 is 614891451*B1 = 18446743530000000000.
[Worker #5 Sep 2 05:36] If no prior P-1, chance of a new factor is 41.6%

[/CODE]I've seen 200*B1 and 1000*B1 with ecm but never 614,000,000*B1
Also weird that it took 6 hours to make up it's mind.

Prime95 2021-09-03 01:18

[QUOTE=SethTro;587096]
PMinus1=1,2,21317,-1,30000000000,0,67,2
I've seen 200*B1 and 1000*B1 with ecm but never 614,000,000*B1
Also weird that it took 6 hours to make up it's mind.[/QUOTE]

The 6 hours bug is fixed in 30.7. I've also capped the max B2/B1 at 1000 (can override with a prime.txt setting).

It may well be that large B2/B1 ratio makes sense. Prime95 looks at the incremental cost associated with increasing the B2/B1 ratio and asks "if I invested that cost in increasing B1, which would have the better chance of finding a factor"?

With your ultra large B1 I suppose there is little to be gained in raising B1, thus prime95 concludes a very large B2/B1 ratio makes sense. Your version finally stopped at a ratio of 614000000 because B2*B1 overflowed 64 bits.

Prime95 2021-09-03 03:19

[QUOTE=SethTro;587096]
PMinus1=1,2,21317,-1,30000000000,0,67,2[/QUOTE]

30.7 is going to have real trouble running stage 2 on this. Maybe if you keep the B2/B1 ratio low it will work.

30.7 uses a new prime pairing algorithm that is mainly targeting the common cases: B1 from 50,000 to 100,000,000 and B2/B1 from 10 to 200.

axn 2021-09-03 04:28

21317 has ECM done till half t45. If you convert that to a TF depth and use that instead of 67, maybe it will generate reasonable B2?

EDIT:- Or realize that asking P95 to generate "optimal" B2 with completely made up numbers like "67,2" is piling nonsense upon nonsense, and instead just specify the B2 manually (say B1*200).

EDIT2:- But naturally, this small an exponent should use GMP-ECM to do stage 2.

pepi37 2021-09-03 06:38

To rise old question from the dust, can in Prime95 be implemented option STOP K when prime is found ( same as LLR have) It will be great for CRUS search.

SethTro 2021-09-03 17:58

I think changing worker threads reset my progress on ECM.

BL;UP
Worker #2 is on curve 646, then I change to 1 worker with 8 threads and that the ECM workitem gets moved to Worker #1 and progress gets reset back to curve 1.

I do have e0125429 and e0125429_1 so it's likely some status has been saved but it's hard to inspect these files by hand to see which curve it thinks it's on.

Excerpts from my logs


[CODE]
[Worker #2 Sep 3 00:47] ECM on M125429: curve #644 with s=8339439611366174, B1=3000000, B2=300000000
[Worker #2 Sep 3 00:59] Stage 1 complete. 78140227 transforms, 1 modular inverses. Time: 668.117 sec.
[Worker #2 Sep 3 01:03] Stage 2 complete. 28174299 transforms, 2 modular inverses. Time: 255.439 sec.
[Worker #2 Sep 3 01:03] ECM on M125429: curve #645 with s=8285950124090187, B1=3000000, B2=300000000
[Worker #2 Sep 3 01:14] Stage 1 complete. 78140227 transforms, 1 modular inverses. Time: 670.593 sec.
[Worker #2 Sep 3 01:18] Stage 2 complete. 28174299 transforms, 2 modular inverses. Time: 252.148 sec.
[Worker #2 Sep 3 01:18] Stage 2 GCD complete. Time: 0.004 sec.
[Worker #2 Sep 3 01:18] ECM on M125429: curve #646 with s=5349357897010496, B1=3000000, B2=300000000

Main Menu

1. Test/Primenet
2. Test/Worker threads
3. Test/Status
4. Test/Stop
5. Test/Exit
6. Advanced/Test
7. Advanced/Time
8. Advanced/P-1
9. Advanced/ECM
10. Advanced/Manual Communication
11. Advanced/Unreserve Exponent
12. Advanced/Quit Gimps
13. Options/CPU
14. Options/Resource Limits
15. Options/Preferences
16. Options/Torture Test
17. Options/Benchmark
18. Help/About
19. Help/About PrimeNet Server
Your choice: 3

Below is a report on the work you have queued and any expected completion
dates.
[Worker thread #1]
No work queued up.
[Worker thread #2]
M125429, ECM 750 curves B1=3000000, Sun Sep 5 12:14 2021
[Worker thread #3]
No work queued up.
[Worker thread #4]
No work queued up.
[Worker thread #5]
No work queued up.
[Worker thread #6]
No work queued up.
[Worker thread #7]
No work queued up.


Hit enter to continue: [Worker #2 Sep 3 01:30] Stage 1 complete. 78140227 transforms, 1 modular inverses. Time: 688.191 sec.
[Worker #2 Sep 3 01:30] Using 892MB of memory in stage 2.
[Worker #2 Sep 3 01:30] Stage 2 init complete. 160213 transforms, 1 modular inverses. Time: 1.430 sec.
[Worker #2 Sep 3 01:34] Stage 2 complete. 28174299 transforms, 2 modular inverses. Time: 263.829 sec.
[Worker #2 Sep 3 01:34] Stage 2 GCD complete. Time: 0.006 sec.
[Worker #2 Sep 3 01:34] ECM on M125429: curve #647 with s=2997245615684352, B1=3000000, B2=300000000
[Worker #4 Sep 3 01:42] Resuming.
[Worker #4 Sep 3 01:42] No work to do at the present time. Waiting.

Main Menu

1. Test/Primenet
2. Test/Worker threads
3. Test/Status
4. Test/Stop
5. Test/Exit
6. Advanced/Test
7. Advanced/Time
8. Advanced/P-1
9. Advanced/ECM
10. Advanced/Manual Communication
11. Advanced/Unreserve Exponent
12. Advanced/Quit Gimps
13. Options/CPU
14. Options/Resource Limits
15. Options/Preferences
16. Options/Torture Test
17. Options/Benchmark
18. Help/About
19. Help/About PrimeNet Server
Your choice: 2

Number of workers to run (7): 1

CPU cores to use (multithreading) (1): 8

Accept the answers above? (Y): Y
[Main thread Sep 3 01:43] Restarting all worker windows.
Main Menu

1. Test/Primenet
2. Test/Worker threads
3. Test/Status
4. Test/Stop
5. Test/Exit
6. Advanced/Test
7. Advanced/Time
8. Advanced/P-1
9. Advanced/ECM
10. Advanced/Manual Communication
11. Advanced/Unreserve Exponent
12. Advanced/Quit Gimps
13. Options/CPU
14. Options/Resource Limits
15. Options/Preferences
16. Options/Torture Test
17. Options/Benchmark
18. Help/About
19. Help/About PrimeNet Server
Your choice: [Worker #1 Sep 3 01:43] Resuming.
[Worker #1 Sep 3 01:43] Worker stopped.
[Worker #4 Sep 3 01:43] Resuming.
[Worker #4 Sep 3 01:43] Worker stopped.
[Worker #7 Sep 3 01:43] Resuming.
[Worker #7 Sep 3 01:43] Worker stopped.
[Worker #3 Sep 3 01:43] Resuming.
[Worker #3 Sep 3 01:43] Worker stopped.
[Worker #6 Sep 3 01:43] Resuming.
[Worker #6 Sep 3 01:43] Worker stopped.
[Worker #5 Sep 3 01:43] Resuming.
[Worker #5 Sep 3 01:43] Worker stopped.
[Worker #2 Sep 3 01:43] Worker stopped.
[Main thread Sep 3 01:43] Restarting all worker windows using new settings.
[Main thread Sep 3 01:43] Too many sections in worktodo.txt. Moving work from section #2 to #1.
[Main thread Sep 3 01:43] Too many sections in worktodo.txt. Moving work from section #3 to #1.
[Main thread Sep 3 01:43] Too many sections in worktodo.txt. Moving work from section #4 to #1.
[Main thread Sep 3 01:43] Too many sections in worktodo.txt. Moving work from section #5 to #1.
[Main thread Sep 3 01:43] Too many sections in worktodo.txt. Moving work from section #6 to #1.
[Main thread Sep 3 01:43] Too many sections in worktodo.txt. Moving work from section #7 to #1.
[Worker #1 Sep 3 01:43] Worker starting
[Worker #1 Sep 3 01:43] Setting affinity to run worker on CPU core #2
[Worker #1 Sep 3 01:43] Setting affinity to run helper thread 1 on CPU core #3
[Worker #1 Sep 3 01:43] Setting affinity to run helper thread 3 on CPU core #5
[Worker #1 Sep 3 01:43] Setting affinity to run helper thread 4 on CPU core #6
[Worker #1 Sep 3 01:43] Setting affinity to run helper thread 5 on CPU core #7
[Worker #1 Sep 3 01:43] Setting affinity to run helper thread 2 on CPU core #4
[Worker #1 Sep 3 01:43] Using FMA3 FFT length 6K, Pass1=128, Pass2=48, clm=2, 6 threads
[Worker #1 Sep 3 01:43] ECM on M125429: curve #1 with s=4174744624872270, B1=3000000, B2=300000000
[Worker #1 Sep 3 02:38] Stage 1 complete. 78140227 transforms, 1 modular inverses. Time: 3308.460 sec.
[Worker #1 Sep 3 02:56] Stage 2 complete. 28174303 transforms, 2 modular inverses. Time: 1042.426 sec.
[Worker #1 Sep 3 02:56] ECM on M125429: curve #2 with s=1008188240961680, B1=3000000, B2=300000000
[Worker #1 Sep 3 03:49] Stage 1 complete. 78140227 transforms, 1 modular inverses. Time: 3180.581 sec.
[Worker #1 Sep 3 04:06] Stage 2 complete. 28174299 transforms, 2 modular inverses. Time: 1009.045 sec.
[Worker #1 Sep 3 04:06] ECM on M125429: curve #3 with s=2585226154145931, B1=3000000, B2=300000000
[/CODE]

Prime95 2021-09-03 19:30

[QUOTE=SethTro;587187]I think changing worker threads reset my progress on ECM.

I do have e0125429 and e0125429_1 so it's likely some status has been saved but it's hard to inspect these files by hand to see which curve it thinks it's on.[/QUOTE]

ECM save file names are a mess. The _1 is there so that multiple workers can all ECM the same number.

Step 1: backup the two files.
Step 2: delete and/or rename files until prime95 uses the one with 640+ curves.

Sorry for the trouble.

SethTro 2021-09-03 21:26

That worked.

Thanks for the advice and thanks for writing all of the code :)

Glenn 2021-09-11 00:29

Latest Prime95 Updating?
 
At what point should I update my Prime95 software? I'm currently using 30.6 Build 4, which seems to be the latest easily available, though I'm now reading about 30.7 in this thread.

James Heinrich 2021-09-11 00:47

Perhaps the better question is why the [url=https://www.mersenne.org/download/]download page[/url] still points to v30.3b6?


All times are UTC. The time now is 18:44.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.