随笔-处理器微架构-Types of Cache Misses
There are several types of cache misses, broadly categorized into compulsory, capacity, and conflict misses. These three are often referred to as the "3Cs" 1. A fourth type, coherence misses, arises in multi-processor systems 1.
-
Compulsory misses, also known as cold misses or first-reference misses, occur when a data block is accessed for the first time and is not yet present in the cache 12345. These are unavoidable unless the data is prefetched 1.
-
Capacity misses happen when the cache is too small to hold all the data needed by a program, resulting in previously cached data being evicted to make room for new data 1245. These are essentially non-compulsory misses in a fully associative cache 1.
-
Conflict misses, also called collision or interference misses, occur due to the cache's mapping scheme. Data may be present in the cache, but it's located in a cache line that's already occupied by another data block that maps to the same location 124.
-
Coherence misses are specific to multi-processor systems. They occur when a cache line is invalidated by a write operation from another processor, causing a subsequent access to miss 12. This is related to maintaining cache coherence across multiple processors.
参考:
本文来自博客园,作者:LiYanbin,转载请注明原文链接:https://www.cnblogs.com/stellar-liyanbin/p/18442876
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
· 如何调用 DeepSeek 的自然语言处理 API 接口并集成到在线客服系统