Question: 6 . If we know the number of cache hits and misses, we can calculate the average memory access time ( AMAT ) of the
If we know the number of cache hits and misses, we can calculate the average memory access time AMAT of the program. If we know the information of hits and misses, the AMAT of the program can be calculated as follows.
AMAT Phit TMPMiss TD
Where TM represents the memory access cost, To represents the disk access cost, TD represents the probability of finding the data item in the cache, and PMiss represents the probability of not finding the data in the cache. PMiss and PHit have values between and satisfying Pviss Phit For example, let's say a computer has a small memory of KB and the size of the page is bytes. The virtual address consists of two parts: a bit VPN most significant bit and an bit offset least significant bit And one process can access or a total of virtual pages. The process points to memory at virtual addresses xxxxxxxxx and x These virtual addresses represent the first bytes of the first ten pages of the address space the first hexadecimal digit of each virtual address represents the page number Assuming that all pages except virtual page are already in memory, find Pri and PMiss. In this case, assuming that the cost of accessing memory Tm is approximately nsec and the cost of accessing disk To is approximately sec find AMAT. What happens to AMAT if the hit rate is points
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
