mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2023-01-06, 13:30   #1
bur
 
bur's Avatar
 
Aug 2020
79*6581e-4;3*2539e-3

2D016 Posts
Default Keeping core temperature down on Ryzen 9

Because it took me quite a while to figure it out, maybe it can be of use to someone :)

On a 12-core Ryzen 9 3900x I had 4 instances of LLR2 with 3 threads each running and core temperatures went to 95 °C and beyond causing the system to throttle every few seconds.

By setting the PPT value one can limit the power drawn by the CPU. This makes it possible to achieve very stable temperatures with a small hit on performance. The irusanov fork of zenstates-linux allows setting PPT on the fly, same as RyzenMaster does under Windows.

Code:
git clone https://github.com/irusanov/ZenStates
sudo ./zenstates-linux --no-gui --ppt 130
Play around with PPT until you find a value that suits your needs in regards to temperature and performance. I brought temperatures down to a constant 80 °C with about 5% loss of speed for LLR2. What could also be done is to look into curve optimization to get some of the lost performance back, but I couldn't find a CLI tool for that yet.


A note regarding the L3 cache. Since 3 cores share 16 MB of L3 cache among them, it's obviously good to keep multithreaded processes confined to a group of 3 cores (CCX) - the governors aren't smart enough for that, I think. But I couldn't find the layout anywhere, i.e. which processor belongs to which CCX under linux. With a lot of trial and error I found that:

Code:
CCX   Processors
0     3, 4, 5
1     6, 7, 8
2     9, 10, 11
3     12, 13, 14
I was used to 0-12 being on separate physical cores, but not so. What made it worse was that /proc/cpuinfo had different mappings of processor to core-ID altogether with IDs 3, 7, 11 not being used at all. Maybe it's specific to this motherboard and/or Linux version though or I just didn't understand the theory behind it.
bur is offline   Reply With Quote
Old 2023-01-06, 14:24   #2
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

2×7×132 Posts
Default

With my 16 Cote Ryzen 9 system, what works for reducing the core temps, is to use more threads around 30.
For what ever reason this cools down the system, reduces performance per thread and keeps the overall progress virtually the same as running at 16 threads.
ETA, this keeps the core temps around 65° C (with liquid cooling).

Last fiddled with by a1call on 2023-01-06 at 14:28
a1call is offline   Reply With Quote
Old 2023-01-21, 23:58   #3
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

2×32×7×13 Posts
Default

I use different method to cool down my Ryzen 9 3900X : I lower cpu voltage under MB BIOS, and dont OC. So even on hottest day with air cooling ( 2 fans on pushpool mode) CPU doesnot go above 75°C. I download script somewhere and put it in crontab so if CPU die temp goes above 80°C ( if day is extreme hot) then shutdown immediately. I say to myself: better to do job few days more then have to buy new MB or CPU. Now it works for 2,5 years without single problem.
pepi37 is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ryzen 9 3900X vs. Core i9-10900X scan80269 Hardware 14 2020-02-18 06:35
Is it worth keeping the relations? fivemack Factoring 2 2013-05-19 18:40
Is Linux keeping the desktop? Rodrigo Linux 38 2012-04-16 02:48
Keeping relations fivemack Factoring 1 2009-01-26 17:49
Keeping the Heat down at Home outlnder Hardware 61 2003-02-15 03:12

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


Tue Mar 28 20:32:53 UTC 2023 up 222 days, 18:01, 0 users, load averages: 0.95, 1.15, 1.07

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.

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