pyqogg
Last Updated: February 25, 2016
·
741
· nicolaslazartekaqui

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

1 Response
Add your response

5779

crontab -e

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