命令:sync; echo 3 > /proc/sys/vm/drop_caches
分析:
运行sync将dirty的内容写回硬盘$sync
通过修改proc系统的drop_caches清理free的cache$echo 3 > /proc/sys/vm/drop_caches