知识卡片
多层日志会重复搬迁
数据库、文件系统及 FTL 各自按追加写组织数据,也各自维护存活与回收。上层已废弃的区段若未通知下层,下层可能继续搬运它。若区段边缘跨越下层多个段,回收还会重写相邻数据;WAL 和数据文件两条顺序流交错后在设备上也可能碎片化。段与页对齐、传递失效信息或隔离写流能减少干扰。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Log-Structured Storage Log Stacking · 查看原书依据
Because layers do not communicate LSS-related scheduling (for example, discarding or relocating segments), lower-level subsystems might perform redundant operations on discarded data or the data that is about to be discarded.
参考来源
- 位置:《Database Internals》Chapter 7. Log-Structured Storage(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch07.html#idm46104531388168,段 282)
- 结论依据:第 264–266、278–285 段说明日志层叠与错位、多流示例。
- 原始内容:Because layers do not communicate LSS-related scheduling (for example, discarding or relocating segments), lower-level subsystems might perform redundant operations on discarded data or the data that is about to be discarded.