mersenneforum.org  

Go Back   mersenneforum.org > New To GIMPS? Start Here! > Information & Answers

Reply
 
Thread Tools
Old 2023-01-23, 22:17   #1
fogolol
 
Jan 2023

2 Posts
Default How do i get Prime95 to use all 16 threads?

I have a Ryzen 7 1800x and wanted to use it to contribute but I am unable to get it to run over 8 cores, it will allow me to go under 8 but anything over will not allow me, while the cpu is an 8 core chip it does have amd's equivalent to hyperthreading therefore 16 threads but when using prime95 i am confined to using 50% of my cpu which leads to subpar performance, currently getting 8 MS per iteration while my secondary pc is doing 6 MS with a inferior CPU (i5 6400) I did try to edit the local.txt file but nothing changed, is there anything i can do?
fogolol is offline   Reply With Quote
Old 2023-01-23, 23:17   #2
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

3×2,579 Posts
Default

Quote:
Originally Posted by fogolol View Post
I have a Ryzen 7 1800x and wanted to use it to contribute but I am unable to get it to run over 8 cores, it will allow me to go under 8 but anything over will not allow me, while the cpu is an 8 core chip it does have amd's equivalent to hyperthreading therefore 16 threads but when using prime95 i am confined to using 50% of my cpu which leads to subpar performance, currently getting 8 MS per iteration while my secondary pc is doing 6 MS with a inferior CPU (i5 6400) I did try to edit the local.txt file but nothing changed, is there anything i can do?
Welcome to the forum. You might find some of the reference info useful.
Generally, there is no advantage to enabling hyperthreading in prime95 for PRP, P-1, or LLDC. (These are usually memory bound not processor bound.) By default, hyperthreading is off for PRP, LL, CERT, P-1, P+1, ECM, because performance is usually better with one thread per core than two or more. It is on by default for TF, but that really should be left to GPUs.
If you'd like to experiment, try benchmarking with and without hyperthreading, for the fft length you are currently using. (Options, Benchmark...)
It's hard to tell whether your ms timings are good, medium, or poor, without knowing what exponent or fft length they are from, or how many workers you have configured. (Four cores/worker is default.)
If you plan to do any P-1, P+1, or ECM, check (Options, Resource Limits, then find memory resources in the middle) and set it to a lot, as much as you can reasonably spare, for both day and night.
Have fun!

(Some tech background on SMT/hyperthreading: https://www.anandtech.com/show/16261...amd-ryzen-5000)

Last fiddled with by kriesel on 2023-01-23 at 23:29
kriesel is offline   Reply With Quote
Old 2023-01-24, 08:52   #3
fogolol
 
Jan 2023

2 Posts
Default

I benchmarked my cpu with and without hyperthreading and yes you are right, I am getting worse performance using 100% of my cpu versus 50%, that is a waste of power... I will continue doing it without hyperthreading now, but i might disable the option on the bios maybe i'll get better performance? Only one way to find out! Anyway thank you for your reply you were very helpful!
fogolol is offline   Reply With Quote
Old 2023-01-24, 09:21   #4
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

3·2,579 Posts
Default

Quote:
Originally Posted by fogolol View Post
i might disable the option on the bios maybe i'll get better performance? Only one way to find out! Anyway thank you for your reply you were very helpful!
Depending on what other apps you run, SMT may be beneficial to them. It may help Mlucas run in WSL, for example, or garden variety apps.
And you're welcome.
kriesel is offline   Reply With Quote
Old 2023-01-24, 13:14   #5
PhilF
 
PhilF's Avatar
 
"6800 descendent"
Feb 2005
Colorado

2×373 Posts
Default

Quote:
Originally Posted by fogolol View Post
I am getting worse performance using 100% of my cpu versus 50%, that is a waste of power...
A waste of power isn't a good way to look at it. Your CPU really does have only 8 cores, so once you have 8 threads pushing those 8 cores to 100% utilization each you really are at 100% CPU utilization. Those other 8 threads are only pretending to be cores, so when you don't use them it makes the operating system think you have 8 idle cores, thus it reports only 50% utilization.

But programs that are written to drive cores to 100% to begin with (like Prime 95) can't benefit from, and in fact are actually hindered by, extra threads running on pretend cores that don't exist.

Just remember that with Prime 95, if hyperthreading is turned on, 50% utilization as shown by the OS is actually 100% utilization of your physical cores, which means you have your processor properly maxed out.

Last fiddled with by PhilF on 2023-01-24 at 13:18
PhilF is offline   Reply With Quote
Old 2023-01-24, 13:47   #6
tServo
 
tServo's Avatar
 
"Marv"
May 2009
near the Tannhäuser Gate

80710 Posts
Default

A handful of years ago when I was still working at the hospital, we wondered this very question.
With a roomful of racks of servers and zillions of desktops, we're talking about a significant difference in resources,
Although most programs were server applications, there was a good representation of client applications that were
real hogs.
The result was as previous posters have stated: leave hyper threading off, period.
We only found 1 instance in which it helped: Microsoft SQL. This is a server application.
I believe it was around the year 2000 when processors started to outrun memory bandwidth by significant margins.
tServo is offline   Reply With Quote
Old 2023-01-24, 16:09   #7
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013
https://pedan.tech/

2×33×59 Posts
Default

One advantage of leaving hyperthreading on, at least on Linux, is that it can keep the system more responsive.
Mark Rose is offline   Reply With Quote
Old 2023-01-25, 00:52   #8
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

22·5·139 Posts
Default

Quote:
Originally Posted by fogolol View Post
...i am confined to using 50% of my cpu...
This number is misleading. Prime95 is using all your cores, but none of the threads to determine this number. So, it is actually 100%. In my many years of using Prime95, it has always shown me 50% regardless of the CPU type. Prime95 is designed to be a background process and will regulate itself depending on what else is running at the same time. The goal is for it to be transparent to other programs.
storm5510 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime95 minor bug, "TortureThreads" not checked for maximum threads Explorer09 Software 1 2014-08-19 04:13
[Prime95] How to choose number of worker threads? Sohjin Information & Answers 1 2014-03-09 14:14
Maximum number of threads for Prime95 treesong Information & Answers 11 2012-06-18 13:35
Workers, Threads, Helper Threads, Cores, Affinity. lorgix Information & Answers 12 2011-01-13 22:31
4 Prime95 threads plus GPU doing another project RickC Software 9 2010-02-15 07:14

All times are UTC. The time now is 01:29.


Sun Jun 11 01:29:19 UTC 2023 up 296 days, 22:57, 0 users, load averages: 1.00, 0.81, 0.82

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.

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