Question : linux memory cache clear
Answered by : julio-corradi
# 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
Source : | Last Update : Wed, 08 Jul 20
Question : clearing cache and memory in ubuntu
Answered by : peter-mutua
sync && echo 3 | sudo tee /proc/sys/vm/drop_caches
Source : https://askubuntu.com/questions/155768/how-do-i-clean-or-disable-the-memory-cache | Last Update : Mon, 05 Dec 22