Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262512 - [x11 overlay] x11-base/xorg-server-1.6.0 memory leak
Summary: [x11 overlay] x11-base/xorg-server-1.6.0 memory leak
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-15 09:29 UTC by Jens Weibler
Modified: 2010-06-04 06:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,11.53 KB, text/plain)
2009-03-15 09:31 UTC, Jens Weibler
Details
xorg-lsof (xorg-lsof,1.29 MB, text/plain)
2009-03-15 09:31 UTC, Jens Weibler
Details
xorg-smaps (bzipped) (xorg-smaps.bz2,104.75 KB, application/x-bzip2)
2009-03-15 09:33 UTC, Jens Weibler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Weibler 2009-03-15 09:29:26 UTC
X uses a lot of memory after using the system for a few hours. At sometime it will cause the whole system to crash

Reproducible: Always

Steps to Reproduce:
1. upgrade to xorg-server-1.6.0 and KMS with x11-drivers/xf86-video-intel-9999
2. let the system run for a time (e.g. a day) with kde-4.2.1, Firefox, Thunderbird and maybe a few emerges
Actual Results:  
ps faux:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      4497  3.3 57.4 2934188 2299764 tty7  Ss+  Mar14  24:12  \_ /usr/bin/X -br -novtswitch -quiet -nolisten tcp -dpi 96 :0 vt7 -auth /var/run/xauth/A:0-BkVwGL

I noticed a lot of open "/drm mm object" in lsof:
# lsof -p 4497 | grep "drm mm" | wc -l
15974

# grep -A 1 "drm mm" smaps | grep Size | awk '{ sum+=$2; } END { print sum }'
2771296 
This is in kB!
Comment 1 Jens Weibler 2009-03-15 09:31:06 UTC
Created attachment 185034 [details]
emerge --info
Comment 2 Jens Weibler 2009-03-15 09:31:54 UTC
Created attachment 185035 [details]
xorg-lsof
Comment 3 Jens Weibler 2009-03-15 09:33:15 UTC
Created attachment 185037 [details]
xorg-smaps (bzipped)
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2009-03-15 20:41:34 UTC
I've read a few things about this, I don't quite remember where this bug was fixed.

Please file a bug upstream so they can fix it directly. Please paste the url here so we can track it.

Thanks
Comment 5 Sergej Pisarenko 2009-03-24 14:01:57 UTC
Confirmed.
Comment 6 Vasily 2009-04-21 18:37:43 UTC
(In reply to comment #0)
> X uses a lot of memory after using the system for a few hours. At sometime it
> will cause the whole system to crash

This bug was fixed in xorg-server-1.6.1
Comment 7 Sergej Pisarenko 2009-04-28 14:01:21 UTC
(In reply to comment #6)
> (In reply to comment #0)
> > X uses a lot of memory after using the system for a few hours. At sometime it
> > will cause the whole system to crash
> 
> This bug was fixed in xorg-server-1.6.1
> 

Unfortunately, the problem persists here with: xorg-server-1.6.1, intel-2.7.0.
Comment 8 Magnus Kessler 2009-04-29 06:59:45 UTC
This bug should be fixed by commit 7b6400a1b8d2f228fcbedf17c30a7e3924e4dd2a (http://cgit.freedesktop.org/xorg/xserver/commit/?id=7b6400a1b8d2f228fcbedf17c30a7e3924e4dd2a) on git master.
Comment 9 R Stephan 2009-05-07 16:57:20 UTC
@Sergej: I had similar problems until I used KMS with a patched 2.6.29-rc1
kernel and UXA. See https://bugs.freedesktop.org/show_bug.cgi?id=20952

The only thing unfixed still is that console doesn't come up on
exiting X -- the background image stays but the system is responsive,
i.e., you can type.
Comment 10 Rémi Cardona (RETIRED) gentoo-dev 2009-05-15 08:52:37 UTC
Ok, the linked patch is already in 1.6.1 so I'll close this fixed.

If you have any more leaks, they are probably caused by the Intel driver directly. You should file upstream bugs for them (and add "remi@gentoo.org" as a CC if you want me to be able to backport fixes if needed).

Thanks
Comment 11 Alon Bar-Lev 2010-06-04 06:58:25 UTC
I have the same for:
x11-base/xorg-server-1.7.6
x11-drivers/xf86-video-intel-2.11.0

# lsof -p $(pidof X) | grep "drm mm" | wc -l
4752