On my desktop Xorg leaks a lot of memory. I use to let this machine on for days (weeks, months ...), but about once a week I'm forced to restart xorg, because it is taking too much memory.
Am I the only one affected by this issue? Why does this is happen?
Is it xorg to be bugged, or is it something else (maybe some xorg modules)?
Can I do anything to avoid it?
Some more infos:
I'm on ArchLinux, kernel 2.6.36, nvidia drivers 260.19.36, gnome 2.32.1.
Anyway I've got this issue from a lot of time, like more than one year.
Here is how the Xorg process is shown by top after about 9 days of uptime...
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1591 root 20 0 278m 229m 9364 S 2 11.8 244:38.73 Xorg
I've got only a few open windows. 229MB of resident memory looks like a lot to me (and it will keep growing with time). As soon as I reboot Xorg I'll also add process stats at the beginning of its life.
Here is as soon as my Gnome desktop gets up:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1573 root 20 0 89508 43m 11m S 1 2.2 0:03.53 Xorg
Xorg
takes a lot of memory (like 300m) even if I close all X11 applications (but Gnome ones). – peoro Jan 27 '11 at 16:16xrestop
may be helpful. – ninjalj Mar 06 '11 at 14:10xrestop
. Will attach its output as soon as Xorg starts getting heavy. – peoro Mar 11 '11 at 13:21