The command to clear the memory cache.
# sync # echo 3 > /proc/sys/vm/drop_caches
sync -> refers to the tells the kernel that you want the data written to the disk
echo 3 > /proc/sys/vm/drop_caches -> "To free pagecache, dentries and inodes:"
From the article Invalidating the Linux buffer cache ,
To free pagecache: # echo 1 > /proc/sys/vm/drop_caches To free dentries and inodes: # echo 2 > /proc/sys/vm/drop_caches To free pagecache, dentries and inodes: # echo 3 > /proc/sys/vm/drop_caches
References:
No comments:
Post a Comment