Bug 2312900
Summary: | kwin_wayland pegging CPU near 100% usage, system very sluggish when using software rendering since KDE 6.2 beta | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Adam Williamson <awilliam> |
Component: | kwin | Assignee: | Rex Dieter <rdieter> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 41 | CC: | agurenko, jgrulich, kde-sig, lruzicka, rdieter, suraj.ghimire7, than |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | openqa AcceptedFreezeException | ||
Fixed In Version: | kwin-6.1.90-3.fc42 kwin-6.2.1.1-1.fc41 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-10-18 21:19:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2247868 |
Description
Adam Williamson
2024-09-17 18:24:20 UTC
Huh, looking at 'htop' running in a console on a fresh boot of the 20240917.n.0 ISO after installation, I see two /usr/bin/kwin_wayland processes pegging the CPU at over 90% utilization. I guess that has something to do with it. Oh, both my test VM and openQA VMs use virtio video. OK, yeah, this is reproducible for me just running the live image on a VM using virtio graphics without 3D acceleration passthrough, and running top. On https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20240914.n.0/compose/Spins/x86_64/iso/Fedora-KDE-Live-x86_64-Rawhide-20240914.n.0.iso I see low CPU usage, on https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20240917.n.0/compose/Spins/x86_64/iso/Fedora-KDE-Live-x86_64-Rawhide-20240917.n.0.iso I see all cores pegged near 100% by kwin. I dumped the journal from both live boots, but nothing obvious leaps out. The 6.2 log has one additional line from kwin: Sep 17 14:47:43 localhost-live kwin_wayland[2113]: kwin_core: Failed to open drm node: "" but I think it may just be slightly more verbose logging of the same path, in context. 6.1: Sep 17 14:44:25 localhost-live kwin_wayland[2126]: kwin_scene_opengl: couldn't find dev node for drm device Sep 17 14:44:26 localhost-live ksplashqml[2204]: libEGL warning: egl: failed to create dri2 screen Sep 17 14:44:27 localhost-live kwin_wayland_wrapper[2238]: Refusing to try glamor on llvmpipe Sep 17 14:44:27 localhost-live kwin_wayland_wrapper[2238]: EGL setup failed, disabling glamor Sep 17 14:44:27 localhost-live kwin_wayland_wrapper[2238]: Failed to initialize glamor, falling back to sw 6.2: Sep 17 14:47:43 localhost-live kwin_wayland[2113]: kwin_core: Failed to open drm node: "" Sep 17 14:47:43 localhost-live kwin_wayland[2113]: kwin_scene_opengl: couldn't find dev node for drm device Sep 17 14:47:45 localhost-live ksplashqml[2209]: libEGL warning: egl: failed to create dri2 screen Sep 17 14:47:46 localhost-live kwin_wayland_wrapper[2243]: Refusing to try glamor on llvmpipe Sep 17 14:47:46 localhost-live kwin_wayland_wrapper[2243]: EGL setup failed, disabling glamor Sep 17 14:47:46 localhost-live kwin_wayland_wrapper[2243]: Failed to initialize glamor, falling back to sw I tested with a few different virtual graphics adapter configs, results: virtio (no 3d passthrough): bad virtio (w/ 3d passthrough): OK qxl: OK vga: bad OK, with a bit more testing this seems to affect all software rendering configs, including qxl. Sometimes the CPU spike isn't there when the system is sat entirely idle, but it always happens on launching firefox, and that always happens much slower on all software rendering configs than it does with the same config on 20240914.n.0. The slowness is also very apparent just in all interactions with the desktop - opening the kicker menu, launching a console, stuff like that. There's clearly *something* worse about the software rendering pipeline in 6.2. Can also reproduce this on a bare metal system, booting with nomodeset to force use of software rendering. I also came up with a simpler test: open a konsole, run 'top' in it, and drag it around in circles for a bit. On my test system, with KDE 6.2 (20240917.n.0), this spikes the CPU usage to 750-800%, and the window moves jerkily. On KDE 6.1 (20240914.n.0), CPU usages hits about 300-350%, and the window moves smoothly. Doing the same thing with hardware rendering on my test system, kwin_wayland spikes to about 35% CPU usage on both images, i.e. there's no difference. The difference is for software rendering only. FEDORA-2024-ab8b79504b (kwin-6.1.90-3.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2024-ab8b79504b FEDORA-2024-ab8b79504b (kwin-6.1.90-3.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. This actually came back because the patch backport was dropped with the 6.2.0 build, but this fix was not included in 6.2.0 or 6.2.1 upstream :( Re-opening and proposing as an F41 Final FE, because this plays havoc with openQA (and is a bad experience for humans trying to use KDE in a VM or other unaccelerated scenario too). FEDORA-2024-8ef1271562 (kwin-6.2.0-3.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-8ef1271562 *** Bug 2319081 has been marked as a duplicate of this bug. *** FEDORA-2024-d7dc366b88 (kwin-6.2.0-3.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-d7dc366b88 FEDORA-2024-d7dc366b88 has been pushed to the Fedora 41 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-d7dc366b88` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-d7dc366b88 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-8ef1271562 has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8ef1271562` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8ef1271562 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-3d6fe93ff4 has been pushed to the Fedora 41 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-3d6fe93ff4` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-3d6fe93ff4 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-8ef1271562 (kwin-6.2.0-3.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. +4 FE in https://pagure.io/fedora-qa/blocker-review/issue/1714 , marking accepted. FEDORA-2024-3d6fe93ff4 (bluedevil-6.2.1-1.fc41, breeze-gtk-6.2.1-1.fc41, and 66 more) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report. |