Question

In: Computer Science

briefly explain the principle that a cache improves the performance of memory access. For a computer,...

  1. briefly explain the principle that a cache improves the performance of memory access. For a computer, suppose that the access to the cache takes 6 ns, and the access to the memory takes 40 ns, what’s effective access time (EAT) given a hit ratio of 90%?

Solutions

Expert Solution

Solution:

Given,

=>Access time of cache(C) = 6 ns

=>Access time of main memory(M) = 40 ns

=>Hit ratio(H) = 0.9

Explanation:

Principle of cache improves the performance of memory access:

=>Some frequently accessed addresses are kept inside cache memory so when CPU requests those frequent addresses then it can be directly retrieved from cache memory without checking in main memory. If the address is not available in cache memory then it is called cache miss and then address is accessed from main memory. This is how performance of main memory increases because effective access time decreases.

Calculating effective access time(EAT):

=>By default heirarchial access is used.

=>Effective access time(EAT) = H*(C) + (1-H)*(C+M)

=>Effective access time(EAT) = 0.9*6 ns + (1-0.9)*(6 ns + 40 ns)

=>Effective access time(EAT) = 5.4 ns + 0.1*46 ns

=>Effective access time(EAT) = 5.4 ns + 4.6 ns

=>Effective access time(EAT) = 10 ns

=>Hence effective access time(EAT) = 10 ns

I have explained each and every part with the help of statements attached to the answer above.


Related Solutions

In a memory system, when the access time of the cache is 10ns and the access...
In a memory system, when the access time of the cache is 10ns and the access time of the main memory is 50ns, what is the hit ratio of the cache if the effective access time is 10% larger than the access time of the cache? (Up to 4 digits below the decimal point) please detail explanation
Techopedia  defines disk cache as; A disk cache is a cache memory that is used to speed...
Techopedia  defines disk cache as; A disk cache is a cache memory that is used to speed up the process of storing and accessing data from the host hard disk. It enables faster processing of reading/writing, commands and other input and output process between the hard disk, the memory and computing components. A fundamental principle of programming is that any system interacting with multiple components requires the use of buffers. Buffers insulate components from each other’s duty cycles, but too many...
Computer Architecture Theme: External Memory Very briefly discuss flash memory?
Computer Architecture Theme: External Memory Very briefly discuss flash memory?
Q1/ A- What is cache memory and how it works? B- What are the three cache...
Q1/ A- What is cache memory and how it works? B- What are the three cache mapping approaches and what is the pros and cons of each approach? C- What is the cache replacement policies and read/write policies?
What features of query cache or Data cache serve to improve RDBMS performance
What features of query cache or Data cache serve to improve RDBMS performance
Computer archieture 1. Assume that the cache size is 512kB, and each cache line is 128...
Computer archieture 1. Assume that the cache size is 512kB, and each cache line is 128 Bytes. If it’s a 4-way associative cache, how many sets are there? If it’s a 2-way associative cache, how many sets are there? Let’s assume the cache is initially empty, and LRU policy is used for cache line replacement. If the following memory blocks are accessed: Mem-block # 7, 1031, 2055, 4103, 1031, 7, 2055, 3079, 1031, 3079 What is the cache hit/miss rate...
What is the difference between logical access to the computer and physical access to the computer?...
What is the difference between logical access to the computer and physical access to the computer? Why is the security of both important?
1. What is Pareto Principle and Analysis? Explain briefly.
1. What is Pareto Principle and Analysis? Explain briefly.
13. Briefly describe the three-stage model of memory, and explain how the memory stages interact. Also,...
13. Briefly describe the three-stage model of memory, and explain how the memory stages interact. Also, explain how flashbulb memories demonstrate that emotions and memories are interrelated. In your opinion, how does this overlap between emotions and memories contribute to the accuracy of one’s memories?
Explain why an operating system can be viewed as a resource allocator. Direct memory access is...
Explain why an operating system can be viewed as a resource allocator. Direct memory access is used for high-speed I/O devices in order to avoid increasing the CPU’s execution load. a) How does the CPU interface with the device to coordinate the transfer? b) How does the CPU know when the memory operations are complete? c) The CPU is allowed to execute other programs while the DMA controller is transferring data. Does this process interfere with the execution of the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT