Xorg memory leak on 14.04

Bug #1354350 reported by Yosha872
132
This bug affects 25 people
Affects Status Importance Assigned to Milestone
fglrx
New
Undecided
Unassigned
fglrx-installer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Same kind of issue as : "Xorg memory leak on trusty" https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1272338

After browsing a lot (Firefox 31, Opera 12), after more than 10 hours Xorg uses over 1 GB (some times up to 2 GB). I have 8 GB RAM.
It seems to me that the system monitor increase the memory leak.

I'm on Linux Mint 17 (64 bits Cinnamon).
APU AMD Athlon 5350 (+ driver AMD Catalyst 14.4).

top - 12:44:32 up 19:08, 2 users, load average: 1,04, 1,21, 1,30
Tasks: 178 total, 1 running, 177 sleeping, 0 stopped, 0 zombie
%Cpu(s): 22,2 us, 3,7 sy, 0,0 ni, 73,3 id, 0,6 wa, 0,2 hi, 0,0 si, 0,0 st
KiB Mem: 7528392 total, 7139440 used, 388952 free, 368300 buffers
KiB Swap: 9963572 total, 252560 used, 9711012 free. 1592828 cached Mem

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 4646 batman 20 0 2720,8m 212,7m 6,5m S 35,4 2,9 354:46.81 java
 1447 root 20 0 3757,3m 3,305g 140,1m S 24,2 46,0 221:35.96 Xorg
 4534 batman 20 0 520,9m 23,2m 9,7m S 9,9 0,3 96:48.76 gnome-system-mo
 3460 batman 20 0 605,9m 16,2m 7,4m S 6,3 0,2 2:50.10 gnome-terminal
 2897 batman 20 0 1827,5m 186,4m 43,1m S 5,6 2,5 66:31.93 cinnamon

My current system is:
X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-37-generic x86_64 Ubuntu

lsb_release -rd
Description: Linux Mint 17 Qiana
Release: 17

Revision history for this message
Yosha872 (yosha) wrote :

By the 'system monitor' I mean the software (v3.6.0) that shows graphs about CPU and memory.

Revision history for this message
Chris Wilson (ickle) wrote :

Use xrestop to see how much memory X is using on behalf of its clients.

affects: xserver-xorg-video-intel (Ubuntu) → fglrx-installer (Ubuntu)
Revision history for this message
Yosha872 (yosha) wrote :
Download full text (5.1 KiB)

Hello. After 8 hours running, Xorg is 1,9 GB.

xrestop - Display: localhost
          Monitoring 41 clients. XErrors: 0
          Pixmaps: 45400K total, Other: 109K total, All: 45510K total

res-base Wins GCs Fnts Pxms Misc Pxm mem Other Total PID Identifier
1400000 37 3 1 11 1696 23906K 41K 23947K 3005 cinnamon
2a00000 48 84 1 158 459 10757K 14K 10772K 3596 Firefox
0000000 2 0 2 0 88 4850K 4K 4855K ? <unknown>
2000000 10 3 1 4 123 1792K 4K 1796K 3355 Terminal
2200000 0 0 0 1 0 1280K 0B 1280K ? <unknown>
5600000 5 2 0 7 52 792K 1K 793K 24293 Moniteur système
1a00000 18 3 1 13 200 593K 6K 599K 3027 OOFFF
1c00000 20 93 1 75 50 515K 4K 519K 3058 LibreOffice 4.2
2600000 8 63 1 5 29 393K 3K 396K 3476 mintUpdate.py
4c00000 11 57 1 2 16 384K 2K 386K 5626 opera
6000000 1 32 0 17 9 32K 1008B 32K ? <unknown>
4400000 3 3 0 2 11 32K 408B 32K 4657 kglobalaccel
4200000 3 3 0 2 11 32K 408B 32K 5692 kuiserver
3e00000 3 3 0 2 11 32K 408B 32K 4653 kded4
2800000 15 7 1 2 18 9K 1K 10K 5626 Opera
0e00000 4 1 0 0 305 0B 7K 7K 2720 cinnamon-settings-daemon
4a00000 7 58 1 2 12 12B 2K 2K 5692 kuiserver
4600000 7 58 1 2 12 12B 2K 2K 4657 kglobalaccel
4000000 7 58 1 2 12 12B 2K 2K 4653 kdeinit4: kded4 [kdeinit]
1800000 3 3 1 0 30 8B 1K 1K 3032 polkit-gnome-authentication-agent-1
0400000 0 1 1 0 0 0B 1K 1K ? <unknown>
2400000 4 2 0 0 22 4B 672B 676B 3472 cinnamon-screensaver
1e00000 5 1 0 0 18 0B 576B 576B 3028 Applet NetworkManager
5c00000 9 1 0 0 4 0B 336B 336B 9791
0800000 2 1 0 0 11 0B 336B 336B 2444 cinnamon-session
3000000 2 2 0 0 8 4B 288B 292B 12232 plugin-container
5a00000 1 8 0 1 3 0B 288B 288B ? <unknown>
2e00000 2 1 0 0 9 0B 288B 288B 4256 Service de système de fichiers RECENT
1200000 2 1 0 0 9 0B 288B 288B 2979 cinnamon-launcher
5e00000 6 1 0 0 0 0B 168B 168B 9821

