Summary: | kded4 excessive CPU usage | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Nick Warne <nick> |
Component: | kded | Assignee: | David Faure <faure> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Services running |
Description
Nick Warne
2008-01-16 13:31:14 UTC
Created attachment 23072 [details]
Services running
Current services running.
You can try unloading kded modules one by one to see if one of them is guilty $ qdbus org.kde.kded /kded loadedModules favicons networkstatus kpasswdserver kcookiejar kwalletd $ qdbus org.kde.kded /kded unloadModule networkstatus true But if KDirWatch is guilty, then that's part of the core kded functionality and cannot be unloaded. OK, thanks for advice. Turning off each loadedmodule, one-by-one, doesn't reveal anything... CPU usage still @ 4% - 6% constant. I thne had a thought! I mount / and /home 'noatime'. So I remounted with that option removed, alas, still no change. I have also just run kded4 through strace -f. This reveals that 'stat64' polls/reads everything in my $HOME/.kde4 directory every second(ish). Nick OK, again thanks for the heads up. I have resolved this issue on my system. Googling revealed a 3.x.x thread that as FAM daemon isn't available, kded uses 'stat'. 'stat' polling can be controlled by entry in kdedrc thus: [DirWatch] PollInterval=60000 Here I have set it to 60 seconds. This now leaves system happily purring along at 0% - 1%. Nick I added the options to kdedrc and installed/run famd but still my kded uses all my cpu all of the time. > I added the options to kdedrc and installed/run famd but still my kded uses all my cpu all of the time.
Best way to find out why is to run "gdb --pid <pid>" and "bt" to see what it's doing...
Here is some debug output: Reading symbols from /home/kde-devel/kde/lib/soprano/libsoprano_redlandbackend.so...done. Loaded symbols for /home/kde-devel/kde/lib/soprano/libsoprano_redlandbackend.so 0xb3b02135 in librdf_hash_memory_find_node () from /usr/lib/librdf.so.0 (gdb) bt #0 0xb3b02135 in librdf_hash_memory_find_node () from /usr/lib/librdf.so.0 Cyrill Helg: see bug 159027 |