buffer&cache

来源:互联网 发布:提取网页数据 编辑:程序博客网 时间:2024/05/05 16:01
  • A buffer is something that has yet to be "written" to disk. 
  • A cache is something that has been "read" from the disk and stored for later use.

也就是说buffer是用于存放要输出到disk(块设备)的数据的,而cache是存放从disk上读出的数据。

这二者是为了提高IO性能的,并由OS管理。

0 0
原创粉丝点击