FS#5396 - Xorg leaking memory

Attached to Project: Arch Linux
Opened by Erwin Van de Velde (evdvelde) - Wednesday, 13 September 2006, 12:40 GMT
Last edited by Tobias Powalowski (tpowa) - Thursday, 14 September 2006, 10:34 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Jan de Groot (JGC)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When running e.g. gnuplot and having a plotted graph on screen, the memory usage of X increases enormously (order of 10 MB/min). The X memory footprint was 700MB real memory, 1.4GB virtual memory after less than four hours (not constantly using gnuplot).

How to reproduce this?
Start gnuplot
> f(x)=x
> plot f(x)

and watch the memory usage of X (not gnuplot!) grow.

Using ati driver of Xorg, following Xorg:
xorg 11R7.0-1
xorg-apps 1.0.2-2
xorg-font-utils 1.0.1-1
xorg-fonts-alias 1.0.1-1
xorg-fonts-encodings 1.0.0-2
xorg-fonts-misc 1.0.0-3
xorg-server 1.1.1-2
xorg-server-utils 1.0.2-2
xorg-utils 1.0.1-1
xorg-xauth 1.0.1-1
xorg-xfs 1.0.2-1
xorg-xinit 1.0.2-2
xorg-xkb-utils 1.0.2-1

This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 03 April 2007, 11:17 GMT
Reason for closing:  Won't fix
Additional comments about closing:  possible upstream bug in Xorg. due to the new verions i close it here.
Comment by Jan de Groot (JGC) - Saturday, 16 September 2006, 08:32 GMT
This could also be caused by gnuplot itself: X allows programs to allocate serverside pixmaps, which causes X to eat more memory. If a program just allocates new pixmaps all the time, but never frees them, they remain mapped in the X server, causing it to grow over time.
Comment by Erwin Van de Velde (evdvelde) - Saturday, 16 September 2006, 12:53 GMT
It is not an error in gnuplot as I tested it on:
FreeBSD 6.1, Xorg 6.9, gnuplot 4 patchlevel 0
Gentoo, Xorg 7.0, gnuplot 4 patchlevel 0

Both do not show this behavior.
Comment by Vesa Kaihlavirta (vegai) - Sunday, 15 October 2006, 12:04 GMT
I don't see this:

(before gnuplot)

$ ps aux|grep X|grep root

root 3189 0.7 2.9 28288 15308 tty2 SLs+ 09:53 2:12 X :0 -auth /home/vegai/.serverauth.3172


(after plotting)
$ ps aux|grep X |grep root
root 3189 0.7 3.1 29448 16468 tty2 SLs+ 09:53 2:12 X :0 -auth /home/vegai/.serverauth.3172


(closed the plot window)
$ ps aux|grep X |grep root
root 3189 0.7 2.9 28288 15308 tty2 SLs+ 09:53 2:13 X :0 -auth /home/vegai/.serverauth.3172


So, all the memory was seemingly released. Xrestop reports similarily:

Pixmaps: 8009K (before plot)
9167K (during plot)
8009K (after closing)

Loading...