mersenneforum.org  

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

Reply
 
Thread Tools
Old 2022-01-15, 00:59   #320
Zhangrc
 
"University student"
May 2021
Beijing, China

2·53 Posts
Default v30.8 stage 2 thread switching

Stage 2 switches between threads constantly during stage 2, unlike PRP or LL where no switching happens.
That might be why the "system" and "program manager" steal my CPU cycles.
Attached Thumbnails
Click image for larger version

Name:	switch.JPG
Views:	50
Size:	99.0 KB
ID:	26428  

Last fiddled with by Zhangrc on 2022-01-15 at 01:03
Zhangrc is offline   Reply With Quote
Old 2022-01-15, 02:39   #321
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

788210 Posts
Default

Quote:
Originally Posted by Zhangrc View Post
Stage 2 switches between threads constantly during stage 2, unlike PRP or LL where no switching happens.
That might be why the "system" and "program manager" steal my CPU cycles.
This bug report basically says "something odd is happening".

More useful would be the output from prime95 showing what the assigned affinity was for each worker/helper. Is the machine hyperthreaded? Prime95 is configured for how many workers, how many threads/worker, how many additional polymult threads, etc.?
Prime95 is offline   Reply With Quote
Old 2022-01-15, 05:11   #322
Zhangrc
 
"University student"
May 2021
Beijing, China

2·53 Posts
Default

See some of my previous posts for more information.
This CPU is AMD R7 4800H, which has 8 cores and 16 threads. Prime95 is set to run 1 worker at core 2,3,4,5 (not hyperthreaded). However, it seems that Prime95 is switching between threads of each core.
For comparison, this is my CPU usage when running LLDC (M63759613, 1 worker using core 1,2,3,4, not hyperthreaded).
Attached Thumbnails
Click image for larger version

Name:	lldc.JPG
Views:	33
Size:	95.6 KB
ID:	26429  

Last fiddled with by Zhangrc on 2022-01-15 at 05:13
Zhangrc is offline   Reply With Quote
Old 2022-01-16, 15:43   #323
jocelynl1204
 
Feb 2018

3×7 Posts
Default

George, currently on build 8, when there's a "out of memory" it just simply quits. On your next build could it just output a message in the result file and then continue on to the next one in the worktodo list? This would really be appreciated. Thanks.
jocelynl1204 is offline   Reply With Quote
Old 2022-01-16, 15:53   #324
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

33×313 Posts
Default

[Work thread Jan 16 09:17] With trial factoring done to 2^72, optimal B2 is 6670*B1 = 20010000000.

6670? (!)

Xyzzy is offline   Reply With Quote
Old 2022-01-16, 16:24   #325
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

22×5×7×37 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
[Work thread Jan 16 09:17] With trial factoring done to 2^72, optimal B2 is 6670*B1 = 20010000000.

6670? (!)

Not surprising with 30.8 and lots of RAM.
It will fly through Stage 2.
How much RAM?
petrw1 is online now   Reply With Quote
Old 2022-01-16, 16:58   #326
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

33×313 Posts
Default

Quote:
Originally Posted by petrw1 View Post
How much RAM?
[Work thread Jan 16 10:18] Using 229377MB of memory. D: 90090, 8640x34699 polynomial multiplication.

Xyzzy is offline   Reply With Quote
Old 2022-01-17, 17:44   #327
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

143C16 Posts
Default

@George: Do you still recommend these 2 settings?

ErrorCheck=1
SumInputsErrorCheck=1
petrw1 is online now   Reply With Quote
Old 2022-01-17, 18:49   #328
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

120748 Posts
Default Stage 2 changed it's mind twice v30.8b8

Code:
[Main thread Jan 17 12:32] Mersenne number primality test program version 30.8
[Main thread Jan 17 12:32] Optimizing for CPU architecture: Core i3/i5/i7, L2 cache size: 8x1 MB, L3 cache size: 11 MB
[Main thread Jan 17 12:32] Starting worker.
[Work thread Jan 17 12:32] Worker starting
[Work thread Jan 17 12:32] 
[Work thread Jan 17 12:32] P-1 on M20847979 with B1=800000, B2=TBD
[Work thread Jan 17 12:32] Using AVX-512 FFT length 1152K, Pass1=192, Pass2=6K, clm=2, 8 threads
[Work thread Jan 17 12:35] M20847979 stage 1 complete. 736816 transforms. Total time: 176.568 sec.
[Work thread Jan 17 12:35] Round off: 0.0483828336
[Work thread Jan 17 12:35] Inversion of stage 1 result complete. 5 transforms, 1 modular inverse. Time: 6.813 sec.
[Work thread Jan 17 12:35] With trial factoring done to 2^75, optimal B2 is 359*B1 = 287200000.
[Work thread Jan 17 12:35] If no prior P-1, chance of a new factor is 5.42%
[Work thread Jan 17 12:35] Switching to AVX-512 FFT length 1200K, Pass1=640, Pass2=1920, clm=2, 8 threads
[Work thread Jan 17 12:35] With trial factoring done to 2^75, optimal B2 is 345*B1 = 276000000.
[Work thread Jan 17 12:35] If no prior P-1, chance of a new factor is 5.39%
[Work thread Jan 17 12:35] Switching to AVX-512 FFT length 1280K, Pass1=128, Pass2=10K, clm=2, 8 threads
[Work thread Jan 17 12:35] With trial factoring done to 2^75, optimal B2 is 324*B1 = 259200000.
[Work thread Jan 17 12:35] If no prior P-1, chance of a new factor is 5.34%
[Work thread Jan 17 12:35] Using 24579MB of memory.  D: 4290, 480x1936 polynomial multiplication.
petrw1 is online now   Reply With Quote
Old 2022-01-17, 18:49   #329
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2·7·563 Posts
Default

Quote:
Originally Posted by petrw1 View Post
@George: Do you still recommend these 2 settings?
ErrorCheck=1
SumInputsErrorCheck=1
ErrorCheck=1 won't hurt. I think the polymult library is good at keeping roundoff error well below 0.5. However, I've not thoroughly studied the matter.

SumInputs is only useful for SSE2 machines -- in other words its pretty much obsolete.
Prime95 is offline   Reply With Quote
Old 2022-01-17, 18:52   #330
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

22·5·7·37 Posts
Default

Quote:
Originally Posted by Prime95 View Post
ErrorCheck=1 won't hurt. I think the polymult library is good at keeping roundoff error well below 0.5. However, I've not thoroughly studied the matter.

SumInputs is only useful for SSE2 machines -- in other words its pretty much obsolete.
ok thanks.

BTW: I added this line to eliminate all the "Setting Affinity..." lines; a bigger deal for 8+core machines.
AffinityVerbosity=0
petrw1 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
Beta version 24.12 available Prime95 Software 33 2005-06-14 13:19
Beta version of PRP Prime95 PSearch 15 2004-09-17 19:21

All times are UTC. The time now is 20:13.


Tue May 17 20:13:52 UTC 2022 up 33 days, 18:15, 0 users, load averages: 1.00, 1.12, 1.13

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.

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