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!
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
- Steam Controller 2 is apparently a thing and being 'tooled for a mass production' plus a new VR controller
- NVIDIA stable driver 550.135 released for Linux
- Dungeon Clawler will grab hold of your free time now it's in Early Access, plus keys to give away
- Sony reportedly looking to acquire Kadokawa, owner of ELDEN RING dev FromSoftware
- Monster catcher Cassette Beasts adds Steam Workshop support and a new battle mode
- > See more over 30 days here
-
UnderworldGodot is an engine recreation of Ultima Under…
- Shmerl -
Proton Experimental for Steam Deck / Linux fixes Disgae…
- BladePupper -
JSAUX released their first White 6-in-1 Docking Station…
- RFSharpe -
Proton Experimental for Steam Deck / Linux fixes Disgae…
- Cybolic -
Dungeon Clawler will grab hold of your free time now it…
- Liam Dawe - > See more comments
- What have you been listening to?
- Shmerl - What do you want to see on GamingOnLinux?
- Linux_Rocks - Our own anti-cheat list
- Liam Dawe - Weekend Players' Club 11/22/2024
- Liam Dawe - Types of programs that are irritating
- Cyril - See more posts
After a few months (sic) of experiments, I found out that the best performance is on the NUMA Node #2, which has direct access to memory and GPU, hence the best cores affinity statement would be the following:
$ taskset -c 8-15,40-47 %command%
In addition, some games could make an advantage of the Feral Interactive Game Mode tweaks:
$ gamemoderun taskset -c 8-15,40-47 %command%
Furthermore, for some specific games, the kernel might still locate some threads on a different core, if the affine ones are 100% busy. In these cases I wrote a simple script for shutting down all the other cores, which should run before the game process:
cpu=
case $1 in
"on") cpu_status=1;;
"off") cpu_status=0;;
"-h") echo "Usage: sudo gaming-cores-switch {on|off}" && exit 0 ;;
"--help") echo "Usage: sudo gaming-cores-switch {on|off}" && exit 0 ;;
*) cpu_status=1;;
esac
for i in $(seq 7 && seq 16 39 && seq 48 63)
do
cpu=/sys/devices/system/cpu/cpu${i}/online
echo changing cpu $cpu status to $cpu_status
echo $cpu_status > $cpu
done
For setting up all the things as clean as possible, I put the script in the /usr/local/bin directory and created a new systemd service (file: /etc/systemd/system/gaming-cores-switch.service):
[Unit]
Description=Manual Switch of CPU Cores for Gaming
After=network.target
[Service]
ExecStart=/usr/local/bin/gaming-cores-switch off
ExecStop=/usr/local/bin/gaming-cores-switch on
Type=simple
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
And then used the Services Systemd Gnome Extension for toggling the service from the Gnome DE, with the following configuration:
View cookie preferences.
Accept & Show Accept All & Don't show this again Direct Link
In the end, the cores enablement will look like a switch on the UI:
View cookie preferences.
Accept & Show Accept All & Don't show this again Direct Link
Of course a few other solutions can be put in place, but what I like about this one is that it feels exactly like the official AMD Ryzen Master Utility for Windows, even though much more simplified.
Last edited by LordDaveTheKind on 22 October 2019 at 9:22 pm UTC
View PC info
Am I understanding this correctly, basically here you tell the CPU to use the 8-15 cores and the 40-47 is their corresponding secondary threads?
Correct. According to the cores topology, 40-47 are the virtual secondary cores corresponding to 8-15.
Well, it seems I wasn't totally wrong.
Recently I have been experiencing the same poor behaviour after "upgrading" to Debian 10 Buster. I compared the performance with the SteamOS ones (which were still perfect), and decided to perform the following experiment:
With the custom kernel version the result has been awesome: 1440p-60fps at Max quality settings on all the games expected to run on these conditions.
It seems that the cracked code lies in the different kernel configuration files. I'll investigate a little more on their differences in the next days. But I believe I'm going to enjoy some thoughtless and carefree gaming for some time now.
Cheers,
Dave