V2EX  ›  英汉词典

Cache Line

释义 Definition

cache line(缓存行/高速缓存行):计算机体系结构中,CPU 缓存与内存之间传输与管理数据的基本单位。一次从内存载入或写回缓存的通常是一整条缓存行(常见大小如 64 字节),因此程序对数据的访问是否“落在同一缓存行”会显著影响性能。(该词也常写作 cacheline。)

发音 Pronunciation (IPA)

/ˈkæʃ laɪn/

例句 Examples

The array fits in one cache line.
这个数组能装进一条缓存行里。

If two threads write to different variables that share the same cache line, performance can drop due to false sharing.
如果两个线程写入的变量不同但恰好共享同一条缓存行,可能会因为“伪共享”导致性能下降。

词源 Etymology

cache 源自法语 cacher(“隐藏、藏起来”),引申为“把常用数据先藏在更快的地方以便快速取用”;line 在工程与系统语境里常指“一个固定长度的条目/记录/块”。合在一起,cache line 就是缓存系统里按固定大小组织与搬运数据的“条目/块”。

相关词 Related Words

文学与作品 Works & Usage

  • Computer Architecture: A Quantitative Approach(Hennessy & Patterson):在讨论缓存设计、块大小(即缓存行大小)与命中率/延迟权衡时频繁涉及 cache line 概念。
  • *Operating Systems: Three Easy Pieces (OSTEP)*:在讲解内存与性能、缓存效应以及并发导致的性能问题时,会用到与缓存行、伪共享相关的表述与例子。
  • Systems Performance: Enterprise and the Cloud(Brendan Gregg):在性能分析章节中讨论 CPU 缓存行为与数据访问局部性时,常提及缓存行作为观测与优化的关键单位。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   681 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 20:54 · PVG 04:54 · LAX 12:54 · JFK 15:54
♥ Do have faith in what you're doing.