mersenneforum.org  

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

Reply
 
Thread Tools
Old 2023-05-22, 15:52   #1
S485122
 
S485122's Avatar
 
"Jacob"
Sep 2006
Brussels, Belgium

2·977 Posts
Minus False lead about fluctuations of iteration timings with Prime95

Prime95 v30.8b17
I run LL doublechecks on an I9-10920X which is AVX512 capable. My problem is that some runs show very variable timings (even with computer otherwise unoccupied.) ms per iteration will be stable and correct most the time. But some runs see the timings fluctuate wildly from the normal time per iteration to 150% more. See the copy of the worker window included as attachment as an example. The first run suffered from that slowness, the subsequent runs don't.

My impression is that this happens when the order in which threads 10 and 11 (running on cores 11 and 12) are stared puts them in both in the the first six or both in the second 6. I can, now that I have an idea of the circumstances, stop and restart until threads 10 and 11 are well apart. Setting affinity is not a solution : it doesn't determine the order in which the threads are started. (The CPU is limited to 2,2 GHz for power-saving reasons.)
Attached Files
File Type: txt worker.txt (5.0 KB, 14 views)
S485122 is offline   Reply With Quote
Old 2023-05-22, 17:16   #2
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

Quote:
Originally Posted by S485122 View Post
some runs see the timings fluctuate wildly from the normal time per iteration to 150% more. See the copy of the worker window included as attachment
What I saw there is ms/iter max value 1.540 / min value 1.361 = 1.1315, so +/- ~6.4% of the midpoint.

However; same prime95 version, and 4 workers on a Xeon Phi 7210, worker 1 is drastically slower even though it's running the smallest exponent; see attachment.
Worker 1: AVX512 FFT 9M, Pass1 1K, Pass2 9K, clm 1, 16 threads, ~20.7 msec/iter!
Worker 2: FFT identical to worker 1, but 11.2 msec/iter
Worker 3: AVX512 FFT 9600K, Pass1 960, Pass2 10K, clm 1, 16 threads, ~11.9 msec/iter;
Worker 4: AVX512 FFT 10M, Pass1 1k, Pass2 10K, clm 1, 16 threads, ~12.7 msec/iter
Attached Thumbnails
Click image for larger version

Name:	7210 xeon phi worker 1 speed anomaly.png
Views:	21
Size:	91.6 KB
ID:	28412  
kriesel is offline   Reply With Quote
Old 2023-05-22, 21:18   #3
S485122
 
S485122's Avatar
 
"Jacob"
Sep 2006
Brussels, Belgium

2×977 Posts
Default

Quote:
Originally Posted by kriesel View Post
What I saw there is ms/iter max value 1.540 / min value 1.361 = 1.1315, so +/- ~6.4% of the midpoint.
Since I run Prime95 and not mprime, I can't log those stats. I copied the window just then and used that data, it doesn't show an extreme situation. I should have collected examples since the moment I became aware of the problem.
I remember for another FFT size the average iteration fluctuated between 0,92 ms and 0,96 ms, when things went "wrong" I they could go up to 1,70 ms...

Off topic since it does not concern fluctuations over time but differences between cores (and thus not fluctuations but differences ;-)
Quote:
Originally Posted by kriesel View Post
However; same prime95 version, and 4 workers on a Xeon Phi 7210, worker 1 is drastically slower even though it's running the smallest exponent; see attachment.
Worker 1: AVX512 FFT 9M, Pass1 1K, Pass2 9K, clm 1, 16 threads, ~20.7 msec/iter!
Worker 2: FFT identical to worker 1, but 11.2 msec/iter
Worker 3: AVX512 FFT 9600K, Pass1 960, Pass2 10K, clm 1, 16 threads, ~11.9 msec/iter;
Worker 4: AVX512 FFT 10M, Pass1 1k, Pass2 10K, clm 1, 16 threads, ~12.7 msec/iter
I run the processor at 2,2 GHz instead of the nominal 3,5 GHz. I first tried limiting the processor by capping the power to 100 W maximum, but the unstable timings and, for instance, the fact that Prime95 providing a constant load makes adjustments unnecessary, made me choose to limit the processor by clock and not power.

