Linux - Drop caches pagecache inodes, Linux clear Virtal memory

Drop caches pagecache inodes

How to clear virtual memory in linux?
Before clearing or free cache memory, execute the sync command in order to make sure all cached objects are freed.
 # sync

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

 # sync; echo 3 > /proc/sys/vm/drop_caches

How to use sysctl to clear cache
 # /sbin/sysctl vm.drop_caches=3

As far as I know, you run the command at your own risk. When I tried this in oracle production box the server went down.

The topic on Linux - Drop caches pagecache inodes is posted by - Math

Hope you have enjoyed, Linux - Drop caches pagecache inodesThanks for your time

Tech Bluff