mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2021-12-06, 06:52   #111
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

52·311 Posts
Default

Quote:
Originally Posted by ATH View Post
Switched from build2 to build3 during Stage1. When it reaches P-1 Stage2 it freezes during initialization
Preliminary analysis is a deadlocking issue. Try running stage 2 single threaded.
Prime95 is offline   Reply With Quote
Old 2021-12-06, 08:09   #112
lycorn
 
lycorn's Avatar
 
"GIMFS"
Sep 2002
Oeiras, Portugal

22×3×127 Posts
Default

Prime95 (30.8 build 3) silently stopped working at the beginning of P-1 stage 2 - last messages were about setting the affinities for the 3 helper threads (it´s a 4 core machine). Several hours later, Task Manager was showing 0% CPU and 2.3 GB of RAM in use - it is allowed to use up to 11 GB, which it normally does). The green icon was visible in the tray, and right clicking it produced the usual menu; selecting stop would display the message "stopping all working windows" in the comms window, but nothing actually happened. I had to use Task Manager to kill the process.
The machine had been running build 3 for many hours without any problem, and had already tested several exponents
Am I the only one to experience this problem?

I just noticed ATH posted a similar situation. In my case I had been running build 3 from the beginning of stage 1, tho.

Last fiddled with by lycorn on 2021-12-06 at 08:11 Reason: Cross posting
lycorn is offline   Reply With Quote
Old 2021-12-06, 10:10   #113
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

1E5F16 Posts
Default

Quote:
Originally Posted by lycorn View Post
I just noticed ATH posted a similar situation. In my case I had been running build 3 from the beginning of stage 1, tho.
Quote:
Originally Posted by Prime95 View Post
Preliminary analysis is a deadlocking issue. Try running stage 2 single threaded.
Found and fixed the deadlock. The smaller the exponent you are testing (or the more threads you are running) the more likely you are to experience a deadlock. I'll post a fix as soon as I can.
Prime95 is offline   Reply With Quote
Old 2021-12-06, 13:51   #114
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

840810 Posts
Default

Xyzzy is offline   Reply With Quote
Old 2021-12-06, 14:17   #115
axn
 
axn's Avatar
 
Jun 2003

2·32·293 Posts
Default

Nice! A condensed summary of the run:
Code:
Optimal P-1 factoring of M108028051 using up to 231424MB of memory.
Assuming no factors below 2^76 and 1.1 primality tests saved if a factor is found.
Optimal bounds are B1=755000, B2=479779000
Chance of finding a factor is an estimated 6.32%

Using AVX-512 FFT length 5760K, Pass1=3K, Pass2=1920, clm=1, 18 threads
M108028051 stage 1 complete. 2178208 transforms. Total time: 2516.060 sec.
Conversion of stage 1 result complete. 5 transforms, 1 modular inverse. Time: 45.094 sec.
Switching to AVX-512 FFT length 7056K, Pass1=1344, Pass2=5376, clm=2, 18 threads
Using 229108MB of memory. D: 6930, 720x3371 polynomial multiplication.
Stage 2 init complete. 20328 transforms. Time: 211.952 sec.
M108028051 stage 2 complete. 721861 transforms. Total time: 2481.481 sec.
Stage 2 GCD complete. Time: 24.941 sec.
M108028051 completed P-1, B1=755000, B2=492127020
With huge amount of RAM, this method could potentially speed up PRP wavefront by 2%
axn is online now   Reply With Quote
Old 2021-12-06, 16:25   #116
alpertron
 
alpertron's Avatar
 
Aug 2002
Buenos Aires, Argentina

142210 Posts
Default

Assuming 10% of the users have huge amounts of RAM, that will translate to only 0.2%
alpertron is offline   Reply With Quote
Old 2021-12-06, 16:40   #117
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

7×11×67 Posts
Default

Quote:
Originally Posted by alpertron View Post
Assuming 10% of the users have huge amounts of RAM, that will translate to only 0.2%
No, because even 5% of users is plenty to P-1 all the wavefront exponents. Axn is saying 2% more factors would be found, saving that many prp tests and speeding the project by 2%.
VBCurtis is offline   Reply With Quote
Old 2021-12-06, 16:48   #118
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