On topic again :
And, I repeat, my problem is that on some runs the timings fluctuate so much (even if we only consider a 6% variation it is not normal on a idle computer : other runs don't show that behaviour. I also checked my primary suspect : Windows with all its background processes (after a fresh install I disable syncing with devices, cloud accounts or storage and other crap...) (I regret my tuned Windows XP with about 12 processes running including Prime95, I had to abandon it : it wouldn't support modern hardware)

Last fiddled with by S485122 on 2023-05-22 at 21:29 Reason: fidling
S485122 is offline   Reply With Quote
Old 2023-05-22, 21:41   #4
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

Quote:
Originally Posted by kriesel View Post
same prime95 version, and 4 workers on a Xeon Phi 7210, worker 1 is drastically slower even though it's running the smallest exponent; see attachment.
Worker 1: AVX512 FFT 9M, Pass1 1K, Pass2 9K, clm 1, 16 threads, ~20.7 msec/iter! 48.3 iters/sec
Worker 2: FFT identical to worker 1, but 11.2 msec/iter = 89.3 iters/sec
Worker 3: AVX512 FFT 9600K, Pass1 960, Pass2 10K, clm 1, 16 threads, ~11.9 msec/iter; 84.03 iters/sec
Worker 4: AVX512 FFT 10M, Pass1 1k, Pass2 10K, clm 1, 16 threads, ~12.7 msec/iter; 78.7 iters/sec; total 300.4 iters/sec
(underlined added) To add to the puzzle, yesterday the timings in the same uninterrupted run were much more nearly equal:
W1: 16.1 msec/iter; 62.1 iters/sec
W2: 15.6 msec/iter; 64.1 iters/sec
W3: 15.8 msec/iter; 63.3 iters/sec
W4: 16.7 msec/iter; 59.9 iters/sec
total 249.4 iters/sec

It's hard to know, in a typical Windows OS, what else may be loading cores; AV scans or update downloads, OS update checks, browser update checks & downloads, file indexing, servicing interrupts, scheduled backups, etc.

Last fiddled with by kriesel on 2023-05-22 at 21:42
kriesel is offline   Reply With Quote
Old 2023-05-22, 22:43   #5
S485122
 
S485122's Avatar
 
"Jacob"
Sep 2006
Brussels, Belgium

2×977 Posts
Default

Quote:
Originally Posted by kriesel View Post
(underlined added) To add to the puzzle, yesterday the timings in the same uninterrupted run were much more nearly equal:
W1: 16.1 msec/iter; 62.1 iters/sec
W2: 15.6 msec/iter; 64.1 iters/sec
W3: 15.8 msec/iter; 63.3 iters/sec
W4: 16.7 msec/iter; 59.9 iters/sec
total 249.4 iters/sec

It's hard to know, in a typical Windows OS, what else may be loading cores; AV scans or update downloads, OS update checks, browser update checks & downloads, file indexing, servicing interrupts, scheduled backups, etc.
On your system the timings differ from run to run not during a run, but the problem might be related.

I know Windows runs a lot of parasitic processes (your "etc"), but having worked for more than 30 years as software support in an IT company that used and sold Microsoft, I can analyse what is running and when, like for instance when the timings are high. I know when my files are indexed, when the antivirus runs, when my scheduled backups are running, and I know their impact on Prime95. My browsers and other applications don't run unless I use them. As I said I checked about Windows processes, I know what's happening on my computer and the impact of certain operations. Anyway on a system with 12 hyper-threaded cores with enough RAM those processes don't have much impact on Prime95 as I can verify daily. Knowing what's running on a typical Windows installation is not so hard, there are a lot of tools, anyway my installation certainly isn't typical.

I forgot : your 6,4 % from the midpoint calculation is not relevant, if you look at the data the median is 1,375 m.

Last fiddled with by S485122 on 2023-05-22 at 23:04
S485122 is offline   Reply With Quote
Old 2023-05-23, 00:09   #6
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

