Professional Documents
Culture Documents
Administration, Let It Be Anything On A Server: Flushing Linux Disk Cache in 2.6 Kernel
Administration, Let It Be Anything On A Server: Flushing Linux Disk Cache in 2.6 Kernel
0=is the default value, with this value, the kernel doesn't
clear anything from cache unless memory deliberately
required by other applications.
1=Flush the pagecache alone from Disk Buffer Cache
2=Flush the dentries and inodes
3=Flush pagecache, dentries and inodes
https://os-db-admin.blogspot.com 1/3
4/29/2020 Administration, Let it be anything on a Server
If you have modified your drop_caches file and you donot have
an entry for vm.drop_caches in the sysctl.conf as well, and you
are unsure of what the system will boot up with, you can always
check for the value to which vm.drop_caches parameter is set
with by checking the sysctl -a output.
as like,
#sysctl -a grep vm.drop_caches
vm.drop_caches = 0
#
Hope, this would have left you with a good picture of how
to clear disk buffer cache and what it is about, though I donot
recommend you to flush the buffer unless you have performance
test run requirement or you have got caught in into the
monitoring tools which donot detect the caching properly.
That's it for today folks, will meet you soon with some other
interesting topic ...
***Raghav***
Posted by Raghav at 12:29 AM No comments:
Labels: #Drop_caches #MemoryTuning
Home
https://os-db-admin.blogspot.com 2/3