kded re-reads files every second
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdelibs (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
It seems that an instance of the KDE Daemon, kded, re-reads certain files
every second. This leads to wasted CPU time, and less chance of
power saving on laptops.
The following is a piece of an strace, which demonstrates the cycle:
fstat64(11, {st_mode=
munmap(0xb6033000, 7558) = 0
rt_sigaction(
close(11) = 0
stat64(
stat64(
stat64(
open("/
fstat64(11, {st_mode=
fstat64(11, {st_mode=
mmap2(NULL, 520, PROT_READ, MAP_PRIVATE, 11, 0) = 0xb6034000
fstat64(11, {st_mode=
rt_sigaction(
rt_sigprocmask(
fstat64(11, {st_mode=
munmap(0xb6034000, 520) = 0
rt_sigaction(
close(11) = 0
open("/
fstat64(11, {st_mode=
fstat64(11, {st_mode=
mmap2(NULL, 1692, PROT_READ, MAP_PRIVATE, 11, 0) = 0xb6034000
fstat64(11, {st_mode=
rt_sigaction(
rt_sigprocmask(
fstat64(11, {st_mode=
munmap(0xb6034000, 1692) = 0
rt_sigaction(
After approximately these many system calls, the exact same set
of calls are performed again, this re-reading the file. On a top(1),
it's clearly visible that the kded uses a lot of time:
5660 chrivers 15 0 41184 6400 4540 S 0.7 0.6 20:21.07 kded
Only kcryptd and xorg uses more than kded here!
Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at [WWW] https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. I have classified this bug as a bug in kdelibs.