Skip to content

Results for the kernel benchmarks in gaming!

Someone recently asked whether the Zen-kernel is still viable for gaming and I was wondering the same thing. After doing a little research I found no recent comparison between the popular kernels for gaming on Arch Linux: linux-zen, linux-xanmod and linux-tkg.

So I figured I should do my own benchmarks and compare those kernels and I asked you guys, which games you wanted to see benchmarked.

I came up with the following games for various reasons:

  • Counter-Strike: Global Offensive
  • Civilization VI
  • Grand Theft Auto 5
  • Cyberpunk 2077
  • Shadow of the Tomb Raider
  • Far Cry 5

These games offer CPU- and GPU-bound scenarios, are more or less popular or often used for benchmarks in the past and they also offer an in-game benchmark.

Well, when it got to the actual benchmarks, I had to realize, that GTA 5 and Cyberpunk 2077 either don't show the 0.1 % and 1.0 % low or simply won't record using MangoHUD, so I didn't use them. Instead I simply choose Far Cry 5, because - again - I already had it installed and it has an in-game benchmark. So four instead of five games..

Setup

So here's what I did: I benchmarked per game to keep things as consistent as possible, meaning I ran a benchmark, rebooted to a different kernel and ran a benchmark for the same game and so on and so forth. I ran three benchmarks for each game to have a good average leaving me with 60 48 runs in total.

I recorded FPS using MangoHUD, because it's quite easy and runs with (almost) every game, no matter if it's run through Steam or Lutris. MangoHUD outputs a detailed CVS file with all recorded frames as well as a summary per run containing 0.1 % low, 1 % low, 97 % and average FPS.

My system's specifications can be seen here (inxi output) and my installed packages and respective versions here (pacman -Qe output). As soon as I started benchmarking I stopped updating my system to have the same software environment for all games. As you can see I'm using the following kernel parameters that were applied to all kernels.

options amdgpu.ppfeaturemask=0xffffffff
options pci=noats

When running the benchmarks only Steam or Lutris respectively were opened, as well as Dolphin, LibreOffice Writer and Calc.

Kernel

Most of the kernel are available through the AUR and are easy to install. I also choose to compare the three kernels against Arch's default stable kernel. Only linux-tkg has to be compiled and offers some options of customization. I mostly choose the defaults except for the CPU's architecture, which results in the following configuration.

  • Project C / PDS Scheduler
  • Zen 2 Architecture
  • No yields
  • 4ms round robin interval
  • 500 Hz interrupt timer frequency
  • Tickless idle
  • No ACS override patch
  • No Anbox patch

So the installed kernel versions were the following (as well as their respective headers):

  1. linux 5.17.8.arch1-1
  2. linux-xanmod 5.17.8-1
  3. linux-zen 5.17.8.zen1-1
  4. linux517-tkg-pds 5.17.8-258

Benchmarks

As I've said ran three benchmarks per game and here are the game's versions and settings.

Counter-Strike: Global Offensive

  • Updated as of the 18th of May
  • Running in default mode using OpenGL
  • Steam launch options: mangohud %command% -vulkan -tickrate 128 -novid -nojoy -high

Settings

  • Resolution: 1920x1440, Fullscreen
  • Global Shadow Quality: High
  • Model/Texture Detail: High
  • Texture Streaming: Disabled
  • Effect Detail: High
  • Shader Detail: Very High
  • Boost Player Contrast: Disabled
  • Multicore Rendering: Enabled
  • Multisampling Anti-Aliasing Mode: 8x MSAA
  • FXAA Anti-Aliasing: Disabled
  • Texture Filtering Mode: Anisotropic x16
  • Wait for Vertical Sync: Disabled
  • Motion Blur: Disabled
  • Triple-Monitor Mode: Disabled
  • Use Uber-Shaders: Enabled

I used the FPS Benchmark workshop map.

Civilization VI

I started the game through the console using the following command, because using Lutris the benchmark was always crashing: MANGOHUD=1 wine /path/to/game.exe.

I used the "AI"-Benchmark, because it's (supposedly) more CPU-bound and I don't have the time for the extra-long "heavy" Benchmark.

Settings

  • Resolution: 2560x1440, 144 Hz, Fullscreen
  • VSync: Off
  • Anti-Aliasing: MSAA x8
  • Graphics preset: High

