How to disable overclocking on AM5?

you need to establish a base line for the problem.
put a fan on the cooler and stress test the cpu to see what is the max power and temp you gonna get under both single core and all core test.
single core task are bad for these kind of setup. they probably not gonna hit the TDP max but the temp gonna be too much. the power draw is not linear and die is not spreading the heat uniformly (and of course amd measuring the temp on each core in a weird way) so 4core at 3.7ghz might be less tdp and way less temp compare to single core at higher clocks. the only good news is AVX-512 on am5 is not as crazy as intel’s one so it shouldnt make things worse.

I think your cooler is loose! Or it’s just plain not large enough.

I mean, it’s a 65W TDP, but running Chrome and Telegram uses VERY little CPU time. (Well, on something as fast as a 7900 – I recently resurrected a Core 2 Duo and Chrome’ll just peg out both cores for several seconds while loading pages. But even on there, after those couple seconds it’s essentially idle.)

I mean, I’m using a Coffee Lake (i7-8700) which is a piece of crap compared to the 7900, and I can stream a HD video, having some animated ads and junk going in another tab (if I miss it and don’t close it, I do object to having junk just burn CPU time when I’m not using it…), and actively using Telegram and that MIGHT get the load up to like 5%. (I do give my CPU a healthy workout gaming, running video encodes, etc. but just saying that should not be enough to drive up temps too much.)

What I would do, if you want to spend nearly 0, is just suck it up and aim preferably a large, low-speed fan at the cooler so it gets some airflow. (Of course for testing if you only have a tiny fan that sounds like a leafblower handy, by all means test with that, then get the quiet fan if that is effective.) I think you’ll find a MASSIVE increase in cooling if you really have no fan on that thing just having even a gentle breeze going over it. But you may want to change out the cooler instead.

Finally, I’ll note, there are a SLEW of options in /sys/devices/system/cpu. Since I’m running intel, there’s an intel_pstate directory with some options (and I assume you’ll have an AMD equivalent of some kind.) You can go to /sys/devices/system/cpu/cpufreq/policyn/scaling_max_freq and straight up tell Linux to never scale above a certain speed. For example, my Coffee Lake tops out at 4.6ghz… but… (running this with sudo -i, i.e. as root):

grep "" /sys/devices/system/cpu/cpufreq/*/scaling_max_freq
for i in /sys/devices/system/cpu/cpufreq/*/scaling_max_freq
do
echo 3000000 > $i
done

Will print the current maximum speed (so you know what the stock setting is) then set max speed to 3ghz. (My desktop is massively overcooled, the fans only seem to ramp up to medium under full load to keep the CPU to 70C; but shaving it down from 4.6ghz to 4.2 or whatever is what I’d do if I DID have temperature problems.) I did that on someone’s laptop before where the fan had like totally plugged up (not 3ghz, but shaved some off the top speed), it ran hot but kept it from doing the thermal throttling where it drops to nearly 0 speed for a while. They sold it (warning their friend about the thing running so hot and that they REALLY needed to clear out the fan)), the purchaser put Windows on it against advice and it melted down the next day (since they didn’t put any Windows-equivalent utility to shave the speed down a tad.)

If you find a happy setting, I would just put that into /etc/rc.local, then it’ll run it on bootup automatically.

Also, there’s a package called thermald that sometimes can be almost miraculous – it seems to know just what buttons to poke where it can sometimes make a CPU run dramatically cooler compared to the performance drop – like 1/3rd less heat with a 5-10% performance drop. Worth looking in to. If it doesn’t work, just uninstall it (that bit is important because it’s highly likely set to autorun on startup if it’s installed, and who needs an extra program poking around at the internals if it doesn’t seem to be effective?)

Good luck!
–Henry

Please try to reproduce this on Fedora 39 KDE: Animated stickers can overheat the CPU · Issue #27837 · telegramdesktop/tdesktop · GitHub
This scenario effectively reproduces a similar effect to https://webhamster.com

I just got a Valve Survey and it says the CPU is at 4444MHz. I’m legitimately getting the impression that there’s still some lunacy in the motherboard firmware that keeps screwing with the clock. What else can I kill to get a constant CPU speed?

BIOS settings:

Multiplier: 27
CPU clock: 100MHz
Effective CPU speed: 2700MHz

Valve Hardware Survey:

Speed: 4444 MHz

lspcu:

    CPU max MHz:             4444,3350                                                                                                                                                                                                       
    CPU min MHz:             2700,0000

/proc/cpuinfo:

cpu MHz         : 2695.502

neofetch:

CPU: AMD Ryzen 9 7900 (24) @ 3.000GHz

I can’t speak to your case specifically, but I generally find system hardware reporting unreliable across the board. Everything I’ve ever used tells me different numbers for clock speeds and power consumption. If your cpu is otherwise behaving as you want and that number reported by the hardware survey is the only thing bothering you about it, I would just ignore it personally. I am on 5000 series and don’t do much farting around with its settings anyway, but based on what I’ve seen and read on 7k/modern CPUs in general, I’m not sure you CAN lock their clock speeds to a particular value.

This topic was automatically closed 273 days after the last reply. New replies are no longer allowed.