mersenneforum.org  

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

Reply
 
Thread Tools
Old 2021-10-14, 05:31   #67
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

170038 Posts
Default

Build 5 is ready -- mainly for Ken and kruoli.
Prime95 is online now   Reply With Quote
Old 2021-10-14, 08:50   #68
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

28·3 Posts
Default

Quote:
Originally Posted by Zhangrc View Post
The bug […]
This problem is really hard to reproduce – I tried multiple times over multiple versions. Sometimes it is there, sometimes not. I remember some posts in the past mentioning this problem, it even occurred to me that I myself reported it some time ago – but I could not find it then.

The problem happens when the text box looses focus. In the video, you can see that it changes back briefly to 3 when the window gets closed, but only if you enter a smaller value.

But lets have a look at the code… The problem is (assumption here, but I'm relatively sure) the function min_cores_for_work_pref which gets called from the event handler when leaving the text box. These lines are important (from 30.6b4 source):
Code:
cores = cores * 24 / CPU_HOURS;
if (cores > (int) NUM_CPUS) cores = NUM_CPUS;
You have NUM_CPUS = 8 in your example. Assuming you set 8 h per day, cores = cores * 24 / 8. Since cores is set to 1 before that snippet, because you are not running 100M digit tests (then it would be 4), cores will be 3 afterward. This value gets returned (in this case 3) and set back into the text box (lines 328-332 and 335, 336 and 339-340 in WorkerDlg.c). This should happen for CPU_HOURS from 8 to 11, inclusively.

@George: You might have to set your CPU hours per day to e.g. 1, have multiple workers and then should be able to reproduce this.

Last fiddled with by kruoli on 2021-10-14 at 09:23 Reason: Small corrections.
kruoli is offline   Reply With Quote
Old 2021-10-14, 21:41   #69
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

1,487 Posts
Default

Quote:
[Oct 14 23:38:49] Timing 384K FFT, 6 cores, 1 worker. Average times: 0.27 ms. Total throughput: 3727.40 iter/sec.
[Oct 14 23:39:04] Timing 384K FFT, 6 cores, 2 workers. Average times: 0.50, 0.50 ms. Total throughput: 4004.31 iter/sec.
[Oct 14 23:39:19] Timing 384K FFT, 6 cores hyperthreaded, 1 worker. Average times: 0.27 ms. Total throughput: 3743.41 iter/sec.
[Oct 14 23:39:34] Timing 384K FFT, 6 cores hyperthreaded, 2 workers. Average times: 0.50, 0.50 ms. Total throughput: 3990.78 iter/sec.

[Oct 14 23:39:49]
[Oct 14 23:39:49] Throughput benchmark complete.
[Oct 14 23:39:49] Throughput benchmark complete.
[Oct 14 23:39:49] Worker stopped.

But CPU i5-9600K doesnot have HT cores.
pepi37 is offline   Reply With Quote
Old 2021-10-14, 22:23   #70
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

3·13·197 Posts
Default

Quote:
Originally Posted by pepi37 View Post
But CPU i5-9600K doesnot have HT cores.
Windows or Linux? Did the dialog box allow you to select the "Use hyperthreading" checkbox?

Nevermind. Fix coming in build 6.

Last fiddled with by Prime95 on 2021-10-15 at 02:39
Prime95 is online now   Reply With Quote
Old 2021-10-14, 23:19   #71
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

3×13×197 Posts
Default

Quote:
Originally Posted by kruoli View Post
@George: You might have to set your CPU hours per day to e.g. 1, have multiple workers and then should be able to reproduce this.
Quote:
Originally Posted by Zhangrc View Post
The bug is really strange ...
Thanks kruoli. I'll add text to worker windows dialog box to explain that there is a minimum number of cores.
Prime95 is online now   Reply With Quote
Old 2021-10-15, 09:46   #72
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

28×3 Posts
Default

An explanation might not be sufficient (or would need to include a workaround like setting CPU hours to 24 while editing the worker window or manually editing the setting text files). Consider this (in my opinion realistic) example:
Someone wants to do work with small FFTs (ECM, PRP-CF, etc.). He has 8 cores. He has 8 CPU hours per day set. He found out that four workers with two threads each give the best throughput (which is realistic for the work I described).

If he then tries to enter that in the worker window, he is forced to give 3 threads to each of the 4 worker windows, which is clearly nonsensical. Naturally, Prime95 will complain that this is over-allocation.
Possible solution: The minimum number of threads cannot exceed floor((CPU cores)/(worker count)).

But there is another problem: If PrimeNet is disabled, these requirements are still enforced (just tested that). Why should we enforce such requirements if somebody is doing something out of PrimeNet space?
Possible solution: If PrimeNet is disabled, the minimum number of threads is always 1.

Last fiddled with by kruoli on 2021-10-15 at 09:49 Reason: thinks != things
kruoli is offline   Reply With Quote
Old 2021-10-15, 09:50   #73
Zhangrc
 
"University student"
May 2021
Beijing, China

12610 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Try sending me prime.txt, local.txt and I'll try to reproduce again. Weird.
Here you are
Attached Files
File Type: 7z prime_local.7z (1.3 KB, 17 views)
Zhangrc is offline   Reply With Quote
Old 2021-10-15, 14:34   #74
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

3·13·197 Posts
Default

Quote:
Originally Posted by Zhangrc View Post
Here you are
As kruoli successfully diagnosed, your solution is to change the hours per day setting in Options/CPU.
Prime95 is online now   Reply With Quote
Old 2021-10-15, 15:13   #75
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

22×1,481 Posts
Default

Still getting a considerable CERT ETA mismatch (weeks), with 843M and v30.7b5.
Attached Thumbnails
Click image for larger version

Name:	cert eta mismatch.png
Views:	50
Size:	208.9 KB
ID:	25941  
kriesel is offline   Reply With Quote
Old 2021-10-18, 10:27   #76
Zhangrc
 
"University student"
May 2021
Beijing, China

2·32·7 Posts
Default

Quote:
Originally Posted by kruoli View Post
If PrimeNet is disabled, the minimum number of threads is always 1.
Even if PrimeNet is enabled, the number of threads should be allowed to set to whatever number people want. Modern CPU cores are really fast, and the big cores in Alder Lake are even faster. (Never seen any consumer CPUs running at > 5GHZ before)

Also, The "For help, press F1" at the bottom left corner has practically no use. If I press F1, a message box appears, which says "Failed to launch help."
I thought it was due to a file shortage. There was a CHM file in the past, but somehow get removed. (No need to reinstate it, since the CHM file reader is old enough. However it can cause some inconsistencies)

Last fiddled with by Zhangrc on 2021-10-18 at 10:41
Zhangrc is offline   Reply With Quote
Old 2021-10-18, 15:27   #77
gLauss
 
Nov 2014

3·13 Posts
Default

Something strange is going on here, suddenly it keeps saying 100% done. Version was Linux64,Prime95,v30.7,build 5. I might have accidentially changed the B1 sizes in worktodo.txt after a save file has been created, maybe this was the root cause?


...
[Worker #2 Oct 18 17:00] M6025297 stage 2 is 66.43% complete. Time: 17.019 sec.
[Worker #1 Oct 18 17:01] M6058333 stage 1 is 99.72% complete. Time: 42.995 sec.
[Worker #2 Oct 18 17:01] M6025297 stage 2 is 66.63% complete. Time: 18.497 sec.
[Worker #2 Oct 18 17:01] M6025297 stage 2 is 66.82% complete. Time: 17.966 sec.
[Worker #1 Oct 18 17:01] M6058333 stage 1 complete. 1975688 transforms. Total time: 3637.744 sec.
[Worker #1 Oct 18 17:01] Conversion of stage 1 result complete. 5 transforms, 1 modular inverse. Time: 2.732 sec.
[Worker #1 Oct 18 17:01] Available memory is 3072MB.
[Worker #2 Oct 18 17:01] M6025297 stage 2 is 67.01% complete. Time: 17.050 sec.
[Worker #2 Oct 18 17:02] M6025297 stage 2 is 67.20% complete. Time: 16.904 sec.
[Worker #1 Oct 18 17:02] D: 840, relative primes: 1188, stage 2 primes: 10930004, pair%=98.65
[Worker #2 Oct 18 17:02] Restarting worker with new memory settings.
[Worker #2 Oct 18 17:02]
[Worker #2 Oct 18 17:02] P-1 on M6025297 with B1=2000000, B2=200000000
[Worker #2 Oct 18 17:02] Using FMA3 FFT length 320K, Pass1=320, Pass2=1K, clm=4
[Worker #2 Oct 18 17:02] Available memory is 3074MB.
[Worker #2 Oct 18 17:02] D: 840, relative primes: 1191, stage 2 primes: 10930004, pair%=98.67
[Worker #2 Oct 18 17:02] Using 3078MB of memory.
[Worker #1 Oct 18 17:02] Using 3070MB of memory.
[Worker #2 Oct 18 17:02] Stage 2 init complete. 2499 transforms. Time: 19.738 sec.
[Worker #2 Oct 18 17:02] M6025297 stage 2 is 100.00% complete.
[Worker #1 Oct 18 17:02] Stage 2 init complete. 2496 transforms. Time: 73.500 sec.
[Worker #2 Oct 18 17:02] M6025297 stage 2 is 100.00% complete. Time: 16.709 sec.
[Worker #2 Oct 18 17:03] M6025297 stage 2 is 100.00% complete. Time: 17.558 sec.
[Worker #1 Oct 18 17:03] M6058333 stage 2 is 0.15% complete. Time: 28.509 sec.
[Worker #2 Oct 18 17:03] M6025297 stage 2 is 100.00% complete. Time: 18.477 sec.
[Worker #2 Oct 18 17:03] M6025297 stage 2 is 100.00% complete. Time: 17.475 sec.
[Worker #1 Oct 18 17:03] M6058333 stage 2 is 0.32% complete. Time: 36.625 sec.
[Worker #2 Oct 18 17:04] M6025297 stage 2 is 100.00% complete. Time: 17.986 sec.
...

Last fiddled with by gLauss on 2021-10-18 at 15:28
gLauss is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 22:28.


Fri Dec 3 22:28:06 UTC 2021 up 133 days, 16:57, 0 users, load averages: 1.74, 1.52, 1.52

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