User Tools

Site Tools


computing:linux:memory

Linux Memory

Clear Buffers & Cache

sync && echo 3 > /proc/sys/vm/drop_caches

If you use sudo:

su -c "sync && echo 3 > /proc/sys/vm/drop_caches"

This one-liner also shows before and after stats:

echo Before: && free -m && echo After: && sync && echo 3 > /proc/sys/vm/drop_caches && free -m
computing/linux/memory.txt · Last modified: 2011/11/15 17:33 by gcooper