Linux – Why drop caches in Linux

cachelinuxmemory

In our servers we have a habit of dropping caches at midnight.

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

When I run the code it seems to free up lots of RAM, but do I really need to do that. Isn't free RAM a waste?

Best Answer

You are 100% correct. It is not a good practice to free up RAM. This is likely an example of cargo cult system administration.

Related Topic