2017-7-7 How To Flush Memory Cache on Linux Server | TecAdmin
https://tecadmin.net/flush-memory-cache-on-linux-server/ 1/3
Linux Tutorials 10 Comments
Many times systems faced low memory issues of Linux systems running a while. The
reason is that Linux uses so much memory for disk cache is because the RAM is wasted if
it isn’t used. Cache is used to keep data to use frequently by the operating system.
Reading data from cache if 1000’s time faster than reading data from hard drive.
It’s good for the os to get data from the cache in memory. But if any data not found in the
cache, it reads from hard disk. So it’s no problem to ush cache memory. This article has
details about how to Flush Memory Cache on Linux Server.
Clear Linux Memory Buffer Cache:
There are three options available to ush cache of Linux memory. Use one of below as per
your requirements.
Free pagecache, dentries and inodes in cache memory
# sync; echo 3 > /proc/sys/vm/drop_caches
Free dentries
Linux/cache/data/memory/Cache/Memory/hard/Flush/time/systems/
Linux/cache/data/memory/Cache/Memory/hard/Flush/time/systems/
-->