[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 <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED AssignedTo|bnc-team-xorg-bugs@forge.pr |xorg-maintainer-bugs@forge. |ovo.novell.com |provo.novell.com -- 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#c1 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |mpapis@gmail.com --- Comment #1 from Stefan Dirsch <sndirsch@suse.com> 2012-08-28 09:26:59 UTC --- Which desktop is in use? Which apps are still running? -- 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#c2 --- Comment #2 from Stefan Dirsch <sndirsch@suse.com> 2012-08-28 09:31:46 UTC --- The output of xrestop will be required as well. -- 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#c3 --- Comment #3 from Michal Papis <mpapis@gmail.com> 2012-08-28 09:39:36 UTC --- Created an attachment (id=503673) --> (http://bugzilla.novell.com/attachment.cgi?id=503673) all the running commands: ps auxf -- 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#c4 --- Comment #4 from Michal Papis <mpapis@gmail.com> 2012-08-28 09:45:58 UTC --- Created an attachment (id=503675) --> (http://bugzilla.novell.com/attachment.cgi?id=503675) xrestop -- 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#c5 Michal Papis <mpapis@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|mpapis@gmail.com | --- Comment #5 from Michal Papis <mpapis@gmail.com> 2012-08-28 09:46:37 UTC --- I use XFCE -- 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#c6 --- Comment #6 from Stefan Dirsch <sndirsch@suse.com> 2012-08-28 10:17:52 UTC ---
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 <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |mpapis@gmail.com --- Comment #7 from Stefan Dirsch <sndirsch@suse.com> 2012-08-28 10:20:56 UTC --- So terminating the desktop (which is supposed to restart the Xserver, if the DM does it correctly; not sure about lightdm here) does resolve the issue? -- 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#c8 Michal Papis <mpapis@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|mpapis@gmail.com | --- Comment #8 from Michal Papis <mpapis@gmail.com> 2012-08-28 14:42:38 UTC --- after logout I get free -m => used 270MB before login, after it is 1GB, in some minutes 1,5GB and later 1,7GB from which X is 190MB - so restart clears it - but it's temporary solution, I do not want to restart every few days! -- 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#c9 --- Comment #9 from Michal Papis <mpapis@gmail.com> 2012-09-06 17:08:41 UTC --- Hitting almost 2GB in 2 days, the repeating tasks is multiple vms in VirtualBox and slow geany(separate 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#c10 --- Comment #10 from Michal Papis <mpapis@gmail.com> 2012-09-09 09:58:51 UTC --- it's 5day now and 2.9GB, did stopped all vms and removed vbox* modules from kernel, this did not change X server memory usage at all. X server is over half of total memory reported by `ps aux`: $ ps aux | awk -v x=0 '{x+=$6} END{print x}' 5708960 $ ps aux | awk '/\/usr\/bin\/X/ {print $6}' 2971044 other suspicious application behavior could be very slow geany and I need to close it from time to time because it also slows other apps (Xchat), maybe it's making X server leak memory somehow? geany itself does not use much memory itself, but its slowness is related strictly to displaying it - as when minimized it stops using CPU. also I have a bit over 1GB of unreported memory difference between `free -m` and `ps aux` RSS column sum - but I will report separate issue for it. -- 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#c11 Michal Papis <mpapis@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|X.Org |Xfce AssignedTo|xorg-maintainer-bugs@forge. |bnc-team-xfce@forge.provo.n |provo.novell.com |ovell.com Product|openSUSE 12.2 |openSUSE 12.3 QAContact|xorg-maintainer-bugs@forge. |qa-bugs@suse.de |provo.novell.com | --- Comment #11 from Michal Papis <mpapis@gmail.com> 2013-03-15 04:10:45 UTC --- after updating to OpenSUSE 12.3 it finally shows where the memory goes: cpugraph /usr/lib/xfce4/panel/wrapper /usr/lib64/xfce4/panel/plugins/libcpugraph.so 9 27263012 cpugraph CPU Graph It takes now 2.8 GB in 4 days. -- 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#c12 Guido Berhörster <gber@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |mpapis@gmail.com --- Comment #12 from Guido Berhörster <gber@opensuse.org> 2013-03-15 06:55:35 UTC --- I also use cpugraph on 12.2 but I don't see a memory leak, what theme and theme engine are you using? -- 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#c13 Michal Papis <mpapis@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|mpapis@gmail.com | --- Comment #13 from Michal Papis <mpapis@gmail.com> 2013-03-15 07:33:07 UTC --- settings: Appearance => Style => Adawita Window Manager => Style => Gilouche is it enough? -- 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#c14 Guido Berhörster <gber@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |mpapis@gmail.com See Also| |https://bugzilla.xfce.org/s | |how_bug.cgi?id=9691 --- Comment #14 from Guido Berhörster <gber@opensuse.org> 2013-03-17 09:47:09 UTC --- (In reply to comment #13)
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 <mpapis@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|mpapis@gmail.com | --- Comment #15 from Michal Papis <mpapis@gmail.com> 2013-03-17 10:07:54 UTC --- Created an attachment (id=530063) --> (http://bugzilla.novell.com/attachment.cgi?id=530063) 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. -- 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#c16 --- Comment #16 from Michal Papis <mpapis@gmail.com> 2013-03-17 10:09:31 UTC --- sorry at 550MB -- 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#c17 --- Comment #17 from Guido Berhörster <gber@opensuse.org> 2013-03-17 13:35:31 UTC --- (In reply to comment #15)
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 <mpapis@gmail.com> 2013-03-18 18:56:11 UTC --- 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. -- 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#c19 --- Comment #19 from Guido Berhörster <gber@opensuse.org> 2013-03-18 20:42:00 UTC --- (In reply to comment #18)
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 <mpapis@gmail.com> 2013-03-19 15:21:15 UTC --- I will give it some time to run -- 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#c21 --- Comment #21 from Michal Papis <mpapis@gmail.com> 2013-03-19 18:30:39 UTC --- Created an attachment (id=530469) --> (http://bugzilla.novell.com/attachment.cgi?id=530469) smem-clearlooks.log -- 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#c22 --- Comment #22 from Michal Papis <mpapis@gmail.com> 2013-03-19 18:31:20 UTC --- Created an attachment (id=530470) --> (http://bugzilla.novell.com/attachment.cgi?id=530470) smem-adwaita.log -- 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#c23 --- Comment #23 from Michal Papis <mpapis@gmail.com> 2013-03-19 18:35:49 UTC --- it's been 3 hours and few minutes: xfce4-terminal 20.2M -> 114.0M xfce4-panel 36.2M -> 62.5M xchat 35.0M -> 40.6M firefox 637.8M -> 740.1M all of them were keeping low before for almost 10 hours + previous days using Clearlooks -- 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#c24 --- Comment #24 from Guido Berhörster <gber@opensuse.org> 2013-03-21 08:22:58 UTC --- You cannot directly compare smem output like that, what you can do is to look for unusually high memory consumption of a process that keeps growing, ie. indicators for a memory leak, and then investigate that particular process further with valgrind. In order to do that you first need to install all required debug symbols. The easiest way is by running the application once in gdb which will give you a neat list of zypper commands. Run the following for xfce4-terminal which stands out in your list above: gdb -ex 'set logging on' -ex 'run' -ex 'quit' /usr/bin/xfce4-terminal Then quit xfce4-terminal and you should have the a gdb log file gdb.txt. Next, run the following in order to install all required debuginfo packages (make sure the openSUSE Debug repos are enabled): awk '/^Try: zypper/ { $1 = "sudo"; print }' gdb.txt | sh After that you can run the application in valgrind as follows: G_SLICE=always-malloc G_DEBUG=gc-friendly,resident-modules valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 --log-file=valgrind-xfce4-terminal.log /usr/bin/xfce4-terminal Now use the application for a long enough time until memory usage has grown significantly, then quit it and you have a log file valgrind-xfce4-terminal.log which shows potential leaks. You can use the same procedure for other applications such as xchat, xfce4-panel or some other GTK2 application showing this problem, though firefox is probably not worth it. Attach the valgrind logs here, maybe we can get some hint from them. -- 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#c25 --- Comment #25 from Michal Papis <mpapis@gmail.com> 2013-03-21 08:49:08 UTC --- 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 another problem of duplicating code for all applications. -- 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#c26 --- Comment #26 from Guido Berhörster <gber@opensuse.org> 2013-03-21 09:21:00 UTC --- (In reply to comment #25)
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 <mpapis@gmail.com> 2013-03-21 09:35:35 UTC --- I can switch to Adwaita and test more after the two bugs get fixed: blinking and the leak in cairo drawing code. After that I will open new bugs if there are still any more issues. I also think the detected problem is no related to initial issue (which seams to be fixed) it only happens to have very similar symptoms (memory consumption). -- 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#c28 --- Comment #28 from Guido Berhörster <gber@opensuse.org> 2013-03-21 11:30:08 UTC --- (In reply to comment #27)
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 <mpapis@gmail.com> 2013-03-21 11:55:40 UTC --- sorry I'm buried deep down into release process of my own soft (https://github.com/wayneeseguin/rvm/issues?milestone=20&page=1&state=open) I can help testing more when I get more free time, but there are already other projects queued. (with Clearlooks I do not have problems so I can focus on work) -- 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.
participants (1)
-
bugzilla_noreply@novell.com