Shadow of the Tomb Raider

I used the free demo version on Steam. The games is running quite good on Linux, but I had flickering black triangles on some model's texture all the time. And sometimes a black void was creeping from the edges of the screen, sometimes filling the whole screen with blackness but not affecting performance at all.

Settings

  • Resolution: 2560x1440, Fullscreen
  • DirectX12: Off
  • VSync: Off
  • Anti-Aliasing: TAA
  • Graphics preset: Medium

Far Cry 5

I started the game through Lutris using lutris-fshack-7.2.

Lutris settings:

  • DXVK: v1.9L-8b6ac52
  • VKD3D: v2.6
  • D3D: v2
  • DXVK NVAPI: v0.5.3
  • Esync: On
  • Fsync: Off

Game settings:

  • Resolution: 2560x1440, Fullscreen, 165 Hz
  • HDR: N/A
  • Graphics Quality: Ultra
  • Texture Filtering: Ultra
  • Shadowes: Ultra
  • Geometry & Vegetation: Ultra
  • Environment: Ultra
  • Water: High
  • Terrain: High
  • Volumetric Fog: High
  • HD Textures: On
  • Anti-aliasing: TAA
  • Motion Blur: Off
  • Vsync: Off

Results

Since MangoHUD outputs detailed results and a summary, I will post the average of the summaries of each of the three runs per kernel and per game in a table below. I'll also upload the detailed results per game on my profile to flightlessmango.com for you to take a look. (Don't ask me why it's not showing Shadow of the Tomb Raider, link below.)

For Far Cry 5 and Shadow of the Tomb Raider I recorded some of the frames of the loading screen after the actual benchmark resulting in frame drops and spikes. I edited the raw data and cut off the obvious too low or too high frames. I uploaded the raw data as well as the edited data to FlightlessMango (below)

This also means that the summary MangoHUD outputs is not accurate, as you can see at some very low 0.1 % lows. I'll put them in a table below anyway for transparency. Here's the averages of the three runs each and a column showing the overall averages across all games per kernel for easier comparison:

Per-game:

Linux Linux-Zen Linux-Xanmod Linux-TKG
Counter-Strike: Global Offensive 0.10% 54.73 0.10% 55.07 0.10% 53.80 0.10% 54.73
1.0 % 56.73 1.0 % 56.10 1.0 % 55.53 1.0 % 56.70
97 % 919.53 97 % 889.33 97 % 882.07 97 % 953.97
Avg. 405.33 Avg. 420.93 Avg. 420.47 Avg. 447.67
Civilization VI 0.10% 12.53 0.10% 20.63 0.10% 17.93 0.10% 19.90
1.0 % 25.53 1.0 % 31.63 1.0 % 30.67 1.0 % 30.07
97 % 129.73 97 % 122.90 97 % 126.40 97 % 120.57
Avg. 87.27 Avg. 85.97 Avg. 86.20 Avg. 85.70
Far Cry 5 0.10% 53.63 0.10% 57.70 0.10% 55.33 0.10% 59.33
1.0 % 60.67 1.0 % 62.27 1.0 % 62.87 1.0 % 60.33
97 % 105.37 97 % 105.27 97 % 105.50 97 % 104.63
Avg. 90.00 Avg. 89.83 Avg. 90.00 Avg. 88.97
Shadow of the Tomb Raider 0.10% 3.03 0.10% 3.27 0.10% 3.27 0.10% 3.13
1.0 % 30.40 1.0 % 32.20 1.0 % 33.10 1.0 % 30.30
97 % 127.23 97 % 126.47 97 % 127.33 97 % 126.27
Avg. 77.73 Avg. 79.70 Avg. 79.07 Avg. 77.13

​

Overall (arithmetic means):

Linux Linux-Zen Linux-Xanmod Linux-TKG
0.10% 30.98 0.10% 34.17 0.10% 32.58 0.10% 34.28
1.0 % 43.33 1.0 % 45.55 1.0 % 45.54 1.0 % 44.35
97 % 320.47 97 % 310.99 97 % 310.33 97 % 326.36
Avg. 165.08 Avg. 169.11 Avg. 168.93 Avg. 174.87

​

Overall (geometric means):

