Linux 释放cache

  1. sysc                                                      

    将所有未写的系统缓冲区写到磁盘中,包含已修改的 i-node、已延迟的块 I/O 和读写映射文件

  2. echo 3 > /proc/sys/vm/drop_caches   

    To free pagecache, use echo 1 > /proc/sys/vm/drop_caches; to
    free dentries and inodes, use echo 2 > /proc/sys/vm/drop_caches;
    to free pagecache, dentries and inodes, use echo 3 > /proc/sys/vm/drop_caches.

你可能感兴趣的:(Linux 释放cache)