13·277 Posts
Default

Just playing around with 30.8b3.win64 (on M859433, yes I know it's prime) and found some odd behaviours. i7-3930K, 64GB (32GB allocated).
Tried with the default 6 threads and it froze as described above. Limited it to 1 thread and it worked:
Quote:
[Dec 6 10:23] Worker starting
[Dec 6 10:23] Setting affinity to run worker on CPU core #2
[Dec 6 10:23] Optimal P-1 factoring of M859433 using up to 32768MB of memory.
[Dec 6 10:23] Assuming no factors below 2^0 and 10 primality tests saved if a factor is found.
[Dec 6 10:23] Optimal bounds are B1=1000, B2=104000
[Dec 6 10:23] Chance of finding a factor is an estimated 100%
[Dec 6 10:23]
[Dec 6 10:23] Using AVX FFT length 48K, Pass1=256, Pass2=192, clm=1
[Dec 6 10:23] M859433 stage 1 complete. 3040 transforms. Total time: 0.601 sec.
[Dec 6 10:24] Conversion of stage 1 result complete. 5 transforms, 1 modular inverse. Time: 0.422 sec.
[Dec 6 10:24] Using 32768MB of memory. D: 19110, 2016x85104 polynomial multiplication.
[Dec 6 10:24] Round off: 0.00439453125, poly_size: 2, EB: 6.24679, SM: 0
[Dec 6 10:24] Round off: 0, poly_size: 4
[Dec 6 10:24] Round off: 0, poly_size: 8
[Dec 6 10:24] Round off: 0, poly_size: 16
[Dec 6 10:24] Round off: 0, poly_size: 32
[Dec 6 10:24] Round off: 0, poly_size: 64
[Dec 6 10:24] Round off: 0, poly_size: 128
[Dec 6 10:24] Round off: 0, poly_size: 256
[Dec 6 10:24] Round off: 0, poly_size: 512
[Dec 6 10:24] Round off: 0, poly_size: 1024
[Dec 6 10:24] Round off: 0, poly_size: 2048
[Dec 6 10:24] Stage 2 init complete. 61794 transforms. Time: 54.750 sec.
[Dec 6 10:29] Round off: 0
[Dec 6 10:30] M859433 stage 2 complete. 666722 transforms. Total time: 343.713 sec.
[Dec 6 10:30] Starting stage 2 GCD - please be patient.
[Dec 6 10:30] Stage 2 GCD complete. Time: 0.180 sec.
[Dec 6 10:30] M859433 completed P-1, B1=1000, B2=1549324140, Wi4: 4A39F218
[Dec 6 10:30] No work to do at the present time. Waiting.
Optimal bounds are described as 104:1, but then it proceeds to select a B2 that 1.5million times bigger than B1, I'm not sure that's intentional? And B2:B1 runtime is 336x.
I'm not sure the "100% chance of factor" is quite right either.
James Heinrich is online now   Reply With Quote
Old 2021-12-06, 16:59   #119
axn
 
axn's Avatar
 
Jun 2003

2×32×293 Posts
Default

I think you may have messed up the worktodo line. To wit:

Quote:
Assuming no factors below 2^0
What was the worktodo line you used?

Yes, it is normal for it to use larger than the specified B2.
axn is online now   Reply With Quote
Old 2021-12-06, 17:45   #120
alpertron
 
alpertron's Avatar
 
Aug 2002
Buenos Aires, Argentina

2·32·79 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
No, because even 5% of users is plenty to P-1 all the wavefront exponents. Axn is saying 2% more factors would be found, saving that many prp tests and speeding the project by 2%.
We do not know if these people will accept doing only P-1. Some people only wants to perform PRP because of the prizes. So they would use multithreading to run as many PRP as possible.
alpertron is offline   Reply With Quote
Old 2021-12-06, 17:46   #121
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

13×277 Posts
Default

Quote:
Originally Posted by axn View Post
What was the worktodo line you used?
Pfactor=1,2,859433,-1,0,10 was what I used for the above. (I came across this exponent on my "worst P-1" page, before I excluded prime exponents, and it had the erroneous TF=0 level). Perhaps Prime95 should apply some sanity checks to specified TF levels?
Running it again with Pfactor=1,2,859433,-1,40,10 and the numbers come up more sane:
Quote:
[Dec 6 12:30] Optimal P-1 factoring of M859433 using up to 32768MB of memory.
[Dec 6 12:30] Assuming no factors below 2^40 and 10 primality tests saved if a factor is found.
[Dec 6 12:30] Optimal bounds are B1=82000, B2=670408000
[Dec 6 12:30] Chance of finding a factor is an estimated 42%
[Dec 6 12:30] Using AVX FFT length 48K, Pass1=256, Pass2=192, clm=1
[Dec 6 12:31] M859433 stage 1 complete. 236894 transforms. Total time: 61.151 sec.
[Dec 6 12:31] Conversion of stage 1 result complete. 5 transforms, 1 modular inverse. Time: 0.248 sec.
[Dec 6 12:31] Switching to AVX FFT length 50K, Pass1=640, Pass2=80, clm=1
[Dec 6 12:31] Using 32440MB of memory. D: 90090, 8640x74168 polynomial multiplication.
[Dec 6 12:32] Round off: 0, poly_size: 2, EB: 0.581153, SM: 3.5192
[Dec 6 12:32] Round off: 0, poly_size: 4
[Dec 6 12:32] Round off: 0, poly_size: 8
[Dec 6 12:32] Round off: 0, poly_size: 16
[Dec 6 12:33] Round off: 0, poly_size: 32
[Dec 6 12:33] Round off: 0, poly_size: 64
[Dec 6 12:33] Round off: 0, poly_size: 128
[Dec 6 12:33] Round off: 0, poly_size: 256
[Dec 6 12:34] Round off: 0, poly_size: 512
[Dec 6 12:34] Round off: 0, poly_size: 1024
[Dec 6 12:35] Round off: 0, poly_size: 2048
[Dec 6 12:35] Round off: 0, poly_size: 4096
[Dec 6 12:35] Round off: 0, poly_size: 8192
[Dec 6 12:36] Round off: 0, poly_size: 16384
[Dec 6 12:36] Stage 2 init complete. 313970 transforms. Time: 281.277 sec.
[Dec 6 12:39] Round off: 0
[Dec 6 12:39] M859433 stage 2 complete. 532866 transforms. Total time: 183.998 sec.
[Dec 6 12:39] Starting stage 2 GCD - please be patient.
[Dec 6 12:39] Stage 2 GCD complete. Time: 0.097 sec.
[Dec 6 12:39] M859433 completed P-1, B1=82000, B2=5164589430, Wi4: 25B7808A
Estimated B2:B1 prior to start was 8000:1, ended up with 63000:1 which I think makes more sense than 1500000:1, as well as the stage2:1 time ratio of ~8:1 is better than 330:1.

One side oddity:
Sending result to server: UID: JamesHeinrich, M859433 completed P-1, B1=82000, B2=5164589430, Wi4: 25B7808A
But the result shows up as "-Anonymous-".
James Heinrich is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime95 beta version 28.4 Prime95 Software 20 2014-03-02 02:51
Prime95 beta version 28.3 Prime95 Software 68 2014-02-23 05:42
Prime95 version 27.1 early preview, not-even-close-to-beta release Prime95 Software 126 2012-02-09 16:17
RMA 1.7 beta bugs TTn 15k Search 2 2004-11-24 22:11
CodeAnalyst 2.2 beta available! Dresdenboy Hardware 13 2003-12-10 14:34

All times are UTC. The time now is 10:21.


Mon Jan 24 10:21:22 UTC 2022 up 185 days, 4:50, 0 users, load averages: 1.89, 1.84, 1.64

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