Any other Ryzen 5000 owners? Having problems hitting above 4.7Ghz on a 5950x. Works fine in Windows.
Hello, I'm wondering if there are any other Ryzen 5000 owners here who are having problems hitting their advertised single threaded boost clocks on Arch. My boost frequencies function fine in Windows (up to 5.05Ghz consistently), but no matter how lightly threaded the task is in Arch, it will almost never go above 4.7Ghz (with extremely occasional spikes to 4.8 or 4.9). Multi threaded boosts work as expected.
I'm wondering if this is just an early Ryzen 5000 quirk with Linux that hasn't been ironed out yet, or if there's a solution at bay, since it's puzzling to me otherwise.
I'm on the latest 5.10 mainline kernel and fully updated otherwise. Motherboard is an x570 Gigabyte Aorus Ultra on the latest BIOS. Tried the ondemand, schedutil, and performance governors to no avail.
I couldn't really find anyone else talking about this online.
Thanks!
About this post
- Posted
- Archived
- Score
- 12 · 84% up
- Kind
- Text
- ID
- kh212o
26 comments
Try measuring things with
sudo turbostat.If the turbostat version 2.10-1 package doesn't work (it doesn't work on my Ryzen 2700X), use the
downgradetool from the AUR to install version 5.9-2.I tried some stress test tools and it seems Google's "stressapptest" could be interesting for testing this. It reliably gets itself stuck on a single CPU without getting switched around to different CPUs by the task scheduler. You can get it to do single-threaded stress with this command line:
Also gave stressapptest a go, still stuck on 4.7 GHz.
Thanks for the recommendation though, that's a really cool stress testing app!
Gave it a go, it's still reporting the same frequencies as /proc/cpuinfo, which really makes me think it's just not boosting to 5Ghz properly.
https://i.imgur.com/CXJEZpL.png
Maybe the problem is that the other cores are not idling/sleeping enough and then the CPU refuses to boost a single core aggressively?
I don't know what's to tweak about idling. Maybe try a different kernel. I think "linux-zen" for example uses 1000Hz. If you use that one it maybe wakes up sleeping cores too much.
Something I just remembered, I heard about this kernel command line option here:
You have the following idle-governor choices ("menu" is the default):
I remember the "teo" one helping people on laptops save power so I guess it can make things idle more than the normal "menu".
what are you using to monitor the cores?
Looking at frequencies through /proc/cpuinfo via the following command:
I've also looked at the max CPU speed through dmidecode, and it comes up with 5050Mhz max speed there despite the speeds never being achieved in practice.
Maybe essentially the same thing, but what do you see from
htopif you press F2 for settings -> Display options -> check "Also show CPU frequency"?Do they top out individually when you stress test? Keep in mind each core will scale separately, you need to run the multi thread stress test to max out all the cores at the same time (which may not be a great idea if you are trying to hit peak OCing). Arch is going to clock up according to your c-states in your BIOS settings, if the processor is allowed to boost to 5.05Ghz by your mobo config, Arch will hit that when the work load is high enough.
I've run single threaded stress tests/benchmarks through both Wine (like Cinebench), and natively through apps like systester, compiling single threaded, gaming, etc.. Each time the individual cores have only scaled up to around 4.7Ghz with some small spikes to higher frequencies. When running multithreaded via compiles, Cinebench, etc., the CPU boosts as expected for multithreaded (around 4.5Ghz max). It's definitely affecting single threaded benchmarks as well, as I get significantly lower scores due to a lack of boost (580 in Cinebench vs. 640 in Windows, even with Wine overhead aside, multithreaded gets the same score in both OSes).
What's weird is in dmidecode, the program reports my max boost speeds is 5050Mhz (just like in Windows), yet I never actually see this in practice.
In terms of OCing, I'm just running PBO which doesn't degrade single core boosts.
First off trying to benchmark from within VM will always turn up strange results, /proc/cpuinfo as you stated elseware is the best measurement method. If you want to see all the cores maxed out run the stress utility with as many cpu hogs as you have cores. Heads up, if you have a FSB overclock above 103 and tight RAM timings there is a very good chance this will crash your system with all the cores at 5Ghz
On a 5950X I see 8 threads 4500+Mhz and 24 thread 2000+Mhz for example when running stress --cpu 4. Whichever number of CPU's I try, the highest Mhz I see is on a core is 4500+ (but never 4600).
I get about the same with your specified threads. Could you try stressing only one CPU thread and see what your max frequencies are, and if they differ depending on the core that gets stressed?
e.g.
stress --cpu 1When I run
stress --cpu 1, I get:Can you see if this persists if you can compile your own Linux kernel from kernel.org or using Xanmod/Clear Linux kernels instead?
The AUR pages for Xanmod and Clear should have repos in the comments for a binary instead if you want to quickly test it out. From my experience as a Ryzen 3600x user, the Xanmod/Clear linux ones work better. Was able to achieve better Geekbench results.
Gave it a go, no luck unfortunately. Seems like it just wants to max out at 4.7GHz no matter the kernel.
Hm. What about a manual OC? What I did was use Cinebench R20 and Ryzen Master in Windows 10, start at 1.35v 4.1GHz manual OC. For each CCX I slowly crank up the frequency and voltage. Test with Cinebench. If it fails I'll dial up the voltage.
I was able to pull 4.1GHz on CCX0 and 4.3GHz on CCX1 for me at 1.4volts with reasonable temps. I then input those values into BIOS oc. Maybe this will work? Push each CCX a little see what their max frequencies are.
Deleted before we saved it.
I will be messaging you in 12 hours on 2020-12-21 10:04:31 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.