Answers for "how to clear cache memory in linux server"

5

linux memory cache clear

# clear pagecache only.
sync; echo 1 > /proc/sys/vm/drop_caches

# clear dentries and inodes.
sync; echo 2 > /proc/sys/vm/drop_caches

# clear pagecache, dentries and inodes.
sync; echo 3 > /proc/sys/vm/drop_caches
Posted by: Guest on July-01-2020

Code answers related to "how to clear cache memory in linux server"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language