https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #10 from Kevin kjslag@gmail.com 2011-03-20 20:40:04 --- echo 3 > /proc/sys/vm/drop_caches cleared all of the memory. Thank you! See output below (ran after exiting X). I didn't try unloading the gpu stack. I can try it if you like.
I also saved /proc/slabinfo before and after I dropped the caches. If I'm interpreting the file correctly, I only notice large drops in ext4 filesystem stuff. Is there a way to tell which slabs are considered buffers or cache?
# free -m total used free shared buffers cached Mem: 5920 4318 1602 0 113 2465 -/+ buffers/cache: 1740 4180 Swap: 7998 0 7998 # echo 3 > /proc/sys/vm/drop_caches # free -m total used free shared buffers cached Mem: 5920 225 5695 0 3 12 -/+ buffers/cache: 209 5711 Swap: 7998 0 7998
dri-devel@lists.freedesktop.org