# 1: clear the PageCache only sync; echo 1 > /proc/sys/vm/drop_caches # 2: Clear dentries and inodes sync; echo 2 > /proc/sys/vm/drop_caches # 3: Clear PageCache, dentries and inodes sync; echo 3 > /proc/sys/vm/drop_caches
-
It needs to be executed under the root account -
among sync The purpose of the command is to flush the file system buffer
sudo swapoff -a && sudo swapon -a