Question: Write a Python script that shows the impact of changing the Miss Rates of cache, main memory and virtual memory (swap disk space). NOTE: Use
Write a Python script that shows the impact of changing the Miss Rates of cache, main memory and virtual memory (swap disk space). NOTE: Use the following table for cache, memory and virtual memory times.
select only 1 of the cache times (or an average) for your calculations
Show the impact of cache and main memory miss rates on performance and explain your results.
Problem 5: Customers need quantitative ways to measure the performance of memory systems to evaluate the cost-benefit trade-offs of various architectures. Memory access performance metrics are: Miss Rate = (of misses) (of total memory accesses) = 1 - Hit Rate Hit Rate = (# of hits)/(= of total memory accesses) = 1 - Miss Rate The Average memory access time (AMAT) is the average time a processor must wait for memory per load or store instructions. AMAT is calculated as: AMAT = tas + MRcaktur+MR tyd Where: trache - Access time of the cache MRcache - Miss rate of the cache tur - Access time of main memory MR-Miss rate of main memory tv - Access time of virtual memory Write a Python script that shows the impact of changing the Miss Rates of cache, main memory and virtual memory (swap disk space). NOTE: Use the following table for cache, memory and virtual memory times Latency Memory Type Li Cache 0.9 ns L2 Cache 5.9 ns L3 Cache 14.5 ns Main memory 57.2 ns Virtual Memory 3000 ns Problem 5: Customers need quantitative ways to measure the performance of memory systems to evaluate the cost-benefit trade-offs of various architectures. Memory access performance metrics are: Miss Rate = (of misses) (of total memory accesses) = 1 - Hit Rate Hit Rate = (# of hits)/(= of total memory accesses) = 1 - Miss Rate The Average memory access time (AMAT) is the average time a processor must wait for memory per load or store instructions. AMAT is calculated as: AMAT = tas + MRcaktur+MR tyd Where: trache - Access time of the cache MRcache - Miss rate of the cache tur - Access time of main memory MR-Miss rate of main memory tv - Access time of virtual memory Write a Python script that shows the impact of changing the Miss Rates of cache, main memory and virtual memory (swap disk space). NOTE: Use the following table for cache, memory and virtual memory times Latency Memory Type Li Cache 0.9 ns L2 Cache 5.9 ns L3 Cache 14.5 ns Main memory 57.2 ns Virtual Memory 3000 ns
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
