Questions


Related Questions:


Questions

Asked By :  Colton
Answers1

3 10 A computer whose processes have 2048 pages in their addres

3. (10%) A computer whose processes have 2048 pages in their address spaces keeps its page tables in memory. The overhead required for reading a word from the page table is 600 nsec. To reduce this overhead, the computer has a TLB, which holds 64 (page. frame) pairs and can do a lookup in 100 nsec. What hit rate is needed to reduce the mean overhead to 200 nsec or less?



Answers :

0

To find the hit rate needed to reduce the mean overhead to 200 nsec or less, we can use the effective access time formula for a memory hierarchy with a TLB:

Effective Access Time (EAT)=TLB Hit Rate×(TLB Access Time+Memory Access Time)+TLB Miss Rate×(TLB Access Time+Page Table Access Time+Memory Access Time)\text{Effective Access Time (EAT)} = \text{TLB Hit Rate} \times (\text{TLB Access Time} + \text{Memory Access Time}) + \text{TLB Miss Rate} \times (\text{TLB Access Time} + \text{Page Table Access Time} + \text{Memory Access Time})

Given information:

  • TLB Access Time = 100 ns
  • Memory Access Time = 600 ns
  • Page Table Access Time = 600 ns
  • TLB holds 64 page-frame pairs
  • TLB lookup time = 100 ns
  • Mean Overhead (EATMemory Access TimeEAT - \text{Memory Access Time}) = 200 ns

Now, let's calculate the hit rate needed:

200nsTLB Hit Rate×(100ns+600ns)+(1TLB Hit Rate)×(100ns+600ns+600ns+600ns)200 \, \text{ns} \leq \text{TLB Hit Rate} \times (100 \, \text{ns} + 600 \, \text{ns}) + (1 - \text{TLB Hit Rate}) \times (100 \, \text{ns} + 600 \, \text{ns} + 600 \, \text{ns} + 600 \, \text{ns})

Simplify and solve for TLB Hit Rate:

200ns700ns×TLB Hit Rate+1900ns×(1TLB Hit Rate)200 \, \text{ns} \leq 700 \, \text{ns} \times \text{TLB Hit Rate} + 1900 \, \text{ns} \times (1 - \text{TLB Hit Rate})

200ns700ns×TLB Hit Rate1900ns1900ns×TLB Hit Rate200 \, \text{ns} - 700 \, \text{ns} \times \text{TLB Hit Rate} \leq 1900 \, \text{ns} - 1900 \, \text{ns} \times \text{TLB Hit Rate}

500ns×TLB Hit Rate1700ns500 \, \text{ns} \times \text{TLB Hit Rate} \leq 1700 \, \text{ns}

TLB Hit Rate1700ns500ns\text{TLB Hit Rate} \leq \frac{1700 \, \text{ns}}{500 \, \text{ns}}

TLB Hit Rate3.4\text{TLB Hit Rate} \leq 3.4

Therefore, the TLB hit rate needs to be 3.4\leq 3.4 or 340%. However, hit rates are typically expressed as percentages, so it should be 340%\leq 340\%. This is not practically possible, so it seems there might be an error in the given information or the calculation. Please double-check the values and the question.


Answered By

Aurora

Your Answer

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Write your answer, be as detailed as possible...

Reply as a guest

Required but never shown

Try Now AI powered Content Automation