Suppose we have 2 10 bytes of virtual memory and 2 8 bytes of physical main memo
ID: 3735253 • Letter: S
Question
Suppose we have 210 bytes of virtual memory and 28 bytes of physical main memory. Suppose the page size is 24 bytes.
For the above system, suppose a main memory access requires 30ns, the page fault rate is .01%, it costs 12ms to access a page not in memory (this time includes the time necessary to transfer the page into memory, update the page table, and access the data).
Also suppose a TLB hit requires 7ns, the cache miss rate is 3%, the TLB hit rate is 95%, a cache hit requires 15ns. On a TLB or cache miss, the time required for access includes a TLB and/or cache update, but the access is not restarted. On a page fault, the page is fetched from disk, all updates are performed but the access is restarted. All references are sequential (no overlap, nothing done in parallel)
a.) Calculate the time for a TLB hit and a cache hit.
b.) Calculate the EAT (effective access time) for a TLB hit.
Explanation / Answer
a) The formula to find the time for TLB hit is :
The memory access time is given as 30ns , and TLB_search_time is 12 ns , therefore the TLB_hit_time is,
TLB_hit_time= 12 ns + 30n ns = 42 ns
TLB_miss_time = 12 ns + 30 ns + 30 ns = 72 ns .
b) THe formula to calculate EAT (effective access time ) for hit is ,
hit_ratio = 0.95 ,
EAT = 72 * (1-0.95) + 42 * 0.95
EAT = 72 * 0.05 + 42 * 0.95
EAT = 3.6 + 42 * 0.95
EAT = 43.32 ns
Therefore, The effective access time for TLB hit is 43.32 ns
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.