[LearnAdmin] How to drop cache or in-memory cache on linux and free up some memory ?

31 views
Skip to first unread message

Naresh Surampudi

unread,
Aug 5, 2013, 9:57:20 AM8/5/13
to learnadmin+g...@googlegroups.com
$ echo 1 | sudo tee /proc/sys/vm/drop_caches  # drop pagecache
$ echo 2 | sudo tee /proc/sys/vm/drop_caches  # drop dentries and inodes
$ echo 3 | sudo tee /proc/sys/vm/drop_caches  # drop pagecache, dentries and inod

Also we can use 

echo 1 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches
echo 3 > /proc/sys/vm/drop_caches



This is also used when we take benchmarks of server.


--
Posted By Naresh Surampudi to LearnAdmin at 8/05/2013 07:27:00 PM
Reply all
Reply to author
Forward
0 new messages