Bug 285902 - the power management service causes xorg to leak memory
Summary: the power management service causes xorg to leak memory
Status: RESOLVED DUPLICATE of bug 271934
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 4.7
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-06 14:55 UTC by Andrew
Modified: 2011-11-09 22:29 UTC (History)
2 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 Andrew 2011-11-06 14:55:23 UTC
Version:           4.7 (using KDE 4.7.2) 
OS:                Linux

The power management service causes xorg to leak memory. Stopping it fixes the issue.

Reproducible: Always

Steps to Reproduce:
Use any application while having the power management service enabled.

Actual Results:  
Huge memory usage by xorg. 

Expected Results:  
Reasonable memory usage.

Kubuntu 11.10 64 bit on HP 6820s.
$ uname -a
Linux kubuntu 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:27:26 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Comment 1 Lamarque V. Souza 2011-11-06 19:31:06 UTC

*** This bug has been marked as a duplicate of bug 271934 ***
Comment 2 Christoph Feck 2011-11-07 21:26:07 UTC
It is possible this is not really a duplicate, because this one is about xorg, while the duplicate is about kded4 process.
Comment 4 Lamarque V. Souza 2011-11-09 01:22:02 UTC
By the description in the forum it really looks like a duplicate of #271934 and maybe #281509.

#271934 is caused by Policy-qt, which Powerdevil relies on to execute privileged calls. Everytime Powerdevil changes the screen's brightness it executes policy-qt's calls, which leak memory and make kded4 memory usage to grow.

I really do not see how Powerdevil could cause Xorg memory to grow.

I have noticed the knotify4 memory problem long ago, but I have not had time to debug it and have forgotten about it :-)
Comment 5 Andrew 2011-11-09 16:20:44 UTC
I'm not really familiar with KDE architecture enough, but if some KDE libraries get loaded into an address space of xorg, it might cause a leak.
Comment 6 Andrew 2011-11-09 16:22:05 UTC
I also noticed that CPU temp is higher with Power Management enabled than without it.
So it looks like it wastes more power than saves :)
Comment 7 Lamarque V. Souza 2011-11-09 22:29:15 UTC
(In reply to comment #5)
> I'm not really familiar with KDE architecture enough, but if some KDE libraries
> get loaded into an address space of xorg, it might cause a leak.

That is the point, it is very unlikely Powerdevil can access xorg's address space. That would be a great security risk since Xorg run as root.

I think the temperature being higher with Powerdevil running is just an impression. CPU temperature oscilates with any minimum difference in the cpu load.