Ryzen 3D cache cpus on Linux
Liemaeu Feb 6
I got a Ryzen 9 7900X3D cpu for my Linux gaming pc.

It has 12 cores, but only 6 of them use the 3D cache:


It's usually better for gaming to use only the 3D cache cores. Will they be selected automatically on Linux? Or do I have to set manually (by taskset/WINE_CPU_TOPOLOGY)?
I have used only Intel cpus before, I'm not into AMD/Ryzen. The only posts I have found on this are for Windows. What is the current state on Linux?


I'm on openSUSE Tumbleweed, kernel 6.7.2-1-default, KDE Plasma 5.27.10, X11.
I have a MSI B650 Gaming Plus Wifi motherboard with up-to-date Bios (7E26v17, 2023-12-14).


(Don't get me wrong. The performance of my new 7900X3D is great. I'm just curious if I set everything correctly to work on max efficiency.)

Last edited by Liemaeu on 6 February 2024 at 9:51 am UTC
This topic has an answer marked - jump to answer.
Highball Feb 6
If nobody knows off of the top of their head here on GOL.

I found this.
Phoronix Review

Usually if something needs to be enabled Phoronix will say in their review. I didn't see anything, but there is a huge comment section, so if you ask there surely people will respond.
Quoting: HighballIf nobody knows off of the top of their head here on GOL.

I found this.
Phoronix Review

Usually if something needs to be enabled Phoronix will say in their review. I didn't see anything, but there is a huge comment section, so if you ask there surely people will respond.

According to your(very good) link is this's (at least for the manufacturer drivers) a windows exclusive feature.
"On the Linux side, there haven't been any AMD patches to optimize the Linux kernel around this differing of CCD characteristics for cache vs. frequency so that the kernel scheduler would be able to ensure optimized task placement."

Reddit agrees.

Last edited by LoudTechie on 6 February 2024 at 4:14 pm UTC
The short answer to your question is: no.
peta77 Feb 6
normally you would use "numactl" for such kind of things, also for multi-cpu setup to make sure allocated memory and task aren't assigned to different sockets and they don't switch cores, so cache doesn't need to be refetched, etc.
that's what's usually used in HPC context and does that job quite well.

but i don't know if that requires specific features on the mainboard and/or cpu (or even code changes ) to make it work.. so you'll need to do some research/testing..

good luck!

Last edited by peta77 on 6 February 2024 at 8:16 pm UTC
emphy Feb 7
It seems that feral's game mode supports core pinning and parking:

https://github.com/FeralInteractive/gamemode
Liemaeu Feb 7
Quoting: emphyIt seems that feral's game mode supports core pinning and parking:

https://github.com/FeralInteractive/gamemode

Thank you! This is great, I didn't know that. It even autodetects my 7900X3D.


Should I enable parking or pinning? Or is it enabled by default?

Last edited by Liemaeu on 7 February 2024 at 1:35 pm UTC
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.