Quote:
Originally Posted by S485122 View Post
On your system the timings differ from run to run not during a run
The timings for the four workers on a xeon phi 7210 I gave are earlier and later IN THE SAME EXPONENTS RUN. I did not interrupt it, prime95 automatic benchmarking did while I was asleep. Worker 1 and 2 console contents attached. Timings differ versus time for the same worker & same exponent & computation type, and between workers running the same FFT specification.

An interesting feature though is the aggregate iteration rate increased considerably on my 7210 Xeon Phi, while worker 1 slowed considerably. Worker 1 gets first pick of cores and memory footprint.

Stopping worker 1 manually later made only a few percent difference in the other workers' speed. I'm guessing cache efficiency went up. Clock rate did not change.

The phi referenced above runs Windows, AV, prime95, & occasional Taskmgr or notepad, and remote desktop accessed by a laptop. Not much going on there. I've turned off as many Win10 extras as I easily could. Sometimes Windows seems confused by the wealth of 64 cores, 256 hyperthreads and spending much effort switching from logical processor to logical processor. It's also subject to ambient temp fluctuations.

Quote:
I know Windows runs a lot of parasitic processes (your "etc"), but having worked for more than 30 years as software support in an IT company that used and sold Microsoft, I can analyse what is running and when... I know when my files are indexed, when the antivirus runs, when my scheduled backups are running, and I know their impact on Prime95. My browsers and other applications don't run unless I use them. As I said I checked about Windows processes, I know what's happening on my computer and the impact of certain operations. Anyway on a system with 12 hyper-threaded cores with enough RAM those processes don't have much impact on Prime95 as I can verify daily. Knowing what's running on a typical Windows installation is not so hard, there are a lot of tools, anyway my installation certainly isn't typical.
Ok, sounds like you're very aware. Other readers may not be.

Quote:
your 6,4 % from the midpoint calculation is not relevant, if you look at the data the median is 1,375 m.
I wrote midpoint, meaning middle of the span of samples (max+min)/2, what's usually called mid-range, for a reason. (Mainly, to minimize calculations. & my bad, not looking up the proper statistics terminology for it initially.) That's not median, mode, or mean, in general. https://en.wikipedia.org/wiki/Mid-range
But the main point was, you referred to increases of over 150%, and that was not present in the data you shared. It does happen sometimes that someone slips a decimal place in their posts.

None of what I wrote before or here is intended to provoke, belittle, or anything else negative. Just trying to promote understanding including my own.

When you figure out what's causing your prime95 timings to fluctuate, please update us.
Attached Files
File Type: txt worker1phi.txt (13.4 KB, 14 views)
File Type: txt worker2phi.txt (17.7 KB, 11 views)

Last fiddled with by kriesel on 2023-05-23 at 00:19
kriesel is offline   Reply With Quote
Old 2023-05-23, 09:51   #7
S485122
 
S485122's Avatar
 
"Jacob"
Sep 2006
Brussels, Belgium

2×977 Posts
Default

Quote:
Originally Posted by kriesel View Post
...
When you figure out what's causing your prime95 timings to fluctuate, please update us.
I posted in this thread because I don't know what causes the fluctuations !
I waited a long time before doing so.

Anyway the only constant I found (the order of starting threads) is a false lead : today I have a stable run where the threads 10 and 11 are started amongst the last. I am in a mood to remove my part of the discussion. I am still under the impression that the phenomenon has something to do with AVX512.

I moved the discussion about this to a new thread.
S485122 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in iteration count in Prime95? JuanTutors Software 16 2023-05-23 12:34
Lead time xilman Astronomy 15 2020-02-26 07:48
Frustratingly frequent forum font fluctuations? WraithX Forum Feedback 11 2014-10-18 13:36
Prime95 shows strange timings after upgrade to Mavericks ixfd64 Software 7 2014-05-10 17:51
Help Us Keep Our Lead By Number of Found Primes Kosmaj 15k Search 117 2005-12-07 02:22

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


Fri Jul 7 13:49:32 UTC 2023 up 323 days, 11:18, 0 users, load averages: 1.67, 1.29, 1.17

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

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