echo 3 > /proc/sys/vm/drop_caches
free -m
The possible options:
echo 1 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches