I've read this question but it doesn't seem to be the same issue, as the memory leak there is an order of magnitude smaller than mine and seems to be caused by Nvidia drivers.. Here's my top
output at the moment:
top - 03:51:03 up 7 days, 11:09, 11 users, load average: 0.76, 0.62, 0.64
Tasks: 257 total, 2 running, 255 sleeping, 0 stopped, 0 zombie
...
MiB Mem: 7967.691 total, 7733.668 used, 234.023 free, 126.688 buffers
MiB Swap: 8171.996 total, 602.707 used, 7569.289 free. 917.934 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1137 root 20 0 3408440 2.621g 526784 S 3.6 33.7 505:06.61 Xorg
After about a week of uptime, xorg eats up 2.5g of memory, things start getting pushed on to swap, and I have to restart as the machine gradually becomes unusable. I've checked the output of xrestop
and it doesn't account for all of the memory used -- adding up everything there comes out to about 300m, which I'd be happy to put up with.
I'm using Xubuntu 14.04 "trusty," with xmonad
on top of xfce4
. I have an AMD video card so I use fglrx
. Shutting down everything I have open doesn't reduce xorg
's memory usage. On startup, it takes up only a few megabytes.
Restarting is a hassle -- what can I do to reduce xorg
's memory usage?