← 返回刚才阅读的位置

知识卡片

结构图卡 · 10294.a.5.b.3 · 生成模型:未记录

TinyLFU按频率准入

理解等级:中级

通过紧凑频率直方图估计近期访问次数。新对象从准入区退出时和试用区拟淘汰对象比频率,只有更热门的新对象能替代它。试用对象再次命中可进保护区,保护区满时有对象降回试用区。核心是决定是否准入,避免低频对象轻易挤走热点。

结构图:

flowchart LR
  A[准入区] --> F{频率高于试用区候选}
  F -->|否| E[淘汰新对象]
  F -->|是| B[试用区]
  B -->|再命中| P[保护区]
  P -->|满时降级| B
这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    • 主要讲解 · LFU

    原书出处 · 1 处

    参考来源

    - 位置:《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#idm46104532596648,段 86) - 结论依据:第 81–87 段给出三个队列和频率过滤的决策。 - 原始内容:Rather than choosing which elements to evict every time, this approach chooses which ones to promote for retention. Only the items that have a frequency larger than the item that would be evicted as a result of