Ask Question
12 September, 20:56

Assume a disk cache hit rate (dchr) of 95% and 2 millisecond on average to access a page in cache. If the average access time to retrieve a page from the harddrive (HDD) is 30 milliseconds then what is the expected time it takes to retrieve any page if a page fault occurs?

+3
Answers (1)
  1. 12 September, 22:59
    0
    The answer is provided in the form of explanation

    Explanation:

    A page fault occurs means that the required page is not in main memory. First OS check for

    page in the cache memory, if the page is present then retrieved but if not present then check for

    page in main memory and if the page is not present here too then it searches for page in hard

    drive. To calculate the expected time, the following formula is used:

    Cache hit ratio = 95% = 0.95

    Cache miss ratio = 5% = 0.05

    Cache access time = 2 millisecond

    The average access time of hard drive = 30 milliseconds

    Expected time = Hit ratio (cache access time + memory access time) + Miss ratio (cache

    access time + 2 * memory access time)

    = 0.95 (2+30) + 0.05 (2+2*30)

    = 0.95 (32) + 0.05 (62)

    =30.4 + 3.1

    = 33.5 millisecond

    Expected time = cache hit ratio * cache access time + (1 - hit ratio) * cache miss ratio

    = 0.95*2 + (1-0.95) * 0.05

    = 1.9025
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Assume a disk cache hit rate (dchr) of 95% and 2 millisecond on average to access a page in cache. If the average access time to retrieve a ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers