WarThunder game performance killed after Ryzen optimisations
https://bugs.freedesktop.org/show_bug.cgi?id=108330
Bug ID: 108330
Summary: WarThunder game performance killed after Ryzen
optimisations
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
After the recent optimisation of radeonsi for Ryzen CPUs (apparently change in thread management distributing them to CPU cores), the performance of the WarThunder game dived radically.
Normally it was 40-60FPS. After the change it appears OK when in plain fields, but when moving the vehicle into a more intensive area, where shots are fired or other player vehicles are around, the FPS drops to 0-10 with really noticeable freezes and stuttering. This was never the case before the change,
The GPU is Radeon RX 560 (4GB memory).
The CPU is AMD Threadripper 1920x (12 cores/24 threads) so it may be one where the optimisations are applied. Are Threadripper CCX/core layout properly recognized by the patch for Ryzen?
Before the patch I noticed, the speed of the game can be visibly negatively affected if other tasks are running on the CPU. So I always run the game with no other CPU heavy tasks running. The report is also with no other tasks. It may be the change of thread scheduling from the patch has now invoked the core/thread load scenario the game is sensitive to.
I run Mesa from git so I noticed this problem when it was merged.
Now running on Mesa 18.2.2 stable and the problem is not there.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=108330
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |108530
Referenced Bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=108530
[Bug 108530] [Tracker] Mesa 18.3 Release Tracker
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=108330
Emil Velikov <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected], | |[email protected]
--- Comment #1 from Emil Velikov <[email protected]> --- Just to double-check, you're talking about commit 28e542dcdbb "gallium/u_threaded: increase batch size to increase performance"
Marek, Ken do you have any suggestions?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=108330
--- Comment #2 from aceman <[email protected]> --- No, I assume it was
https://cgit.freedesktop.org/mesa/mesa/commit/?id=25ffb8401638a07d774cfc68ab6afc7d27780dd8
as that one was reported at
https://www.phoronix.com/scan.php?page=news_item&px=RadeonSI-Zen-Tuning-Merged
and that is the tie the problem started.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=108330
--- Comment #3 from aceman <[email protected]> ---
Could we get a patch like
https://lists.freedesktop.org/archives/mesa-dev/2018-November/208785.html so that I can try to turn off the L3 cache thread pinning for this game?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=108330
--- Comment #4 from Alex Deucher <[email protected]> --- (In reply to aceman from comment #3)
Quoted 3 lines
Could we get a patch like
https://lists.freedesktop.org/archives/mesa-dev/2018-November/208785.html so that I can try to turn off the L3 cache thread pinning for this game?
Just use that patch and add an entry for your game like this:
Review
Quoted 4 lines
(quoted diff) +4
-0+ <application name="Blender" executable="blender"> + <option name="disable_L3_thread_pinning" value="true"/> + </application> +
replace blender with the name and executable of your app.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=108330
--- Comment #5 from aceman <[email protected]> --- Good idea:)
I did that, but it seems to not help in any way. How do I check if the option is picked up?
Why is drirc now called 00-mesa-defaults.conf ? Where should it be put in /etc ?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=108330
--- Comment #6 from aceman <[email protected]> ---
So strangely the patch didn't work, but updating mesa today (presents itself as 19.0.0), containing the commit
https://cgit.freedesktop.org/mesa/mesa/commit/?id=e0c7114eb3c19d4c2653f661698a6baa3bc9bedf
FIXES the problem immediately.
The current mesa is even faster than 18.2.x that I had to use while this problem was existing.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=108330
Emil Velikov <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #7 from Emil Velikov <[email protected]> --- As pointed out L3 thread pinning is disabled now. With the commit present in both master and 18.3.0-rc3.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=108330
--- Comment #8 from aceman <[email protected]> --- Thanks.
And the new version of the patch,
https://cgit.freedesktop.org/mesa/mesa/commit/?id=bc5adc27b5e52d27eca6a61ad1e049b160570c98
seems to work OK. WarThunder has mesa_glthread=true in drirc.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel