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!
Created attachment 185034 [details] emerge --info
Created attachment 185035 [details] xorg-lsof
Created attachment 185037 [details] xorg-smaps (bzipped)
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
Confirmed.
(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
(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.
This bug should be fixed by commit 7b6400a1b8d2f228fcbedf17c30a7e3924e4dd2a (http://cgit.freedesktop.org/xorg/xserver/commit/?id=7b6400a1b8d2f228fcbedf17c30a7e3924e4dd2a) on git master.
@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.
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
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