清除内核缓冲区

方法:

 

sync

echo 1 > /proc/sys/vm/drop_caches

 

注:

int fsync(int fd);

int fflush(FILE *stream);

posted on 2019-10-18 17:08  Alvin2012  阅读(191)  评论(0编辑  收藏  举报

导航