https://bugs.kde.org/show_bug.cgi?id=470026
Bug ID: 470026 Summary: kactivitymanagerd pegs a CPU core at 100% when downloading files from Firefox Classification: Plasma Product: kactivitymanagerd Version: 5.27.5 Platform: Archlinux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: ivan.cu...@kde.org Reporter: adam.m.fontenot+...@gmail.com CC: plasma-b...@kde.org Target Milestone: --- SUMMARY I was downloading a bunch of files in Firefox - about 600 files at a rate of about one file every three seconds. These were simple text files, almost all around 20 KB (and none larger than 25 KB). So not an especially fast download rate, and not especially large files. (These files were all going in ~/Downloads. I have Baloo completely disabled.) This resulted in a very small CPU increase in Firefox itself, but when trying to figure out why my fans went crazy, I noticed that kactivitymanagerd had a core at 100% for the duration of the download (~30 minutes). STEPS TO REPRODUCE 1. Download a bunch of small text files in Firefox. DEBUGGING I didn't manage to get a flame graph, but did some quick debugging during the download process with `strace`. Things I noticed: * The following syscall occurred 18580 times over the course of a 1-2 minute `strace`: newfstatat(AT_FDCWD, "/etc/localtime", {st_mode=S_IFREG|0644, st_size=3552, ...}, 0) = 0 * The most significant activity seems centered around `~/.local/share/recently-used.xbel`. There are about 1000 bookmarks in this file, and `kactivitymanagerd` is reading from it off and on throughout the entire `strace`. Since it's an XML file I assume there is probably a considerable amount of parsing being done on the file that doesn't show up in the `strace`. It's not clear to me what `kactivitymanagerd` is doing with the data from this file. * Most of the rest of the syscalls are related to XDG paths, like `~/.local/share/applications`. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Kernel Version: 6.3.2-arch1-1 (64-bit) Graphics Platform: X11 -- You are receiving this mail because: You are watching all bug changes.