Empty Linux Buffer Cache:
There are three options available to flush cache of linux memeory. Use one of below as per your requirements.1. To free pagecache, dentries and inodes in cache memory
# sync; echo 3 > /proc/sys/vm/drop_caches2. To free dentries and inodes use following command
# sync; echo 2 > /proc/sys/vm/drop_caches3. To free pagecache only use following command
# sync; echo 1 > /proc/sys/vm/drop_caches
adding to cron job for regular flush/ hour
# crontab -e 0 * * * * sync; echo 3 > /proc/sys/vm/drop_caches
Check cache linux used
# free -m
No comments:
Post a Comment