Page cache is used to hold pages that contain the data read/written from disk.
Whenever a file is read from disk, the data is first copied in page in Page
Cache and then to user space buffer.
Similarly , while writing the data is first written to page in page cache and then
to the disk(deferred write).
Buffer cache is now implemented through Page Cache(there is no separate Buffer
Cache now)...those pages that are used as buffer cache in the Page cache are called as "buffer
pages"
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-983331/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10599713/viewspace-983331/
本文详细介绍了Pagecache的概念及其工作原理。Pagecache用于存储从磁盘读取或写入的数据页面。当文件从磁盘读取时,数据首先复制到Pagecache中的页面,然后再传递给用户空间缓冲区。类似地,在写入数据时,数据首先写入Pagecache中的页面,然后延迟写入磁盘。此外,文章还提到了Buffercache如何通过Pagecache实现。
2903

被折叠的 条评论
为什么被折叠?



