Bug 198315 - Task Manager slowly uses more CPU over time when idle.
Summary: Task Manager slowly uses more CPU over time when idle.
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-taskbar (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-29 18:57 UTC by Sean Wilson
Modified: 2009-06-30 06:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
valgrind callgrind readout (16.35 KB, text/plain)
2009-06-29 19:14 UTC, Sean Wilson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Wilson 2009-06-29 18:57:44 UTC
Version:            (using Devel)
Compiler:          gcc version 4.4.0 20090526 (prerelease) 
OS:                Linux
Installed from:    Compiled sources

The Task Manager takes more and more CPU over time when idle. I know it's the Task Manager because When I remove it, the CPU goes back to 0% idle.

This seems to grow over time (possibly more usage) 8% and even as far as 16%, Enabling Desktop effects seems to make the issue worse.

Restating plasma-desktop generally resolves the issue but not always.

Version 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1)) , Qt-4.5.2(compile from sources)
Comment 1 Sean Wilson 2009-06-29 19:14:12 UTC
Created attachment 34916 [details]
valgrind callgrind readout

Not sure if this helps but I've attached a valgrind --tool=callgrind. My build is set to release mode unfortunately.
Comment 2 Aaron J. Seigo 2009-06-29 19:22:23 UTC
SVN commit 989185 by aseigo:

be careful not to incur multiple signal/lot connections. please test to see if this solves the "creeping cpu usage problem"
CCBUG:198315


 M  +21 -11    taskgroupitem.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=989185
Comment 3 Simon St James 2009-06-29 20:44:35 UTC
A patched patch is available in:

http://websvn.kde.org/?view=rev&revision=989218
Comment 4 Sean Wilson 2009-06-30 01:01:07 UTC
I've just compiled kdelibs and kdebase from trunk and it seems to be better. However, it's still showing 1-2% CPU usage for the Task Manager from top in konsole. When I remove Task Manager it goes to 0%, so still something there.

Just to add, switching plasma themes seems to make it worse, maybe something different but I thought I'd add mention that.
Comment 5 Aaron J. Seigo 2009-06-30 06:04:44 UTC
SVN commit 989347 by aseigo:

rest of the fixes for climbing cpu usage: duplicate timers. my plasma is now dead silent after many hours of usage. :) please test, however, to confirm.
BUG:198315


 M  +50 -29    abstracttaskitem.cpp  
 M  +4 -11     abstracttaskitem.h  
 M  +33 -23    taskgroupitem.cpp  
 M  +2 -2      taskgroupitem.h  
 M  +2 -2      tasks.cpp  
 M  +1 -1      tasks.h  
 M  +4 -3      windowtaskitem.cpp  
 M  +1 -1      windowtaskitem.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=989347