计算机系统结构weight是什么,计算机系统结构习题讲解-0929-重定序.ppt

计算机系统结构习题讲解-0929-重定序

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 存储系统 Answer a. Software is slower because of the overhead of a context switch to the handler code, but the replacement algorithm can be higher than hardware and a wider variety of virtual memory organizations can be readily accommodated.Hardware - faster but less flexible Answer b. Factors affecting on the handling time include: Page table – paged? More efficient page table searching algorithm —— software TLB entry prefetching —— hardware Answer c. Page table structure that change dynamically would be difficult to handle in hardware but possible in software. 存储系统 Adapted from Figure 5.45 Cache misses per 1000 instructions TLB misses per 1000 instr. Program CPI I-Cache L2-Cache I-TLB gcc 0.63 3.43 0.25 0.30 ijpeg 0.49 0.03 0.02 0.10 perl 0.56 1.66 0.09 0.26 swim 0.40 0.00 5.99 0.10 wave5 0.74 0.17 1.72 0.89 hydro2d 0.64 0.01 0.46 0.19 存储系统 Answer d. Program Weight TLB misses/1000 instructions gcc 50% 0.3 perl 25% 0.26 ijpeg 25% 0.10 存储系统 Workload miss rate= ∑Weighti×(TLB misses/1000i)= 50%×0.3+25%×0.26+25%×0.1 = 0.24/1000 instructions Penalty (Hardware)= WMR×TLB miss handling time (10 cycles)= 2.4 cycles/1000 instructions CPI (increase) = 0.0024 clocks/instruction Penalty (Software)= WMR×TLB miss handling time (30 cycles)= 7.2 cycles/1000 instructions CPI (increase)= 0.0072 clocks/instruction 存储系统 Program Weight TLB misses/1000 instructions swim 30% 0.1 wave5 30% 0.89 hydro2d 20% 0.19 gcc 10% 0.3 存储系统 Workload miss rate= ∑Weighti×(TLB misses/1000i)= 30%×0.1+30%×0.89+20%×0.19+10%×0.3 = 0.37/1000 instructions Penalty (Hardware)= WMR×TLB miss handling time (10 cycles)= 3.7 cycles/1000 instructions CPI = 0.0037 clocks/instruction Penalty (Software)= WMR×TLB miss handling time (30 cycles)= 11.1 cycles/1000 instructions CPI = 0.0111 clocks/instruction 存储系统 Answer e.The TLB miss times are too small. Handling a TLB miss requires finding and transferring a page t

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值