Skip to content

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!

12 points25 comments
Open on Reddit
About this post
Posted
Archived
Score
12 · 84% up
Kind
Text
ID
kh212o

Author

1
posts
13
comments
0
media
View profile

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 downgrade tool 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:

stressapptest -M 1000 -s 1000 -m 0 -C 1
3 points

Also gave stressapptest a go, still stuck on 4.7 GHz.

Thanks for the recommendation though, that's a really cool stress testing app!

3 points

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

1 points

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:

cpuidle.governor=teo

You have the following idle-governor choices ("menu" is the default):

$ cat /sys/devices/system/cpu/cpuidle/available_governors 
ladder menu teo 

I remember the "teo" one helping people on laptops save power so I guess it can make things idle more than the normal "menu".

1 points

what are you using to monitor the cores?

3 points

Looking at frequencies through /proc/cpuinfo via the following command:

watch -n.1 "cat /proc/cpuinfo | grep \"^[c]pu MHz\""

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.

1 points

Maybe essentially the same thing, but what do you see from htop if you press F2 for settings -> Display options -> check "Also show CPU frequency"?

1 points

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.

1 points

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.

1 points

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

1 points

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).

$ uname -r
5.10.1-arch1-1
1 points

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 1

1 points

When I run stress --cpu 1, I get:

$ cat /proc/cpuinfo |grep MHz | cut -d' ' -f3- | sort -r
4788.130
4774.146
3721.537
3598.607
3598.590
2785.943
2124.630
2122.273
2122.266
2122.159
2122.143
2121.697
2121.303
2120.759
2120.446
2120.003
2117.896
2113.374
2057.217
2057.209
2057.158
2056.655
2056.637
2056.618
2056.572
2056.436
2056.431
2056.054
2055.815
2054.990
2054.282
2053.642
1 points

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.

1 points

Gave it a go, no luck unfortunately. Seems like it just wants to max out at 4.7GHz no matter the kernel.

1 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.