How do you empty the buffers and cache on a linux system
Submitted by Scott on Tue, 07/18/2017 - 08:59free && sync && echo 3 > /proc/sys/vm/drop_caches && free
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