top - 08:48:26 up 22:02, 3 users, load average: 2,64, 3,30, 3,16
Tasks: 184 total, 3 running, 181 sleeping, 0 stopped, 0 zombie
%Cpu(s): 15,6 us, 2,5 sy, 0,0 ni, 80,8 id, 1,0 wa, 0,2 hi, 0,0 si, 0,0 st
KiB Mem: 7528392 total, 7123136 used, 405256 free, 1425136 buffers
KiB Swap: 3906452 total, 17928 used, 3888524 free. 1838676 cached Mem

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 3596 icecube 20 0 1...

Read more...

Revision history for this message
Yosha872 (yosha) wrote :
Download full text (6.4 KiB)

Second logs after 2 days uptime:

top - 15:37:07 up 2 days, 20:00, 3 users, load average: 0,76, 1,83, 1,90
Tasks: 196 total, 1 running, 195 sleeping, 0 stopped, 0 zombie
%Cpu(s): 18,4 us, 6,0 sy, 0,0 ni, 73,8 id, 1,8 wa, 0,1 hi, 0,0 si, 0,0 st
KiB Mem: 7528392 total, 6672812 used, 855580 free, 462568 buffers
KiB Swap: 3906452 total, 10520 used, 3895932 free. 2293540 cached Mem

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 1523 root 20 0 998780 626936 208424 S 10,9 8,3 161:31.83 Xorg
28620 icecube 20 0 1799716 590452 57368 S 22,2 7,8 521:58.54 firefox
 6661 icecube 20 0 4533076 426388 34628 S 5,7 19:20.66 java
 2521 icecube 20 0 1772484 317448 57476 S 6,0 4,2 178:09.50 cinnamon
 2389 icecube 20 0 4542420 293884 20076 S 1,3 3,9 6:24.47 java
 3294 icecube 20 0 2782540 241656 13636 S 13,6 3,2 1375:24 java
 4154 icecube 20 0 584728 178628 22760 S 2,4 9:29.12 opera
28677 icecube 20 0 1048756 147272 32532 S 5,3 2,0 123:33.98 plugin-containe
 4186 icecube 20 0 2705756 131676 13196 S 12,6 1,7 578:21.34 xxxxxx.exe
 2576 icecube 20 0 1598228 127128 52416 S 1,7 2:49.94 soffice.bin
 2531 icecube 20 0 1596936 121168 27492 S 1,6 10:48.25 nemo
29524 icecube 20 0 601876 50592 35748 S 0,7 0:14.18 krusader
 3027 icecube 20 0 671552 44728 20584 S 0,6 0:15.77 mintUpdate
 3023 icecube 20 0 439908 37232 15796 S 0,5 8:47.50 cinnamon-screen
