当前位置:网站首页>cache学习
cache学习
2022-07-27 19:35:00 【aningxiaoxixi】
1
不仅cache 分为指令跟数据
mmu 也分为指令 跟 数据
2
cache 的涉及基于 程序局部性原理
参考:什么是程序的局部性原理
3 canche 使用流程
a 一开始 cache读取a地址的数据,无想要的数据,这叫做cache miss
b cpu 把地址发往 sdram,读入一个cacheline 称为 cache fill
c 程序再次读取地址 a 的数据,从cache 上查找 a 的数据,成功找到,这叫做 cache hit
4 cache line
计算机缓存Cache以及Cache Line详解
5 write buffer 是cache 逆操作。
6 cache 跟 mmu一样,集中在cpu内部,地址不在系统总线上。
7 cache 容量在 1k 到 512k字是最优解。
8 cache 一致性问题解决办法分为软件与芯片方法
软件方案:
a 将可能出现一致性问题的存储区设为非 cache,但可能引起系统性能下降。
b 在可能出现一致性问题的临界代码区,插入cache控制指令,实现一致性
边栏推荐
- 极化继电器
- Alibaba Senior Software Testing Engineer recommends testers to learn -- Introduction to security testing
- Behind every piece of information you collect, you can't live without TA
- Mimx8md6cvahzab i.MX 8mdual cortex-a53 - Microprocessor
- ApacheSpark-命令执行(CVE-2022-33891) 漏洞复现
- Starfish OS X metabell strategic cooperation, metauniverse business ecosystem further
- 【StoneDB故障诊断】MDL锁等待
- Cocos: simple application of ccpdistance function and the function of eyeball rotating in orbit with fingers
- More than 100 lines should be split into functions
- Interview questions that big companies need to prepare
猜你喜欢

Leetcode15 -- sum of three numbers

STM32 project Sharing -- mqtt intelligent access control system (including app control)

Log4j vulnerability is still widespread and continues to cause impact

Apachespark command execution (cve-2022-33891) vulnerability recurrence

CMOS传输门原理及应用

What is the employment prospect of software testing?

SQL injection less26a (Boolean blind injection)

【图解】三次握手,四次挥手 —— 用心看这一篇就够了

An2021软件安装及基本操作(新建文件/导出)

软件测试的就业前景到底怎么样?
随机推荐
Credit default prediction based on simplified scorecard, smote sampling and random forest
Interview questions that big companies need to prepare
Massive data TOPK problem
[OBS] P B frame loss threshold buffer_ duration_ usec
leetcode15--三数之和
Alibaba Senior Software Testing Engineer recommends testers to learn -- Introduction to security testing
【二叉树】统计二叉树中好节点的数目
Pytoch distributed training
@Can component be used on the same class as @bean?
SQL injection less29 (parameter pollution bypasses WAF)
Starfish OS X metabell strategic cooperation, metauniverse business ecosystem further
What is eplato cast by Plato farm on elephant swap? Why is there a high premium?
Station B collapsed. If we were the developer responsible for the repair that night
Leetcode-309- best time to buy and sell stocks, including freezing period
electromagnetic relay
高频继电器
EC code introduction
8000字讲透OBSA原理与应用实践
C language output teaching calendar
【无标题】