【无标题】summary of studying the storage cache

SUMMARY OF CACHE

the idea it use

  1. put the currently used data int the nearest cache,
    by doing this ,we can cut the time we visit the data.
  • reson
    the time to visit the main memory is hundrus times of the time
    to visit the cache. the more ,the time to visit the disk is 1000 thousands times of the time to visit the main memory . Meanwhile , the time of system use to calculate the data is just several cycles . So , it is very neccesery for the system to cut the time for data visiting.

  • how
    the second question is put which data to the cache. In the ideal case, we assume that the data system demand is always in cache.
    so , there is two way to think put which to the cache

    1. put the current data and the neighbor of the data in to the cache , which we called space correlation
    2. put the latest used data in the cache ,which we called temporal correlation
      < then there is question that hoe to cast the physical address in to the address in cache , the numbers of data in main memory is much more than the data in cache . Obvious, we can the numbers of main memory mod the cache’s.If the result is right ,then check wether the data in cache is the data we need ,if is , we can load it from the cache , if not , we had to load it from the main memory . > then system put it into the cache .
      so as the sever , which named warehouse computer
store of the cpomputer
mobile devices
warehourse computer
cache

see from some aspects ,mobile devices is the same as the server devices

the main idea: how to get the data quickly. then to short the time of a procedure .

the example like this is find a book in the library

if you find the book in the libarary , the time you used is longer than the time you spend to find the book in your desktop . So you put the book you may use on the desktop early , rather than to find it just the time you need it . you can put ten or more book on your desktop , which will save you much time to find the book. but there is some difference , you just one people , the system can do the ALU and load the data in the same time ,the system can do many things in a circle.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

编程?小白

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值