Xorg memory usage/leak

Bug #787859 reported by robert
54
This bug affects 10 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

For some reason, with nvidia-current (270.41.06) installed, Xorg uses around 600M of ram when just started, with an idle desktop.
No effects or anything enabled.
Also, it seems to leak memory as after some use, its memory use goes up to around 1G, at which point the system gets horribly slow. Still later, when the entire 2G of ram and 6G of swap are used up, the system crashes.
I.e., not really usable.

Now, when i manually install the 270.41.19 driver, this reduces memory use somewhat, with an idle desktop just after starting its down to 80M. But after some time and use (firefox etc open) this easily climbs back to 500M but doesnt seem to leak anymore.

Kubuntu 11.04, 2.6.38-8, x64, 7600GT

Tags: kubuntu
bugbot (bugbot)
tags: added: kubuntu
Revision history for this message
Haggai Eran (haggai-eran) wrote :

I believe I'm also sufferring from this bug. I'm using Ubuntu 11.04, kernel 2.6.38-9 on x86_64. My graphics card is an integrated Nvidia GeForce 6150.
I used google-perftools to do a heap profile, and found out that about 99% of the memory in Xorg's heap was allocated by the function nvidiaAddDrawableHandler. I can attach the heap dumps or the pprof output if anyone is interested.

Revision history for this message
Carlos Correia (carlos-m16e) wrote :

Same problem here, maybe is a Nvidia only problem, since I can not reproduce it on the laptop (Intel graphic card). This happens with *any* application (thunderbird, amarok, firefox...) after a few minutes of work.

$ lscpu
Architecture: i686
CPU op-mode(s): 32-bit, 64-bit
CPU(s): 2
Thread(s) per core: 2
Core(s) per socket: 1
CPU socket(s): 1
Vendor ID: GenuineIntel
CPU family: 15
Model: 4
Stepping: 3
CPU MHz: 2800.000
L1d cache: 16K
L2 cache: 2048K

$ lspci|grep VGA
01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 4000] (rev c1)

Revision history for this message
Justin (deadite81) wrote :

I solved this problem by using the xorg-edgers ppa. Now xorg hovers around 150MB, which is way better than 500MB. The problem is that this is not really a fix, and xorg-edgers comes with it's own host of issues. I've been using it with out issue for a week or so, but with ppas like this that could change any minute...

https://launchpad.net/~xorg-edgers/+archive/ppa

32bit Kubuntu 11.04

GeForce 6150SE nForce 430

$ lscpu
Architecture: i686
CPU op-mode(s): 64-bit
CPU(s): 2
Thread(s) per core: 1
Core(s) per socket: 2
CPU socket(s): 1
Vendor ID: AuthenticAMD
CPU family: 16
Model: 2
Stepping: 3
CPU MHz: 1250.000
Virtualization: AMD-V
L1d cache: 64K
L1i cache: 64K
L2 cache: 512K
L3 cache: 2048K

Revision history for this message
Carlos Correia (carlos-m16e) wrote :

Some more info: after ten minutes of usage (amarok, akregator, kopete and firefox) I notice that swap is already being used (2GB of RAM). It seems to be a KDE only problem, I had to switch to XFCE for my daily work and haven't noticed any problems (as long as I don't run KDE apps like amarok or kopete, for instance).

Revision history for this message
Haggai Eran (haggai-eran) wrote : Re: [Bug 787859] Re: Xorg memory usage/leak

I'm suffering from this bug with Gnome. I haven't tried XFCE or KDE.

On 2011 6 9 04:40, "Carlos Correia" <email address hidden> wrote:

Some more info: after ten minutes of usage (amarok, akregator, kopete
and firefox) I notice that swap is already being used (2GB of RAM). It
seems to be a KDE only problem, I had to switch to XFCE for my daily
work and haven't noticed any problems (as long as I don't run KDE apps
like amarok or kopete, for instance).

--
You received this bug notification because you are subscribed to the bug
report.

https://bugs.launchpad.net/bugs/787859

Title:
Xorg memory usage/leak
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/787859/+subscriptions

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

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

Changed in nvidia-graphics-drivers (Ubuntu):
status: New → Confirmed
Revision history for this message
A. Fachat (fachat) wrote :

Interestingly I also have this problem, but with an nVidia card (NVIDIA Coporation GT215 Quadro FX 880M rev a2) in my Thinkpad, using the nouveau driver!

I'm using kubuntu 12.04, upgraded step by step from Lucid, and this problem happens since going to 12.04.

First I had the nvidia driver installed, and ran into the memory leak and 100% CPU for xorg. After fiddling around with it more without fix, I removed (apt-get purge) the nvidia driver. I looked through the alternatives and could not find any nvidia-related stuff anymore. Yet, even with nouveau this happened. Then I re-installed all things nouveau and mesa, but still this problem happens. I also installed the nvidia-firmware package (which was missing before), no help.

At the beginning Xorg takes about 20M of memory, slowly growing. It uses almost no CPU at this time (about 4% of a core occasionally). When it reaches about 70M it suddenly jumps to 100% CPU (one full core).

Revision history for this message
A. Fachat (fachat) wrote :

ok, in my case it seems to have indeed been a specific application. I killed it - CPU usage was back to normal. Memory was not freed though. I am not sure if this application hasn't been updated between 11.10 and 12.04, so I cannot say if a change in xorg or a change in teh application caused it though.
(I was finally so frustrated I started killing apps when I found it...)

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.