Every time I start and exit X the sum of "Active + Inact_dirty + Inact_laundry + Inact_clean + MemFree" in /proc/meminfo drops by about 12 megs. kernel is: 2.4.20-2.50 XFree86 is: 4.2.00.901-20030212.0
Created attachment 90359 [details] XFree86 log
Created attachment 90360 [details] /proc/pci
Commenting out Load "DRI" in XF86Config removes the leak.
attach /var/log/messages too to peekaboo at agpgart loading et al.
Created attachment 90361 [details] /var/log/messages
This also happens on at least i8x0 cards. This is not nptl related, but seems rmap related. Arjans kernel-2.4.20-5nonptlfixrmap build fixes it. Waiting on an NPTL enabled build to test that.
Should be fixed in -6.
Fix confirmed with the latest kernel.
Just to clarify with a bit more detail for those who might find this bug report when doing a bugzilla query, this problem was due to a refcount bug in rmap with respect to PageReserved pages. DRM marks it's pages as PageReserved and was affected by this bug. (In Arjan's words) Problem fixed in kernel-2.4.20-6 by Arjan The Machine(TM) ;o)
*** Bug 82896 has been marked as a duplicate of this bug. ***