知识卡片
增量浓缩与纪元回收
增量链达到阈值时把基节点与全部增量折成新基节点,更新映射用以限制读链成本。移除旧链地址不等于没有线程在用它。按移除所在 epoch 延迟回收,待该 epoch 及之前活跃的读者完成,之后进入的读者不可能看过旧地址,才可释放。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 6. B-Tree Variants Structural Modification Operations · 查看原书依据
To separate threads that might have encountered a specific node from those that couldn’t have possibly seen it, Bw-Trees use a technique known as epoch-based reclamation.
参考来源
- 位置:《Database Internals》Chapter 6. B-Tree Variants(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch06.html#idm46104531906936,段 100)
- 结论依据:第 98–102 段说明浓缩阈值、映射替换与回收安全条件。
- 原始内容:To separate threads that might have encountered a specific node from those that couldn’t have possibly seen it, Bw-Trees use a technique known as epoch-based reclamation.