Skip to contentSkip to conversation

RX 560x is very slow

Bug 111240 [email protected] 1 participant 11 messages Jul 28, 2019 – Nov 19, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=111240

            Bug ID: 111240
           Summary: RX 560x is very slow
           Product: DRI
           Version: XOrg git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: major
          Priority: highest
         Component: DRM/AMDgpu
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 144897
--> https://bugs.freedesktop.org/attachment.cgi?id=144897&action=edit
Unigine_Heaven-4.0 around 27 fps

I have laptop ASUS TUF Gaming with Ubuntu 19.04, but graphics card rx 560x very slow on linux system.

DRI_PRIME=1 glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Radeon RX 560 Series (POLARIS11, DRM 3.27.0, 5.0.0-21-generic, LLVM 8.0.1)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.2.0-devel (git-2f92360 2019-07-26 disco-oibaf-ppa)
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5 (Compatibility Profile) Mesa 19.2.0-devel (git-2f92360 2019-07-26 disco-oibaf-ppa)
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 19.2.0-devel (git-2f92360 2019-07-26 disco-oibaf-ppa)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 OpenGL ES profile extensions:

glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: AMD RAVEN (DRM 3.27.0, 5.0.0-21-generic, LLVM 8.0.1) OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.2.0-devel (git-2f92360 2019-07-26 disco-oibaf-ppa)
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5 (Compatibility Profile) Mesa 19.2.0-devel (git-2f92360 2019-07-26 disco-oibaf-ppa)
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 19.2.0-devel (git-2f92360 2019-07-26 disco-oibaf-ppa)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 OpenGL ES profile extensions:

I tried run Unigine_Heaven-4.0. I've got around 27 fps on basic preset...

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

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=111240

Christoph Haag <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Christoph Haag <[email protected]> --- Created attachment 144944
--> https://bugs.freedesktop.org/attachment.cgi?id=144944&action=edit
moment of performance drop

I have the same laptop so I tried it and there is actually an interesting effect, see attached screenshot.

At first performance is quite good, but at some point during the benchmark, performance and GPU usage suddenly drops a lot.

The performance then stays low permanently, even when restarting the benchmark, after waiting for the dgpu get shutdown by runpm.

Maybe I'll take a closer look later with more gallium hud graphs and maybe umr --top, but for now I'll just leave a comment here confirming that there is an issue.

Also loading the benchmark seems to take much longer after the performance drop happens, which seems very suspicious.

Tested on Arch with mesa 19.1.3, Linux 5.1, 5.2 and 5.3-rc2. Happens on all three kernel versions.

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

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111240

--- Comment #2 from Denys <[email protected]> ---
On the Arch you have more fps then Ubuntu, probably Kernel 5.1 better then 5.0.

Just now update Kernel to 5.0.0-23-generic, it seems nothing change, same 26-27 fps on basic preset.

Christoph Haag, do you know the developers planning some update for amdgpu driver?

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

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111240

Denys <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from Denys <[email protected]> ---
Created attachment 144945
--> https://bugs.freedesktop.org/attachment.cgi?id=144945&action=edit
Windows 10 test - 64 fps

Just for comparison.
Same laptop, same test, but running on Windows 10. I have got around 64 fps...

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

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111240

--- Comment #4 from [email protected] ---
The performance drop may be related to an incorrect boost frequency (400MHz), compare here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1830522

Workaround is to set
echo 0 > /sys/devices/system/cpu/cpufreq/boost

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

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111240

--- Comment #5 from Sylvain BERTRAND <[email protected]> --- On multi-core cpus, better use the performance cpu freq governor. Some load profiles may be badly managed by the on-demand cpu freq governor. Due to the load profile, some cores may not get enough load to be switched to their highest frequencies (which is critical for realtime game performance).

I did notice significant fps loss with the on-demand cpu governor with some of my dota2 configurations running on a 8-cores 4.7GHz (FX9590).

This is a pb for lambda users who don't want to know anything about cpu freq governors.

Multi-threaded games must be aware of the pb and warn the users about the cpu governor settings (this is true on any OS).

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

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111240

Jacek Konieczny <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #6 from Jacek Konieczny <[email protected]> ---
I have a similar laptop (TUF Gaming FX505DY), and the very same problem, with kernel 5.3.7 and governor set to 'performance'.

When I run a game with DRI_PRIME=1 (to use the dedicated GPU) the system gets throttled down at some point and never recovers. Every CPU core runs at 400Mhz which makes the system practically unusable until reboot.

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

#7 lore raw

[Bug 111240] ASUS TUF Gaming laptops gets throttled down when the RX560X GPU is being used

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111240

Jacek Konieczny <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|RX 560x is very slow        |ASUS TUF Gaming laptops
                   |                            |gets throttled down when
                   |                            |the RX560X GPU is being
                   |                            |used
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

#8 lore raw

[Bug 111240] ASUS TUF Gaming laptops gets throttled down when the RX560X GPU is being used

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111240

--- Comment #7 from Jacek Konieczny <[email protected]> --- I have tried kernel 5.4-rc5 – that did not help.

Disabling cpufreq boost (echo 0 > /sys/devices/system/cpu/cpufreq/boost) stops the drastic slowdown from happening, but this also makes the system significantly slower than normal (still much better than after the bug appears), so there is no gain from using the discrete GPU (DRI_PRIME=1).

I wonder if this might be the problem:

Quoted 8 lines
$ cat /sys/class/hwmon/hwmon3/{name,temp1_crit,temp1_crit_hyst}
amdgpu
94000
-273150
$ cat /sys/class/hwmon/hwmon4/{name,temp1_crit,temp1_crit_hyst}
amdgpu
80000
0

Are these hysteresis values being used? If so, then those values won't work for recovering from thermal throttle. Though, I have never seen temperature reading reaching 80 degrees there.

The first one seems to be the discrete GPU (RX560X), the other one integrated (Vega 8).

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

#9 lore raw

[Bug 111240] ASUS TUF Gaming laptops gets throttled down when the RX560X GPU is being used

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111240

--- Comment #8 from Jacek Konieczny <[email protected]> ---
Looks like it is not amdgpu bug, but a faulty cooling algorithm implemented in BIOS/hardware (reportedly the same happens on Windows before dedicated ASUS software is installed).

I was able to make things much better with custom thermald config, but Linux is still lacking proper tools to do it right.

It is quite tricky, probably mostly due to interaction between the GPU heating and the CPU boost feature not accounting for the extra heat.

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

#10 lore raw

[Bug 111240] ASUS TUF Gaming laptops gets throttled down when the RX560X GPU is being used

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111240

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #9 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/882.

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