全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Replacement policy, LRU?

又称: replacement policy · least recently used

Definition 12.8 University Computer Science — Year 2 · 第 12 章 — Caches and the Memory Hierarchy

The replacement policy of a set-associative cache chooses which line of a full set a miss evicts. The least recently used (LRU) policy evicts the line whose last access is the oldest.

Set 0 of a 256-byte 2-way cache with 16-byte lines (8 sets, so the tag is the address shifted right by 7), after each access of a trace. The LRU bit names the way to evict at the next miss. The third access hits; from then on each line is evicted just before it is needed again.
Set 0 of a 256-byte 2-way cache with 16-byte lines (8 sets, so the tag is the address shifted right by 7), after each access of a trace. The LRU bit names the way to evict at the next miss. The third access hits; from then on each line is evicted just before it is needed again.
在原文中阅读 →