[Bug 777527] New: huge memory consumption of X server
https://bugzilla.novell.com/show_bug.cgi?id=777527 https://bugzilla.novell.com/show_bug.cgi?id=777527#c0 Summary: huge memory consumption of X server Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: bnc-team-xorg-bugs@forge.provo.novell.com ReportedBy: mpapis@gmail.com QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1 In 9 days X got to use 3,5 GB of RAM, this is to much, and this situation repeats, I guess hass to be some kind o memory leak, is there anything I can do to debug it? details: $ ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND ... root 1232 14.0 34.0 3723976 3482176 tty7 Rs+ Aug18 1940:28 /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch ... $ free -m total used free shared buffers cached Mem: 9997 9596 401 0 163 2534 -/+ buffers/cache: 6898 3098 Swap: 32773 547 32226 $ uptime 19:25pm up 9 days 13:32, 9 users, load average: 0.65, 0.42, 0.35 Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c1
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c2
--- Comment #2 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c3
--- Comment #3 from Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c4
--- Comment #4 from Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c5
Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c6
--- Comment #6 from Stefan Dirsch
Pixmaps: 115715K total, Other: 2133K total, All: 117848K total
Hmm. Looks like server side pixmap usage is not the culprit here. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c7
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c8
Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c9
--- Comment #9 from Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c10
--- Comment #10 from Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c11
Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c12
Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c13
Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c14
Guido Berhörster
settings: Appearance => Style => Adawita Window Manager => Style => Gilouche
is it enough?
Yes, I was asking because there is a bug in older versions of gtk-xfce-engine which caused such memory leaks, but if you use Adwaita that can't be it. I'm also using cpugraph with the Adwaita gtk theme on 12.2, I currently have an uptime of 27 days and it only takes about 8MB of RSS, however there is another report of memory leaks on the Xfce tracker (https://bugzilla.xfce.org/show_bug.cgi?id=9691). Can you please post your configuration (should be in ~/.config/xfce4/panel/cpugraph-*.rc) so I can try to reproduce this? Otherwise you'd have to run the panel in debugging mode with valgrind so we can see where it's leaking memory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c15
Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c16
--- Comment #16 from Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c17
--- Comment #17 from Guido Berhörster
Created an attachment (id=530063) --> (http://bugzilla.novell.com/attachment.cgi?id=530063) [details] cpugraph-7.rc
Recently I switched from Adwaita to Clearlooks because of notification color issues and the memory of cpugraph stopped growing at around 55MB, maybe the issue is related to number of displayed cores - I have 8.
I can reproduce this now on 12.3, it grows about 4KB every 3s or so. I've generated some valgrind logs and put them on the upstream bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c18
--- Comment #18 from Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c19
--- Comment #19 from Guido Berhörster
extra apps that consumed memory with Adwaita:
- xfce4-panel - 600MB - libsystemload - 220MB - libdatetime - 150MB - xfce4-terminal - 830MB - xchat - 280MB (vs. 30 on Clearlooks) - firfox - 1090MB (vs 640 on Clearloks) - freeciv - 620MB (vs 160 ... although that might be java+time)
that's those that stand out.
That seems strange, cpugraph is certainly leaking memory but I don't see the above, what are you measuring anyway? Can you get smem from http://www.selenic.com/smem/ and attach the output of "smem -t- -k" here? That should give a halfway realistic estimate of private memory usage of processes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c20
--- Comment #20 from Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c21
--- Comment #21 from Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c22
--- Comment #22 from Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c23
--- Comment #23 from Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c24
--- Comment #24 from Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c25
--- Comment #25 from Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c26
--- Comment #26 from Guido Berhörster
I'm sorry but it's one of two bugs that break Adwaita for me https://bugzilla.novell.com/show_bug.cgi?id=809766 together they make system unusable and do not allow me to do my work.
I feel I did my duty by reporting and initially investigating it, it's confirmed it is happening, my suspicion is there is a bug in handling bitmap backgrounds, fixing it should solve it everywhere? if not - then there is
So far I can only confirm leaks in the cpugraph and netload panel plugins, valgrind shows that the leak is in cairo drawing code which the plugins do not directly use, so it might be at the toolkit or theming engine level but that's not clear yet with the current information we have. I cannot reproduce any unusual memory usage with xfce4-terminal or xfce4-panel itself. Also note that the Adwaita GTK2 theme has changed significantly between openSUSE 12.2 where it was basically a fork of Clearlooks to a pixmap-based theme in 12.3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c27
--- Comment #27 from Michal Papis
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c28
--- Comment #28 from Guido Berhörster
I can switch to Adwaita and test more after the two bugs get fixed: blinking and the leak in cairo drawing code.
That is not so clear yet, hence additional data might help to identify where this is coming from. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777527
https://bugzilla.novell.com/show_bug.cgi?id=777527#c29
--- Comment #29 from Michal Papis
participants (1)
-
bugzilla_noreply@novell.com