当前位置:网站首页>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控制指令,实现一致性
边栏推荐
- 云原生微服务第三章之Haproxy+Keepalived
- jumpserver学习
- An2021软件安装及基本操作(新建文件/导出)
- SQL注入 Less26a(布尔盲注)
- EC code introduction
- 基于MCU的二维码生成及在墨水屏上进行二维码显示
- [binary tree] count the number of good nodes in the binary tree
- [question 24] logic closed loop (Beijing Institute of Technology / Beijing University of Technology / programming methods and practice / primary school)
- Yyds dry goods inventory # solve the real problem of famous enterprises: cycle number comparison
- Project analysis (from technology to project and product)
猜你喜欢

Interview question: what are the functions of fail safe mechanism and fail fast mechanism

基于MCU的二维码生成及在墨水屏上进行二维码显示

Relationship between DBM and VPP and Vpeak

Station B collapsed. What did the developer responsible for the repair do that night?

Encapsulate an array into a class

A lock faster than read-write lock. Don't get to know it quickly

Huaneng Fujian company and Huawei digital energy deepen strategic cooperation and jointly build a low-carbon smart county

Vs2019 release mode debugging: this expression has side effects and will not be evaluated.

电磁继电器

一种比读写锁更快的锁,还不赶紧认识一下
随机推荐
[stonedb fault diagnosis] system resource bottleneck diagnosis
STM32项目分享---MQTT智能门禁系统(含APP控制)
Behind every piece of information you collect, you can't live without TA
Inertial navigation principle (VII) -imu error classification (II) -allan variance analysis method +imu test + calibration introduction
Implementation of arbitrary code execution based on.Net dynamic compilation technology
【二叉树】统计二叉树中好节点的数目
An2021 software installation and basic operation (new file / export)
An2021软件安装及基本操作(新建文件/导出)
The execution process, orphan process and zombie process of fork() function
Go language learning notes - mutex start go language from scratch
[OBS] P B frame loss threshold buffer_ duration_ usec
8000 word explanation of OBSA principle and application practice
Encapsulate an array into a class
fork()函数的执行过程、孤儿进程和僵尸进程
【OBS】P B 丢帧阈值 buffer_duration_usec
Leetcode-226-flip binary tree
7行代码让B站崩溃3小时
Deepfake 换脸真假难辨,马斯克分克已伪装成功
Leetcode-152- product maximum subarray
Chapter 3 business function development (choose to export market activities, Apache POI)