首页 > 试题广场 >

we build cache system. In one

[单选题]
To speed up data access , we build cache system. In one system , The L1 cache access time is 5 ns , the L2 cache access time is 50 ns and the memory access time is 400 ns. The L1 cache miss rate is 50% , the L2 cache miss rate is 10%. The average data access time of this system is:
  • 5
  • 30
  • 45
  • 50
  • 55
推荐
为了兼顾速度和容量的问题,一般采用两级Cache结构,第一级Cache小而快,第二辑Cache容量大。
平均的访问时间=命中时间(L1)+失效率(L1)*失效开销(L1)
              =命中时间(L1)+失效率(L1)*((命中时间(L2)+失效率(L2)*失效开销(L2))
在本题中  aver time=5+0.5*(50+0.1*400)=50
答案选D

编辑于 2015-02-09 16:32:29 回复(0)
0.5*5+0.5*0.9*(50+5)+0.5*0.1*(400+50+5)=50
发表于 2015-03-23 21:54:43 回复(2)
0.5*5+0.5*0.9*55+0.5*0.1*455=50
发表于 2014-10-06 18:39:48 回复(1)
为了兼顾速度和容量的问题,一般采用两级Cache结构,第一级Cache小而快,第二辑Cache容量大。
平均的访问时间=命中时间(L1)+失效率(L1)*失效开销(L1)
              =命中时间(L1)+失效率(L1)*((命中时间(L2)+失效率(L2)*失效开销(L2))
在本题中  aver time=5+0.5*(50+0.1*400)=50
发表于 2017-03-31 15:28:27 回复(0)
50%在L1中命中,平均所需时间为:5*0.5=2.5
50%*90%在L2中命中,平均所需时间为:(5+50)*50%*90%=24.75
50%*10%在内存中命中,平均所需时间为:(5+50+400)*50%*10%=22.75
所以总的平均访问时间为:2.5+24.75+22.75=50
需要注意在访问L2时,必定是花了时间去访问了L1的,同理,访问内存时,必定是先访问了L1和L2的
发表于 2020-03-02 17:31:30 回复(0)
l1命中 + l1未命中+l2命中 +l1,2未命中 内存寻找。
5+50*0.5+400*0.5*0.1 = 5+25+20 = 50
发表于 2017-09-07 21:20:08 回复(0)