Linux Linux-Zen Linux-Xanmod Linux-TKG
0.10% 18.28 0.10% 21.51 0.10% 20.44 0.10% 21.21
1.0 % 40.43 1.0 % 43.43 1.0 % 43.39 1.0 % 42.02
97 % 199.98 97 % 195.31 97 % 196.73 97 % 197.44
Avg. 125.42 Avg. 126.87 Avg. 126.73 Avg. 127.38

As I've said I also uploaded the detailed benchmark results to FlightlessMango, which you can find here:

If you want to take a look at the benchmark data, you can download them here (expires after two weeks, DM me after that) as well as a more detailed table (ODS) in which I calculated the average from the three runs per game.

Finally I'm sure I messed up something somewhere, so check everything twice yourself and please ask me anything regarding this whole thing that comes to your mind. I'll leave my system as is for the next week, so I'm able to re-run anything that might be necessary.

I hope this is useful to somebody..

EDIT: I turned and separated the table, so that the kernels are on the top.

Also I'll give my opinion on the results soon. I kind of left this out intentionally to see what you guys thing of the results.

EDIT: So here's what I think and as always in life, there is not clear answer.

Interpretation

Summaries

According to the per-game summaries of the three runs TKG has the highest average FPS in CS:GO, while Zen and Xanmod are still higher than Stable. But all kernel have similar 1.0 % lows, differences being marginal.

In Civilization 6 the average FPS are almost similar, Stable being slightly better and the 1.0 % lows are the bigger difference. Here Zen has the best results closely followed by Xanmod and TKG, while Stable is the slowest.

The average FPS are also quite similar in Far Cry 5. Zen and Xanmod have the highest 1.0 % low, TKG is only as fast as Stable.

And finally in Shadow of the Tomb Raider Zen and Xanmod have the highest average FPS, TKG being only as fast as Stable. In the 1.0 % lows it's almost the same.

So just looking at the average and 1.0 % low FPS for those four games it's really hard to say, which kernel you should use. It's not only dependent whether one prefers high average FPS or high 1.0 % FPS, but also which game one plays. For the best average FPS it appears that the stable kernel is a good choice, while for 1.0 % low FPS I'd choose Xanmod. Surprisingly TKG is only really shining in CS:GO.

Interesting is also, that the average of all games shifts in favor of TKG again, it having the overall best average FPS (as well as the overall best 0.1 % and 97 % FPS), while Zen has the overall best 1.0 % lows.

Details

Looking at the more detailed results TKG still has the best average in CS:GO, while the min FPS are all roughly identical.

In Civilization 6 the differences are really thin and can generally be considered measure tolerance.

Looking at Shadow of the Tomb Raider the min FPS are definitely better as well as the average FPS that are slightly better. Interestingly TKG has the worst results for this game.

And finally in Far Cry 5 there are hardly any measurable differences between the kernels.

Conclusion

It is possible to squeeze some FPS out of a game, when having the right kernel. But apparently you need a different kernel for different games as well as a different kernel for different preferences (1.0 % vs. avg. FPS). So there is no general answer for what kernel you should use for gaming.

As the average person I guess you're perfectly fine using the stable kernel or maybe Linux-Zen or Linux-Xanmod. The Linux-TKG kernel has the advantage that it's compiled for your system and CPU architecture instead of being a generic binary. But even that is not always a measurable advantage.

I guess I'll stick to Linux-Zen because i don't want to compile a kernel each and every update, but still play CS:GO most of the time, where Zen had a good performance as well as the overall best 1.0 % low FPS. But most important is that I was using it before, so it could also be just superstition.

What do you think and what kernel do you use?

EDIT: Reuploaded the results.

EDIT #2: Added geometric means on popular demand, that may render my interpretation and conclusion obsolete. I'll take a look at it again soon. But for now I'm really happy about the constructive discussion and suggestions in the comments. Keep it up!

EDIT #3: Special thanks to u/InfamousAgency6784 for the more scientific approach to my results that unfortunately got kinda buried after a misunderstanding initial comment.

Edited 22 May 2022. We only hold this version.

286 points66 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
286 · 98% up
Kind
Text
ID
utfazn

Author

89
posts
196
comments
15
media
View profile

1 comment

I can play Elden ring and others AAA games on arch Linux with better performance and lower temps than on windows, I haven't touched a single windows machine in 2 months since I started using Linux \0/

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.