Code: Select all
top - 10:59:03 up 1 day, 3:05, 8 users, load average: 2.00, 2.06, 2.05
Tasks: 230 total, 1 running, 229 sleeping, 0 stopped, 0 zombie
Cpu(s): 48.2%us, 16.0%sy, 0.0%ni, 35.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8181288k total, 8107060k used, 74228k free, 688940k buffers
Swap: 4112636k total, 0k used, 4112636k free, 3841696k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3514 root 20 0 616m 31m 20m S 100 0.4 49:14.53 knotify4
3505 root 20 0 414m 26m 18m S 100 0.3 49:16.05 kded4Representative links:
Gentoo forums
In 'KDE 4.6' discussion thread (page 7)
kded4 hangs in pthread_cond_wait ()
KDE bugzilla
220047 - kded4 continually uses 100% of one CPU core
268038 - kded4 eating 100% cpu - ntrack related
253606 - knotify4 and "kdeinit: kded4" each consume close to 100% CPU after KDE startup until they are killed
When I read the various posts here, and including arch linux forums, kubuntu forums, kde bugzilla etc, it's apparent that the "problem" is .. let us say 'complex'.
Let's start with the fact that people are reporting widely different problems which can generally be attributed to some kind of 'latency'. i.e. stuttering sound, dropped connections (of all sorts), disk slow downs, periodic performance slowdowns. They then look for solutions which directly address their immediate problems without realizing that 100% cpu utilization introduces latencies. They try a suggested solution, reboot and everything seems fine .. until the problem crops up someplace else.
Let's move on to some of the other impacts.
For example, there is the issue of PCs unexpectedly shutting down. What's happening is that a single CPU core will be pegged at 100% utilization resulting in higher temperatures for that core to the point where your PC shuts down. The fact the PC protects itself is great. That there isn't any notice and there aren't usually any clues why is .. not so great. I suspect that these unexpected shutdowns are dependent on kernel version, kernel settings and number of cores when one of these 100% CPU utilization threads get invoked. Here is an example of 'top' on a 4 CPU core system with the '1' option on {to force display of all cores utilization}.
Code: Select all
top - 11:37:39 up 1 day, 3:44, 8 users, load average: 2.00, 2.01, 2.05
Tasks: 225 total, 1 running, 224 sleeping, 0 stopped, 0 zombie
Cpu0 : 72.4%us, 27.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 15.7%us, 2.0%sy, 0.0%ni, 82.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 16.9%us, 3.3%sy, 0.0%ni, 79.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 69.4%us, 30.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8181288k total, 8116704k used, 64584k free, 691908k buffers
Swap: 4112636k total, 0k used, 4112636k free, 3798560k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3505 root 20 0 414m 26m 18m S 100 0.3 87:51.97 kded4
3514 root 20 0 616m 31m 20m S 100 0.4 87:50.84 knotify4I have a two core PC which was shutting down unexpectedly. Now that I've upgraded it's kernel from {2.6.36.x} to {2.6.38.2}, it too is no longer overheating.
Based on my readings and personal observations, other areas impacted may be graphics behavior and X windows. Video playback in particular is subject to problems caused by latencies regardless of cause.
On all of my systems, I can guarantee invocation of kded4 100% CPU usage. Such invocation looks to require several circumstances before it happens.
- Either kded4 or knotify4 must be involved some way.
- There must be some error associated with the 'trigger'.
Example 2: On my main workstation, I have 10 desktops set up. On 6 of the desktops, I open a different web browser each. Each browser has multiple tabs. Opening all these web browsers almost immediately causes both kded4 and knotify4 to go into race condition resulting in 100% CPU utilization threads. I'm trying to track down where the 'triggers' are by opening one browser with one tab at a time. This is difficult because there are so many possible triggers. i.e. is there a problem with an Internet based resource not being available? a flash script problem? graphics driver issue? malicious website? multiple attempts to play sound {due to multiple embedded youtube or flash clips}?
Another related issue I've noticed is that, once started and without being in a 100% CPU utilization condition, neither kded4 nore knotify4 seem never to give up any memory they consume. I'm not yet certain they have memory leak issues. I just haven't observed any reduction in memory consumption. This includes no drop in memory consumption even after executing:
Code: Select all
# sync && echo "3" > /proc/sys/vm/drop_caches- To help people realize that they may need to look a little further than might be immediately apparent at their problems.
- As a discussion point to consolidate kded4 and knotify4 issues.
- As a focus on finding things that 'work' to alleviate these issues.
In the meantime, what works?
- Eliminate all widgets requiring Internet access.
- Open only what you actually need.
- Keep track of what you have open in order to assist in tracking down problem causes.
- Turn off functions in packages which need Internet access. {like CDDB for music players}
I have seen instances where, after logging out of my kde session, the kded4 process keeps running and never stops. Naturally, if you normally shutdown your PC through the kde 'stop' function, this would prevent shutdown from running to completion. Indeed, this condition may possibly cause manual shutdowns to hang.
If you kill one of these 100% CPU utilization processes using 'kill -9', you would be well advised to reboot.
(edit)
Comparative point of reference - This what 'top' looks like with just kde, konqueror {web mode with just gentoo tabs open} and ktorrent {no active torrents} running and with no 100% CPU utilization threads running:
Code: Select all
top - 14:46:14 up 1 day, 6:52, 8 users, load average: 0.22, 0.62, 1.41
Tasks: 203 total, 1 running, 202 sleeping, 0 stopped, 0 zombie
Cpu0 : 2.3%us, 4.0%sy, 0.0%ni, 93.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.7%us, 0.0%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni, 98.6%id, 1.4%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8181288k total, 739532k used, 7441756k free, 33628k buffers
Swap: 4112636k total, 0k used, 4112636k free, 161368k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12244 guysuper 20 0 718m 97m 36m S 9 1.2 0:07.19 konqueror
2143 mysql 20 0 179m 28m 4584 S 0 0.4 0:55.65 mysqld
2763 root 20 0 40960 776 448 S 0 0.0 0:44.15 udisks-daemon
11968 root 20 0 132m 42m 29m S 0 0.5 0:08.67 X
12098 guysuper 20 0 434m 41m 30m S 0 0.5 0:01.67 kwin
12138 guysuper 20 0 440m 38m 23m S 0 0.5 0:04.04 konsole
12140 guysuper 20 0 678m 149m 37m S 0 1.9 0:04.71 ktorrent
12267 guysuper 20 0 11036 1240 868 R 0 0.0 0:00.03 topThat's it for now. Good luck!





