









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This course focuses on quantitative principle of computer design, instruction set architectures, datapath and control, memory hierarchy design, main memory, cache, hard drives, multiprocessor architectures, storage and I/O systems, computer clusters. This lecture includes: Improving, Memory, Optimize, Framework, Memory, Cache, Performance, Merging, Priority, Buffers, Multilevel
Typology: Slides
1 / 15
This page cannot be seen from the preview
Don't miss anything!










Average memory access time gives framework to optimize the cache performance The Average memory access time formula:
Average Memory Access time =
Hit Time + Miss Rate x Miss Penalty
1: Multilevel Caches (Performance Analysis)
Average access Time is: Access Time (^) average = Hit Time (^) L1 + Miss Rate (^) L1 x Miss Penalty (^) L Where, Miss Penalty (^) L
Therefore,
The Average memory access time
= Hit Time (^) L1 + Miss Rate (^) L1 x (Hit Time (^) L2 + Miss Rate (^) L2 x Miss Penalty (^) L2 )
1: Multilevel Caches (to reduce Miss Penalty)
Global miss rate
1: Multilevel Caches (to reduce Miss Penalty)
Local Miss Rate: Measure of misses in a cache divided by the total number of misses in this cache. Global Miss Rate: Measure of the number of misses in the cache divided by the total number of memory access generated by the CPU
1: Multilevel Caches (to reduce Miss Penalty)
the Average Memory Access Time and Average memory stall cycles per instruction, given that for 1000 reference with 40 misses in L1 cache and 20 in L2 Cache;
1: Multilevel Caches (to reduce Miss Penalty)
Miss rate for either local or global
Global Miss Rate for L2 cache = 2% [(20/1000)x100]
1: Multilevel Caches (to reduce Miss Penalty)
Average Memory Stalls per instruction (i.e., miss penalty) = Misses per instruction L1 x Hit Time L +Misses per instruction L2 x Miss Penalty L
For Memory references per instruction = 1. Misses per instruction for L1 = 40 x 1.5 = 60 per 1000 instructions Misses per instruction for L2 = 20 x 1.5 = 30 per 1000 instructions Average Memory Stalls per instruction = (60/1000) x10 + 30/1000) x 100 = 0.6 +3.0 = 3.6 clock cycles i.e., the average miss penalty using multi level caches reduces by a factor of 100/3.6 = 28 relative to the single level cache
1: Multilevel Caches (to reduce Miss Penalty)
Miss rate verses cache size for multilevel caches The miss-rate of single level cache verses size is plotted against the local and global miss rates of 2nd^ level cache using 32 KB 1st^ level cache – L unified cache is 2-way set associative with LRU replacement