知识卡片
脏页驱逐要协调写回
磁盘内容已同步、未固定且当前未被借用的页可以立即驱逐。脏页需协调日志持久化和数据页写回。等到腾位置才写脏页会阻塞前台,后台写进程可预刷可能被驱逐的页;过早刷盘又会损失多次同页写合并的机会。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 5. Transaction Processing and Recovery Cache Eviction · 查看原书依据
Keeping caches populated is good: we can serve more reads without going to persistent storage, and more same-page writes can be buffered together. However, the page cache has a limited capacity and, sooner or later, to serve
参考来源
- 位置:《Database Internals》Chapter 5. Transaction Processing and Recovery(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch05.html#idm46104532673688,段 42)
- 结论依据:第 42–50 段列出页的驱逐条件、后台刷盘和写回折衷。
- 原始内容:Keeping caches populated is good: we can serve more reads without going to persistent storage, and more same-page writes can be buffered together. However, the page cache has a limited capacity and, sooner or later, to serve