Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer Manager #7

Open
zyan0 opened this issue Nov 13, 2013 · 0 comments
Open

Buffer Manager #7

zyan0 opened this issue Nov 13, 2013 · 0 comments

Comments

@zyan0
Copy link
Member

zyan0 commented Nov 13, 2013

Buffer Manager负责缓冲区的管理,主要功能有:
根据需要,读取指定的数据到系统缓冲区或将缓冲区中的数据写出到文件
实现缓冲区的替换算法,当缓冲区满时选择合适的页进行替换
记录缓冲区中各页的状态,如是否被修改过等
提供缓冲区页的pin功能,及锁定缓冲区的页,不允许替换出去
为提高磁盘I/O操作的效率,缓冲区与文件系统交互的单位是块,块的大小应为文件系统与磁盘交互单位的整数倍,一般可定为4KB或8KB。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant