清除內核緩衝區

方法:stream

 

sync方法

echo 1 > /proc/sys/vm/drop_cachessync

 

注:

int fsync(int fd);

int fflush(FILE *stream);

相關文章
相關標籤/搜索