Registered Member
|
i"m using pclinuxos KDE 4.9.5, but I've been experiencing this issue since 4.6.5 though. I have ATI Wrestler HDMI Audio [Radeon HD 6250/6310] , My other PC had a integrated Intel graphics card and I still experienced the same thing. X would just increase in ram and cpu usage, slowing down my PC to the point where I'd have to reboot every 2 or 3 days.
I'd like a fix for this and I'd settle for a different desktop configuration if that will help me steer clear of this memory leak. I don't use desktop effects at all. I used xrestop and realized plasma-desktop was the issue.
I ran
valgrind --tool=memcheck -v --leak-check=full plasma-desktop output:
3/9/13 Update i was told in #kde that animated tray icons for non-kde native apps can have pixmaps issues so I disabled xchat & Opera. I rebooted and launched xrestop and htop for monitorign purposes. I'm writing this post 2hr36mins into my uptime. xrestop output:
My performance is better but X still spikes intermittently. I have no idea whats still causing the xerrors.. Dropbox is the only non-native KDE app I have in the sys-tray.
All answers are all replies, but not all replies are answers.
|
Administrator
|
Unusual for both a Intel graphics and ATI graphics based machine to be affected by a issue such as this one.
Does restarting KWin or Plasma Desktop alleviate the CPU usage? It looks to me like KWin is possibly leaking pixmaps, and that you may have some form of unaccelerated animation or video being run....
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Unfortunately I spoke too soon. X still spikes in cpu usage every 2-3 seconds but it isn't as bad as before when the process just remained high.. I also noticed that after two reboots that X hasn't exceeded 340MB of VIRT mem, it use to go as high as 1000MB. The Misc in plasma-desltop isn't as high as before. I think Kwin is causing the problems I'm experiencing. Quiting plasma-desktopp doesnt seem to alleviate X cpu usage. it keeps jumping from 8% to 30&%, sometimes as high as %70 .
This xrestop output is taken after 23 hours of uptime.
All answers are all replies, but not all replies are answers.
|
Administrator
|
Does restarting KWin alleviate the performance issues, even temporarily?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I ran
All answers are all replies, but not all replies are answers.
|
Administrator
|
Unusual. This would suggest another application being the cause of the issue, or a bug in Mesa/X11 causing it.
At the very least, does it fix the shown memory usage allocations in xrestop? Considering that xrestop blames KWin/Plasma for high memory usage, I would suspect a bug in X11/Mesa here.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
yes the total allocation memory is reduced when I run those commands but not by much just 10000K. Kwin though shows 23219K after running the --replace command. My uptime is 3 days 13 hours at the moment and xrestop reports 16867 Xerrors. Is there any other way i can identify whats causing the bug in X11/Mesa ?
All answers are all replies, but not all replies are answers.
|
Registered Member
|
Hi.
What web browser you are using? |
Registered Member
|
I use Opera from boot to shutdown for browsing and it's rss feed reader which updates every 15min-60min. I also use chromium but I don't always have it running and haven't used Firefox in 5 months.
Edit: Update I decided to look into the video drivers being used for my video card. First I ran
The video driver being used was HD Radeon 2000 or later (radeon/fglrx). I switched it to HD Radeon 2000 or later (radeonhd/fglrx) and upon further reading on http://www.x.org/wiki/radeonhd, I learned that it supports radeon supports tear-free video playback. I couldn't' find any specific info on high X cpu usage. I've had playback issues due to one cpu core being hogged by X, especially with 720p video. I'm going to reboot and see how it performs after 2-5 hours. Edit: Update #2 Upon rebooting, I was welcomed with a frozen mouse and keyboard. I rebooted four times and even unchecked the setting for translucency(composite) with the outcome. I reverted back to my old driver settings.
All answers are all replies, but not all replies are answers.
|
Registered Member
|
I asked because i used to have memory leak in xorg somehow tirggered by konqueror. Don't ask me how.
|
Administrator
|
Unfortunately i'm not sure what can be done regarding X memory leaks and performance degradation in this instance.
Switching to the open source drivers from the proprietary AMD is probably undesirable as well (due to the better performance and thermal management offered by the proprietary driver). You may want to ask your distribution about this.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
In case it helps at all, I posted a bug a few months back (https://bugs.kde.org/show_bug.cgi?id=313803) relating to a pixmap leak in plasma-desktop caused by VMWare that caused an eventual system slowdown. I was able to temporarily get things working again without logging out by using:
(The last portion, starting with "&& killall", inclusive, was necessary because there was previously another KDE bug that caused missing icon slots in the System Tray widget if you didn't do that). Thanks to this topic, I was just able to figure out that the VMWare tray icon was the cause of my problems (thank you very much, this was driving me crazy needing to do this every day or so!)... not sure if the bug info is at all helpful, but just wanted to mention it in case there's any relation (and in case anybody comes up with a really good way to diagnose these sort of things in this thread, as I have yet to find a good method for doing so). |
Administrator
|
Do you know if the VMWare tray icon uses the newer or older specification?
If it uses the new specification it will probably glow when hovered over, and the tooltip will be a native Plasma Desktop tooltip. With the older specification, the icon will probably not change, and the tooltip is likely to be a default application tooltip or VMWare specific. In any instance, it may possibly be worth filing a bug report against the Task Manager applet here (a component of "plasma-desktop" on KDE Bugzilla).
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I believe it uses the old specification, as it does not glow (most of my System Tray icons do not glow, actually, though only VMWare seems to cause this apparent pixmap leak). I changed the bug to be the System Tray widget (I don't think it's the task manager, as I'm using Icon Only Task Manager, and the icon there is fine, just the one in the System Tray seems to cause problems.
|
Administrator
|
Ah, yes - I mixed the two names up - System Tray applet is definitely the correct one here.
Thanks for tracing this issue to a specific application - it should make it easier for the developers to debug. If you have a particular version of the VMWare Tools installed, it may be helpful to mention that as well.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]