https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #4 from Kevin kjslag@gmail.com 2011-03-18 21:25:15 --- The problem occurred in 2.6.37 also.
Logging out of X doesn't get the memory back.
I'm also not sure if just scrolling a lot causes the problem. It seems to be easier for me to consume memory by opening many .pdf files.
Here is some output after logging out of X (I still had about ~30MB from root processes):
$ free -m total used free shared buffers cached Mem: 5920 2668 3252 0 96 1088 -/+ buffers/cache: 1484 4436 Swap: 7998 0 7998
$ cat /sys/kernel/debug/dri/0/radeon_vram_mm 0x00000000-0x00000040: 0x00000040: used 0x00000040-0x00000140: 0x00000100: used 0x00000140-0x00000141: 0x00000001: used 0x00000141-0x0000092a: 0x000007e9: used 0x0000092a-0x00040000: 0x0003f6d6: free total: 262144, used 2346 free 259798
$ cat /sys/kernel/debug/dri/0/radeon_gtt_mm 0x00000000-0x00000001: 0x00000001: used 0x00000001-0x00000011: 0x00000010: used 0x00000011-0x00000111: 0x00000100: used 0x00000111-0x00000211: 0x00000100: used 0x00000211-0x00020000: 0x0001fdef: free total: 131072, used 529 free 130543
dri-devel@lists.freedesktop.org