28014 icecube 20 0 2671356 32180 10580 S 0,7 0,4 5:30.99 notepad++.exe
 2233 icecube 20 0 970380 23764 15748 S 0,3 1:26.19 cinnamon-settin
 4170 icecube 20 0 408676 22604 16220 S 0,3 0:01.62 kglobalaccel
 4318 icecube 20 0 385960 22436 16356 S 0,3 0:01.73 kuiserver
 4159 icecube 20 0 381296 22328 15580 S 0,3 0:03.07 kded4
 2832 icecube 20 0 620588 22240 12980 S 6,0 0,3 6:55.99 gnome-terminal
 2538 icecube 20 0 467764 20724 13032 S 0,3 0:01.54 polkit-gnome-au
 2495 icecube 20 0 251992 18644 9480 S...

Read more...

Revision history for this message
Pekka Kola (pekka-kola-m) wrote :

I guess this is the same bug I've reported (Bug #1314787)

Revision history for this message
Federico Tello Gentile (federicotg) wrote :

I had the problem with Ubuntu´s catalyst version, but it seems to be fixed with Catalyst 14.9.

Revision history for this message
Will Lucas (mevatron) wrote :

I also was having this problem. As mentioned by @federicotg, I upgraded to the AMD Catalyst 14.9 driver, and I have been running Ubuntu for about 6 days 24/7 with no leaks (at least not noticeable anyway). Xorg stays around 250MB of usage on average for me now.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fglrx-installer (Ubuntu):
status: New → Confirmed
Revision history for this message
yehonal (hw-2) wrote :

i've the same problem on 14.04.1. Xorg eats lot of RAM after few hours...is there any fix?

Revision history for this message
Brian Trotter (brian-trotter) wrote :

Reverting from the fglrx (proprietary) driver to the xserver-xorg-video-ati (open source, tested) driver solved the problem for me.

Revision history for this message
David (bigdaveberg) wrote :

Can confirm the bug still exists, causing massive memory leaks for me as well.

Revision history for this message
bmaupin (bmaupin) wrote :

Same problem with Xubuntu 14.04.3. I switched back to the xserver-xorg-video-ati driver to see if it fixes the problem.

This was while I was still using fglrx:

$ ps aux | grep /usr/bin/X
root 1470 0.7 24.3 4415808 1973744 tty7 Ss+ Sep04 65:07 /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
$ uname -a
Linux bmaupi-xubuntu 3.16.0-48-generic #64~14.04.1-Ubuntu SMP Thu Aug 20 23:03:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ uptime
 09:41:21 up 5 days, 16:04, 8 users, load average: 0.45, 0.67, 0.71
$ dpkg -s fglrx
Package: fglrx
Status: install ok installed
Priority: extra
Section: restricted/misc
Installed-Size: 163590
Maintainer: Ubuntu Core Developers <email address hidden>
Architecture: amd64
Source: fglrx-installer
Version: 2:15.200-0ubuntu0.5
$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon(TM) HD8490
OpenGL version string: 4.4.13374 Compatibility Profile Context 13.35.1005

Revision history for this message
bmaupin (bmaupin) wrote :

After switching back to xserver-xorg-video-ati, X is using much less memory:

$ ps aux | grep /usr/bin/X
root 1708 0.6 1.9 509828 154948 tty7 Ssl+ Sep11 60:43 /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
$ uptime
 15:33:09 up 6 days, 22:33, 8 users, load average: 2.47, 1.42, 0.86

Revision history for this message
awe_cz (martin-nedbal) wrote :

I have exactly the same problem:

# uname -a
Linux awe 3.19.0-30-generic #33~14.04.1-Ubuntu SMP Tue Sep 22 09:27:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

# uptime
 18:14:25 up 3 days, 5:10, 5 users, load average: 0.44, 1.66, 3.07

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"

# ps aux|grep /X
root 8509 9.8 27.3 4607200 4248288 tty7 Ss+ Oct01 140:38 /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

# fglrxinfo
display: :0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 7560D
OpenGL version string: 4.4.13374 Compatibility Profile Context 15.20.1013

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.