Bug 1225729 - Updating from tumbleweed 20240418 makes overall graphics performance worse on amdgpu
Summary: Updating from tumbleweed 20240418 makes overall graphics performance worse on...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: KDE Workspace (Plasma) (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: E-Mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-31 11:29 UTC by piotrus3g
Modified: 2024-07-15 11:37 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description piotrus3g 2024-05-31 11:29:16 UTC
Current system info (with bad performance):
Operating System: openSUSE Tumbleweed 20240524
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.9.1-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 5625U with Radeon Graphics
Memory: 13,5 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 82SG
System Version: IdeaPad 5 15ABA7

Current graphics drivers:
Mesa version: 24.0.7-1699.378.pm.1 (Packman)
Amdgpu packages:
xf86-video-amdgpu 23.0.0-2.2 (openSUSE-Tumbleweed-Oss)
kernel-firmware-amdgpu 20240519-1.1 (openSUSE-Tumbleweed-Oss)
libdrm_amdgpu1 2.4.120-1.3 (openSUSE-Tumbleweed-Oss)

System info from 20240418 snapshot (with proper performance):
Operating System: openSUSE Tumbleweed 20240418
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.6-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 5625U with Radeon Graphics
Memory: 13,5 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 82SG
System Version: IdeaPad 5 15ABA7

Graphics drivers from 20240418 snapshot:
Mesa version: 24.0.3-1699.375.pm.3 (System Packages)
Amdgpu packages:
xf86-video-amdgpu 23.0.0-2.2 (openSUSE-Tumbleweed-Oss)
kernel-firmware-amdgpu 20240322-2.1 (System Packages)
libdrm_amdgpu1 2.4.120-1.3 (openSUSE-Tumbleweed-Oss)

Issue description:
After updating from the 20240418 snapshot, my system got performance issues. For example, when cycling through tabs in firefox by holding ctrl+tab, it doesn't go through all tabs smoothly. There wasn't such a problem in the 20240418 snapshot.

Other performance issue occurs when trying to play videos in a virtual terminal with mpv using the tct output driver (it uses colored Unicode block characters) and sw-fast profile while Plasma is running or a user has logged out of it. mpv drops frames, which doesn't happen on the old snapshot. Bash completion with Plasma running has a delay with completing mpv options, that also didn't happen on the old snapshot. Without Plasma launched the Bash completion seems faster. I've also tested it with IceWM to check if it is directly related to Plasma and here are the combinations and results:
1. Boot, sddm loads, I don’t start any desktop session and switch to virtual console. No frame drops here.
2. Boot, sddm loads, start IceWM desktop session, switch to virtual console. No frame drops here.
3. Boot, sddm loads, start IceWM desktop session and log out of it, switch to virtual console. No frame drops here.
4. Boot, sddm loads, start X11 or Wayland Plasma desktop session, switch to virtual console. Frame drops happen.
5. Boot, sddm loads, start Wayland or X11 Plasma desktop session and log out of it, switch to virtual console. Frame drops happen the same as with Plasma running.

It could be an issue with mpv itself, but running it the same way in Konsole (with the tct output driver) doesn't show such performance issues. Bash completion is still slow in Konsole, though.

Other issue is a weather forecast website windy.com that has an animated wind map. It worked well on the old snapshot but now it performs very poorly. Tested on firefox.

3D graphics performance in glmark2 seems to be normal and similar to the old snapshot.
Comment 1 Fabian Vogt 2024-05-31 11:55:16 UTC
Please try booting the older kernel first and check whether performance is back to the previous level.

If not, please try downgrading Mesa, or rollback to the old snapshot and try upgrading mesa.
Comment 2 hui 2024-05-31 12:05:59 UTC
Many other cases (see forum) where caused by mixed Mesa packages from packman/openSUSE. So make sure that all packages come from either openSUSE or packman. 

E.g. switch all packages to packman via
"sudo zypper dist-upgrade --from packman --allow-vendor-change"

You need to replace "--from packman" with the proper repo name on your system.
Comment 3 piotrus3g 2024-05-31 12:27:41 UTC
(In reply to hui from comment #2)
> Many other cases (see forum) where caused by mixed Mesa packages from
> packman/openSUSE. So make sure that all packages come from either openSUSE
> or packman. 
> 
> E.g. switch all packages to packman via
> "sudo zypper dist-upgrade --from packman --allow-vendor-change"
> 
> You need to replace "--from packman" with the proper repo name on your
> system.

I ran the command and it updated some vlc stuff and radeonsi changed vendor to packman. The performance is unfortunately the same.
Comment 4 piotrus3g 2024-05-31 12:40:02 UTC
(In reply to Fabian Vogt from comment #1)
> Please try booting the older kernel first and check whether performance is
> back to the previous level.
> 
> If not, please try downgrading Mesa, or rollback to the old snapshot and try
> upgrading mesa.

Unfortunately, I didn't do anything to protect the snapshot from getting automatically cleaned up and it's not on my system anymore. The oldest snapshot I have is 20240516 and it is affected by the issue. But I remember testing updating only Mesa on the old snapshot. It has caused some visual glitches back then, but if I recall correctly it didn't cause performance issues (although I only tested mpv as it was the most obvious one).
Comment 5 piotrus3g 2024-05-31 12:41:16 UTC
Forum discussion about the issue for reference: https://forums.opensuse.org/t/updating-from-tumbleweed-20240418-makes-graphics-performance-worse-on-amdgpu/174815/1
Comment 6 piotrus3g 2024-07-15 11:37:29 UTC
I haven't used the laptop in a while, but on snapshot 20240714 I don't get frame drops in mpv with the tct driver. I see a new Mesa version on my system (24.1.3-1699.387.pm.1) so that could be one of the reasons. I've also noticed some improvement in desktop performance on my nvidia desktop, so there could have been some other fixes in the meantime. I think I can close this bug as mpv was the main program where the issue appeared.