2,827 views
1 1 vote
Consider a system with cycles per instruction (CPI) is 1.0 when all memory accesses hit in the cache. The only data accesses are loads and stores, and these are 50% of the total instructions. If the miss penalty is 30 clock cycles and the miss rate is 4%, how much faster would the computer be if all instructions were cache hits?

(A) 1

(B) 2.8

(C) 1.6

(D) 3.5

2 Answers

0 0 votes
ANS : b 2.8

CPU execution time considering all cache access are hits

(CPUExTimeWithAllHits) = IC(Instruction count) * (CPU clock cycles + memory stall cycles) * clock cycle time

= IC ( 1+ 0) * clock cycle time

= IC * clock cycle time

CPU execution time considering misses in cache

(CPUExTimeWithMissRate) = IC(Instruction count) * (CPU clock cycles + memory stall cycles) * clock cycle time
memory stall cycles(Stall Cycles Per Instruction) = (Memory accesses per instr) * miss rate * miss penalty
Memory accesses per instruction = 1 + 0.5 (1 instruction access + 0.5 data access)
memory stall cycles Per Instruction = 1.5 * 0.04 * 30 = 1.8

= IC ( 1 + 1.8) * clock cycle time

= IC * 2.8 * clock cycle time

 

The performance ratio = (CPUExTimeWithMissRate/ CPUExTimeWithAllHits)

= (IC * 2.8 * clock cycle time ) / IC * clock cycle time

= 2.8
Position:
Show:

Related questions

0 0 votes
1 1 answer
1.5k
1.5k views
elakashi sharma asked Apr 20, 2017
1,481 views
Response time, elapsed time, access time all are consider same and equivalent ? Explanation.
1 1 vote
1 1 answer
581
581 views
hrupam asked Apr 14, 2025
581 views
A device with data transfer rate 20 KB/sec is connected to a CPU. Data is transferred byte-wise. Let the interrupt overhead be 10 microseconds.What is the total time requ...
0 0 votes
1 1 answer
381
381 views
Aditya_Chandra asked Nov 18, 2024
381 views
If a control unit executes an instruction in five clock cycles and the CPU’s clock speed is 2 GHz, what is the time taken to execute one instruction? * 2 points D) 25 nan...
0 0 votes
0 0 answers
1.2k
1.2k views
Anshul kumar singh asked Jul 18, 2022
1,199 views
Quantify the effect on performance that results from the use of a cache in the case of a program that has a total of 500 instructions, including a 100-instruction loop th...