memory leak in something

Bug #376802 reported by Robert Collins
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-180 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: xorg

This could be video driver/metacity/xorg related - I'm not sure at this point.

Anyhow, firing up inkscape and just resizing the window for a minute pushes Xorgs appparent memory use up by about 10MB.

Closing inkscape doesn't release the memory.

I'm quite sure this is actually leaked somewhere - when it was up to 1.4GB my machine was nearly unusable even after closing all X applications.

I couldn't properly check if it was userspace or not because of bug 376798, which may be related.

This may be yet-another-dup of https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/98783 . I will note that this is reproducible right after boot, without starting up firefox or any other applications.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: xorg 1:7.4~5ubuntu18
ProcEnviron:
 PATH=(custom, user)
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
ProcVersion: Linux version 2.6.28-11-generic (buildd@crested) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009
SourcePackage: xorg
Uname: Linux 2.6.28-11-generic x86_64

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation X58 I/O Hub to ESI Port [8086:3405] (rev 12)
     Subsystem: Giga-byte Technology Device [1458:5000]
02:00.0 VGA compatible controller [0300]: nVidia Corporation GT200 [GTX260-216] [10de:05e2] (rev a1)
     Subsystem: Giga-byte Technology Device [1458:b000]

Revision history for this message
Robert Collins (lifeless) wrote :
Revision history for this message
Dmitry Savin (envelsavinds) wrote :

I have almost the same problem. Xorg eats a lot memory after some work with firefox and especially with ANSYS (OpenGL graphics, motif-based GUI for 3D modeling). It can consume more than 1 Gb memory and the memory is not released after closing all applications, xrestop shows no information. According to it memory consumption is about 10 Mb.

I have NVIDIA 7300 GT with non-free driver, AMD64 version of Ubuntu 9.04 running on Athlon 64 X2 4400 with 2Gb of RAM.

The bug is annoying because I have to restart Xorg every time I want to start calculation in ANSYS to free some memory (ANSYS consumes about 1 Gb itself plus Xorg with 1Gb and I have no memory left for calculations).

Bryce Harrington (bryce)
affects: xorg (Ubuntu) → nvidia-graphics-drivers-180 (Ubuntu)
Bryce Harrington (bryce)
Changed in nvidia-graphics-drivers-180 (Ubuntu):
status: New → Confirmed
Bryce Harrington (bryce)
description: updated
Revision history for this message
Bryce Harrington (bryce) wrote :

I've posted a new version of the -nvidia driver to our xorg-edgers PPA,
would you mind testing it either on Jaunty or Karmic and see if it
resolves this bug?

Get nvidia-graphics-drivers-180 - 185.18.14 here:

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

Changed in nvidia-graphics-drivers-180 (Ubuntu):
status: Confirmed → New
status: New → Incomplete
Revision history for this message
Øystein Viggen (oysteivi) wrote :

I have the same problem with the Xorg process increasing in size. When I first log in, the process has some 650m virtual, and 53m resident, all as expected with 512m video ram. During use, and especially while playing Anarchy Online under Cedega, Xorg grows in size, and does not shrink after the game is stopped. I'm running 64 bit ubuntu, so X doesn't crash or anything, but after a few days it will start to swap out a lot of the Xorg process. With 4 GB system RAM, the Xorg process tends to stabilize at 2.1g resident, the rest seemingly flowing into swap. I think the most I've been at is some 8g swap used, which seemed to be mostly the Xorg process.

Restarting X seems to free all the leaked memory, but is not very convenient..

I've installed the updated packages from 2009-06-26, but that doesn't seem to help much. Right now, after a few hours of playing, and then stopping the game, Xorg is at 1768m VIRT and 1.1g RES.

Non-standard packages installed:
nvidia-180-kernel-source_185.18.14-0ubuntu1~xup~1~jaunty_amd64.deb
nvidia-180-libvdpau_185.18.14-0ubuntu1~xup~1~jaunty_amd64.deb
nvidia-180-libvdpau-dev_185.18.14-0ubuntu1~xup~1~jaunty_amd64.deb
nvidia-180-modaliases_185.18.14-0ubuntu1~xup~1~jaunty_amd64.deb
nvidia-glx-180_185.18.14-0ubuntu1~xup~1~jaunty_amd64.deb
cedega 000133 i386.

All other packages are standard up-to-date (as of typing this in) Ubuntu 9.04.

lspci | grep -i nvidia
01:00.0 VGA compatible controller: nVidia Corporation G94 [GeForce 9600 GT] (rev a1)

All numbers are from top(1).

Revision history for this message
Dmitry Savin (envelsavinds) wrote :

For me after updating NVIDIA driver from 180.44 to 185.18.14 it is even worse. Now Xorg eats up to 200 Mb of memory and all graphics become slow. I have to restart X every hour. We should do something with this it is really annoying.

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 376802] Re: memory leak in something

On Fri, 2009-06-26 at 04:01 +0000, Bryce Harrington wrote:
> I've posted a new version of the -nvidia driver to our xorg-edgers PPA,
> would you mind testing it either on Jaunty or Karmic and see if it
> resolves this bug?
>
> Get nvidia-graphics-drivers-180 - 185.18.14 here:
>
> https://edge.launchpad.net/~xorg-edgers/+archive/ppa

It seems better to me - I can use the machine for days at a time without
it starting to crawl.

-Rob

Carey Underwood (cwillu)
Changed in nvidia-graphics-drivers-180 (Ubuntu):
status: Incomplete → Confirmed
Bryce Harrington (bryce)
tags: added: jaunty
Revision history for this message
Øystein Viggen (oysteivi) wrote :

Rolled some updated packages of version 185.18.31 locally today. (the helper macros in debian/rules makes this surprisingly easy, by the way). After a few hours of playing, Xorg now has 1496 MB virtual and 893 MB resident, so using the latest driver doesn't seem to have helped.

Revision history for this message
bugbot (bugbot) wrote :

This bug report was filed against an old version of Ubuntu.
Can you confirm whether this is still an issue in natty?

If you don't mind, it would be very helpful if you could update the bug
report in launchpad to 'Fix Released' if it is no longer an issue for
you, or if it is still occurring under natty, please tag the bug 'natty'
so it's easier for us to track.

Changed in nvidia-graphics-drivers-180 (Ubuntu):
status: Confirmed → New
status: New → Incomplete
Revision history for this message
bugbot (bugbot) wrote :

We're closing this bug since it is has been some time with no response from the original reporter. However, if the issue still exists please feel free to reopen with the requested information. Also, if you could, please test against the latest development version of Ubuntu, since this confirms the bug is one we may be able to pass upstream for help.

Changed in nvidia-graphics-drivers-180 (Ubuntu):
status: Incomplete → Expired
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.