https://bugs.kde.org/show_bug.cgi?id=459288
Bug ID: 459288 Summary: Uses lots of CPU power Classification: Unclassified Product: frameworks-kactivities Version: 5.97.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: ivan.cu...@kde.org Reporter: kdebuac....@porcupinefactory.org CC: plasma-b...@kde.org Target Milestone: --- SUMMARY kactivitiesd and/or plasmashell will go crazy when switching activities and consume 100% of a core for a few seconds to (in a congested system) a few minutes, making plasma stop responding to input. It seems related to the kactivity database at .local/share/kactivitymanagerd/resources/database. According to perf, the culprit is a lot of reads via __libc_pread64 (46.75% + 34.12%), strace confirms. The database file is 241M in size STEPS TO REPRODUCE 1. Switch between activities by clicking on the panel widget 2. Switch again, quickly OBSERVED RESULT About 20% of the time, plasmashell freezes for a while, taking 100% CPU Less than 20% of the time, kactivitymanagerd takes 100% CPU for some seconds EXPECTED RESULT Plasmashell never freezes. Activities-related processing never utilizes 100% CPU for more than a fraction of a second (I know activities are more than that, but I use them as virtual desktops, which should be light). SOFTWARE/OS VERSIONS Operating System: Fedora Linux 36 KDE Plasma Version: 5.25.5 KDE Frameworks Version: 5.97.0 Qt Version: 5.15.5 Kernel Version: 5.19.4-200.fc36.x86_64 (64-bit) Graphics Platform: X11 Processors: 2 × Unknown Type, 2 × Intel® Core™ i5-3380M CPU @ 2.90GHz Memory: 11.5 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 4000 -- You are receiving this mail because: You are watching all bug changes.