pyqogg
Last Updated: February 25, 2016
·
724
· nicolaslazartekaqui
Img 3566

Linux - Clearing the system cache

Needing to clear the system cache?

carbon:$ free -m
     total     used    free   cached
Mem:  3765     3255     510     1294

you can do

# echo 3 > /proc/sys/vm/drop_caches

or

# sysctl -w vm.drop_caches=3

now

carbon:$ free -m
     total     used    free   cached
Mem:  3765     2071    1694     372
Say Thanks
Respond

1 Response
Add your response

5779
Screen shot 2016 02 29 at 20.33.18

crontab -e

0 1 * * * /bin/sync; echo 3 > /proc/sys/vm/drop_caches;
over 1 year ago ·