开发者

Why isn't RAM as fast as registers/cache memory? [closed]

开发者 https://www.devze.com 2023-04-06 20:17 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

Why do we need to cache in Cache Memory? Why cant RAM Memory be made as fast as register or Cache Memory or Cache be as 开发者_开发百科large as RAM Memory (4GB) so that everything can be in cache? Any good article/books to understand these concepts?


Faster stuff costs more per bit. So you have a descending chain of storage, from a few registers at one end, through several levels of cache, down to RAM. Each level is bigger and slower than the one before. And all the way at the bottom you have disk.


Registers and cache are on the cpu chip itself, or tied to it very closely. Normal RAM is accessed through an address bus, and it often subject to a level of indirection by memory mapping.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号