Bug 419252 - Eventual constant high CPU usage with nvidia proprietary driver and desktop effects
Summary: Eventual constant high CPU usage with nvidia proprietary driver and desktop e...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-26 07:37 UTC by Szczepan Hołyszewski
Modified: 2024-04-25 13:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
vlad.zahorodnii: NVIDIA+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Szczepan Hołyszewski 2020-03-26 07:37:33 UTC
SUMMARY


STEPS TO REPRODUCE

1. Do stuff in KDE desktop for a while, perhaps play videos in browser (seems to trigger the symptom with greater probability).

OBSERVED RESULT

Kwin_x11 eventually and permanently enters "rage state" in which it uses a lot of CPU, grinding on all of my 8 cores and using about 70%-80% of each.

EXPECTED RESULT

Normal CPU usage.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Kernel Version: 5.5.11-arch1-1
OS Type: 64-bit
Processors: 8 × AMD FX(tm)-8320 Eight-Core Processor
Memory: 15,6 GiB

ADDITIONAL INFORMATION

 - the symptom kicks in after a while
 - once kwin enters the bad state, it remains in it
 - while in the bad state, CPU usage can be reduced to normal by disabling desktop effects, but immediately goes up again upon re-enabling them
 - restarting kwin_x11 while in bad state causes the new kwin_x11 process to enter the bad state immediately
 - the mildest measure that "cures" the kwin state is logging out and back in
 - it _seems_ that the bug is more likely to manifest during the first session than after logging out and back in, but this might be a red herring; I haven't tested it enough times to be sure
 - https://www.reddit.com/r/kde/comments/flc77w/100_thread_usage_by_kwin_x11_nvidia/
Comment 1 David Edmundson 2024-04-25 13:24:48 UTC
We are always improving performance over time as are driver vendors. There is nothing unique in this report that is actionable in itself.