mersenneforum.org  

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

Reply
 
Thread Tools
Old 2019-05-02, 22:17   #1
armeg
 
May 2019

110 Posts
Smile 2 x Xeon X5690 system. Questions about optimal efficiency.

So I have a few questions about my 2 x Xeon X5690 system, and I want to confirm my understanding/correct any misunderstandings I have.

At the moment, the system is doing PRP (153) work only. On my assignments page, core 1 is doing M(332290513) and core 2 is doing M(332418467).

At the moment I am only running 2 workers, priority 1, and CPU cores to use set to 6 for each. Based on my reading this is not an optimal set-up. It seems that generally, the optimal situation is 1 worker per physical core.

According to lscpu, I have 2 threads per core, 6 cores per socket. So, the optimal solution here would be to run 12 workers (according to my reading/understanding). When I go to attempt to set it to 12 in mprime under Test/Worker threads. It automatically chooses 4 CPU cores as the value to use. This value is impossible since I only have 12 cores in the first place, and a total of 24 threads. If I ignore this and attempt to get to the end I get an error saying:

Code:
You have allocated more cores than are available.  This is likely to
GREATLY REDUCE performance.  Do you want to correct this? (Y):
This makes sense considering it's assigning 4 CPU cores without asking me. My question here is a little open-ended I guess. Why is mprime not prompting me to enter CPU cores to use? If it were prompting me, wouldn't I want to set cores to use to 1?

I appreciate any help you guys have for a newbie.
armeg is offline   Reply With Quote
Old 2019-05-02, 23:05   #2
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

2·2,927 Posts
Default

On a 100-million-digit test such as the ones you selected, one worker per socket (rather than per core) is optimal. The idea is that more of the data for the one job will reside in CPU cache, somewhat shared among individual threads on a socket testing the one number.

Even if one worker per core was optimal, the time to complete that first batch of 12 tests would be rather difficult to stomach; even if 6 cores per worker lost a few percent in efficiency, it's worth it to complete a single test faster.
VBCurtis is online now   Reply With Quote
Old 2019-05-03, 01:50   #3
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

201278 Posts
Default

Quote:
Originally Posted by armeg View Post
Why is mprime not prompting me to enter CPU cores to use? If it were prompting me, wouldn't I want to set cores to use to 1?
VBCurtis hit the nail on the head. Even if one core per worker is optimal throughput, waiting for 12 single-core tests to complete will be pain-staking. In fact, prime95/mprime won't let you choose less than 4 cores when testing 100-million digit numbers. You can do what you want, but only by manually editing the local.txt file.
Prime95 is offline   Reply With Quote
Old 2019-05-04, 07:57   #4
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
"name field"
Jun 2011
Thailand

41·251 Posts
Default

Run a benchmark, and decide after.

Post the results here so we learn something...
LaurV is offline   Reply With Quote
Old 2019-05-04, 19:21   #5
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

22·2,939 Posts
Default

Quote:
Originally Posted by Prime95 View Post
VBCurtis hit the nail on the head. Even if one core per worker is optimal throughput, waiting for 12 single-core tests to complete will be pain-staking. In fact, prime95/mprime won't let you choose less than 4 cores when testing 100-million digit numbers. You can do what you want, but only by manually editing the local.txt file.
My own rule of thumb for this sort of thing: Use the maximum numbers of threads per job which gives you at least 90% of the maximum-total-throughput configuration.
ewmayer is offline   Reply With Quote
Old 2019-05-23, 00:17   #6
aurashift
 
Jan 2015

111111102 Posts
Default

Quote:
Originally Posted by ewmayer View Post
My own rule of thumb for this sort of thing: Use the maximum numbers of threads per job which gives you at least 90% of the maximum-total-throughput configuration.

For 100M exponents, depending on ram and other stuff of course, there's usually a point around the 12 core mark where leaving one core free to handle interrupts from day to day stuff from the OS is beneficial. The curve from throwing more and more cores becomes less beneficial, but then again someone around here (not me) thought more cores but less clock speed would be a good idea around the 18+ core mark, so YMMV. (This appears to have an impact on your memory controller performance) We're going back to high clock speeds but I don't have my hands on those goodies yet.



Source: I used to do 100M exponents exclusively until I got bored.

Last fiddled with by aurashift on 2019-05-23 at 00:18
aurashift is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Efficiency in % of your computers 3mg4 PrimeNet 8 2016-03-23 13:12
Trading of work-types for optimal efficiency! chalsall GPU to 72 7 2014-03-12 19:31
Per-Watt Efficiency pinhodecarlos Riesel Prime Search 8 2012-08-21 09:14
VIA C3 efficiency ET_ Hardware 4 2007-03-27 21:29
Energy efficiency for LL markhl Hardware 5 2004-02-04 13:33

All times are UTC. The time now is 16:34.


Fri Jul 7 16:34:55 UTC 2023 up 323 days, 14:03, 1 user, load averages: 2.32, 2.28, 2.00

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.

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