清除内核缓冲区

方法:stream

 

sync方法

echo 1 > /proc/sys/vm/drop_cachessync

 

注:

int fsync(int fd);

int fflush(FILE *stream);

相关文章
相关标签/搜索