CPU从Memory Card中读取数据所花费的时间比CPU处理数据的时间要长。-- 所以有了cache的概念
cache: 存储CPU最经常要用的数据,CPU需要的时候可即时用上。
如何实现:
- 在CPU中建立一小块内存。分为:Primary or Level One cache.
- 在内存中驻留一块,称secondary or level 2 cache,直接与CPU连接
- Level 2:256KB- 2MB
- 主板上有一块专用集成电路称L2 Controller,控制CPU对level 2 cache的使用
当然现在许多高性能的CPU中,level 2 cache 直接建在其中了。
RAM的速度取决于两个因素:
bus width: RAM可同时发送的位数
bus speed:
Latency:The gap between processor's speed and a computer's bus speed.
Virtual Memory: 将RAM中不常用的部分复制到硬盘中。