echo 3 > /proc/sys/vm/drop_caches
[root@worker1 ~]# free
total used free shared buff/cache available
Mem: 8173856 1026588 226660 52052 6920608 6782868
Swap: 0 0 0
[root@worker1 ~]# echo 3 > /proc/sys/vm/drop_caches
[root@worker1 ~]# free
total used free shared buff/cache available
Mem: 8173856 816320 6977884 52052 379652 7046840
Swap: 0 0 0
[root@worker1 ~]#
原文:https://www.cnblogs.com/leoshi/p/13551102.html