Bug 102733 - kompmgr make X consume 80+% cpu time
Summary: kompmgr make X consume 80+% cpu time
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 110358 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-29 12:59 UTC by sunmoon1997
Modified: 2006-05-27 21:59 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sunmoon1997 2005-03-29 12:59:24 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages
Compiler:          gcc-3.4.3 
OS:                Linux

1. i'm running xorg-6.8.2 with composite enabled.
2. i enabled translucency/shadows support in kcontrol
3. i leave kde running for a few of hours(about 8 hours).
4. when i go back, kde become unuseable and less responsible, because X comsume the most of cpu time, then i kill the kompmgr process and kompmgr auto-restart itself. now everything become normal. X comsume less then 10% cpu time. kde run smoothly.
Comment 1 Paul Giblock 2005-06-12 18:23:13 UTC
I have the same problem. X will hog my CPU until I finally pkill kompmgr. The system will run fine for another hour or so.  Then the cycle repeats and I must kill kompmgr again.
Comment 2 Paul Giblock 2005-06-12 18:26:46 UTC
I'm sorry, this is my first bug post. I should include additional information.  I run X.Org 6.8.2-r1 on my gentoo 2.6.11-r7 kernel with composite and GLX inabled.  I run nvidia 1.0.7664.  My system is an Athon64 with nVidia 6600GT gfx card.
Comment 3 Jord Swart 2005-06-28 15:38:12 UTC
Dunno, maybe we should post this at the gentoo buglist. Just for completeness sake: I have the same problem, slightly different configuration though.
- kernel 2.6.12-gentoo-r1
- X.org 6.8.2-r2
- nvidia 7664
- KDE 3.4.1

If this is a Gentoo specific bug, please let me know. I already filed it there as bug #97302.
Comment 4 Thomas Lübking 2005-06-28 19:50:50 UTC
not it's probably not gentoo specific
i'd say it's either in X (nvidia, composite, render) or in the fading stuff (tat code seems to be slightly buggy :)
jff: try to disable fading completely and tell me if things improve
Comment 5 Jord Swart 2005-06-28 20:06:27 UTC
I have turned off fading now. Will keep you posted. Personally I had the feeling it had something to do with a lot of opening and closing programs. The other (very related) thing I'm seeing is that X takes up a lot of memory (together with the processor). Looking at the situation with xrestop shows that there is an unknow process taking up a lot of resources (bitmap caching if I recall correctly). Killing kompmgr removes that process as well.
Comment 6 Thomas Lübking 2005-06-28 23:35:42 UTC
the mem hunger /was/ a bug in the fading - it should be fixed in svn trunk
Comment 7 Jord Swart 2005-06-29 04:47:39 UTC
Hi Thomas. Left the machine running for a (short) night. Everything still seems to be working. So I guess you are right. Funny that fading seems to fade away my machine ;-)
Comment 8 Jord Swart 2005-07-02 10:52:30 UTC
OK after some more days I can definitely say that turning off fading has improved the situation. I don't get X to use 100% of a CPU anymore, but it still slows down slowly. After two days, X will run at 20-25% making the system unworkable. A killall kompmgr will fix the situation (I can live with it for the time being though).

As promissed fading is turned off. Transparency and shadows turned on.
Comment 9 Thomas Lübking 2005-07-02 19:18:25 UTC
you can try out recent svn kwin - maybe i (hopefully ;) fixed the CPU hunger of the fades
Comment 10 dierck.hillmann 2005-07-10 18:20:36 UTC
Doesn't seem to be fixed -- alteast for me (SVN of 2005-07-08).
Comment 11 Maksim Orlovich 2005-08-07 19:16:04 UTC
*** Bug 110358 has been marked as a duplicate of this bug. ***
Comment 12 Timo Nentwig 2005-08-07 20:24:21 UTC
So, we have bug reports at freedesktop, gentoo and kde. I think KDE is the right place:

https://bugs.gentoo.org/show_bug.cgi?id=96538
https://bugs.freedesktop.org/show_bug.cgi?id=3581
Comment 13 aaron123456789 2005-09-10 22:32:48 UTC
*** This bug has been confirmed by popular vote. ***
Comment 14 Bearcat M. Sandor 2005-09-25 03:12:53 UTC
Just another voice in the crowd saying "I have the same prob and have seen all the behavior described above"  For the record I am running an AMD-64 3000 with a gig of ram and a nvidia 6600 GT card.

Linux: 2.6.13
Xorg:  6.8.2
kdebase: 3.4.2

I would *love* to see this fixed.
Comment 15 Adam Porter 2006-01-29 05:30:04 UTC
I'm running Debian unstable with nVidia 8178, KDE 3.5, and Xorg 6.8.2.dfsg.1-11.  The other night I discovered that with these nVidia drivers, translucency and shadows seem stable--I've had X crash twice, which I suspect is related, but I'm not sure.  But after leaving the system sitting during the day until I got home, everything was very, very slow: switching apps, loading new apps, and drawing windows.  CPU usage was no more than 10%, memory usage was at less than 70%, and swap usage was minimal.  During the long waits, there was no CPU activity and no disk activity, everything was just very slow.  But after turning translucency/shadows off and back on, everything is moving at normal speed again.  Again, CPU usage as reported by the kernel is at idle levels when this happens, same for memory and swap usage, and disk activity.

If I can help debug this, please let me know.  KDE with X.org has visually surpassed OS X in many ways, it just needs final tuning.
Comment 16 Adam Porter 2006-01-29 05:32:20 UTC
By the way, since this happens on Debian also, maybe the platform should be changed.  Although, since CPU usage is not high when it happens, maybe it's a separate bug?
Comment 17 Ezequiel Pozzo 2006-05-26 13:06:50 UTC
Hi, I have the same problem, I turned off fade to see what happens.

I'm using linux 2.6.12-10 , xorg 2.8.2 and KDE 3.5.2. The distro is Kubuntu breezy.

I see this bug dates from a long time, what is the state of it?

Thanks
Ezequiel
Comment 18 Thomas Lübking 2006-05-26 15:38:29 UTC
as the future's probably on OpenGL through XGl and AIGLX, kompmgr was not intended to be a longtime solution (but just a hack to play with) and the nvidia RenderAccel seems to hate XOrg7.x (so i cannot use it anymore) - consider this concept to be dead for KDE4 
 -so: won't fix :(
Comment 19 Ezequiel Pozzo 2006-05-26 16:05:41 UTC
Ok, then, I'll wait for XGL. Anyway, I added a button with "killall -9 kcompmgr" just in case. An awfull hack, but should work.
Comment 20 Thomas Lübking 2006-05-27 21:59:45 UTC
the clean way would be to call
"dcop kwin default stopKompmgr"
there's somewhere a half usefull kicker applet on kde-apps.org i wrote for this purpose