Bug 458039 - Unusual and continuous CPU(And probably also GPU) usage by Plasmashell and Kwin processes
Summary: Unusual and continuous CPU(And probably also GPU) usage by Plasmashell and Kw...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-performance (show other bugs)
Version: master
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-18 17:01 UTC by Behzad A
Modified: 2022-08-23 10:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Behzad A 2022-08-18 17:01:29 UTC
Last Sunday, after updating Plasma to the last git-master(openSUSE Krypton repo 22-08-14), I noticed unusual and continuous CPU(And probably also GPU) usage by Plasmashell and Kwin_wayland processes in the Wayland session, And in the X11 session, in addition to them, the Xorg-bin process is also involved, So that even when just running Top through Konsole, in Wayland session, CPU usage of Plasmashell and Kwin_wayland processes is about 7-8%, and in X11 session, CPU usage of Plasmashell and Kwin_x11 and Xorg-bin processes is about 10-12%, And it also seems that something constantly and without reason render/draw/repaint ing in the background, because seems that "kworker/u9:1+i915_flip" process is also involved.

Also, I had not seen this problem before the last update.

System:
  Host: localhost.localdomain Kernel: 5.19.1-1-default arch: x86_64 bits: 64
    compiler: gcc v: 12.1.1 Desktop: KDE Plasma v: 5.25.80 tk: Qt v: 5.15.5
    wm: kwin_wayland dm: SDDM Distro: openSUSE Tumbleweed 20220816
CPU:
  Info: dual core model: Intel Core2 Duo T6670 bits: 64 type: MCP
    arch: Penryn Yorkfield rev: A cache: L1: 128 KiB L2: 2 MiB
  Speed (MHz): avg: 1196 min/max: 1200/2201 boost: enabled cores: 1: 1196
    2: 1196 bogomips: 8770
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx
Graphics:
  Device-1: Intel Mobile 4 Series Integrated Graphics vendor: Sony
    driver: i915 v: kernel arch: Gen5 ports: active: LVDS-1 empty: DP-1,VGA-1
    bus-ID: 00:02.0 chip-ID: 8086:2a42
  Device-2: Ricoh Sony Vaio Integrated Webcam type: USB driver: uvcvideo
    bus-ID: 2-2:2 chip-ID: 05ca:18b3
  Display: wayland server: X.org v: 1.21.1.4 with: Xwayland v: 22.1.3
    compositor: kwin_wayland driver: X: loaded: modesetting
    unloaded: fbdev,vesa alternate: intel gpu: i915 display-ID: 0
  Monitor-1: LVDS-1 res: 1280x800 size: N/A
  OpenGL: renderer: Mesa Mobile Intel GM45 Express (CTG)
    v: 2.1 Mesa 22.3.0-devel-git-5fd8ae15 direct render: Yes

"qdbus-qt5 org.kde.KWin /KWin supportInformation" Output:
https://pastebin.com/BZRnrVHp
Comment 1 Behzad A 2022-08-20 14:32:53 UTC
After disabling and re-enabling different things to try to find the problem reason, It seems that this problem is related to the Panel, because when setting the Panel-Visibility option to Auto_Hide, and the Panel is in hidden mode, CPU usage back to normal, and when the Panel is visible, the problem is starting again; Also when the Panel-Visibilty option seted to Always-Visible and the applicattion(Konsole) window be FullScreen, It has no effect on the problem.

Also, this problem is probably(I'm not entirely sure) related to the changes between August 9 and 15 because after updated Plasma on August 10(openSUSE Krypton repo 22-08-09) I did not notice to this problem but after updated Plasma on August 14(openSUSE Krypton repo 22-08-14) I noticed to the problem.
Comment 2 Nate Graham 2022-08-23 10:56:54 UTC
I noticed this as well and it's just been fixed as of today, with https://invent.kde.org/frameworks/plasma-framework/-/commit/3ac9fc30c766c3ed57f0d4f19fb2a7d046b46118.