1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
deff fn [24]
3 years ago
14

For the system in problem 4, 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 15 ns. 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.
Engineering
1 answer:
raketka [301]3 years ago
8 0

Answer:

a. 7.75

b. 24.4

Explanation:

The Operating system uses virtual memory and page tables maps these virtual address to physical address. TLB works as a cache for such mapping.

program >>> TLB >>> cache >>> Ram

A program search for a page in TLB, if it doesn't find that page it's a TLB miss and then further looks for the page in cache.

If the page is not in cache then it's a cache miss and further looks for the page in RAM.

If the page is not in RAM, then it's a page fault and program look for the data in secondary storage.

So, typical flow would be

Page Requested >> TLB miss >> cache miss >>main memory>> page fault >> looks in secondary memory.

Here,

Main memory access time= 30 ns

Page fault rate=.01%

page fault service time= 12ns

TLB access time=7 ns

TLB hit rate= .95%

TLB miss rate =1-.95=.05%

cache access time = 15 ns

cache miss rate= .3%

cache hit rate = 1-.3=.97%

So,

a) TLB hit time= TLB access time = 7 ns

cache hit time = TLB hit rate * TLB access time + TLB miss rate * ( TLB access time + cache hit time)

= .95 * 7 + .05 * (7+15)

= 7.75 ns

b) EAT for TLB hit= 7ns

Total EAT = TLB hit rate *( TLB access time + Cache hit rate * cache access time + cache miss rate * (cache + main memory access time))+ TLB miss rate ( TLB access time + main memory access time + cache hit rate * cache access time + cache miss rate ( cache + main memory access time))

= .95 *( 7 + (.97*15) + .03(15+30))+ .05*(7+30+(.97*15) + .03 ( 15 + 30))=24.4 ns

You might be interested in
An excavation is at risk for cave-in and water accumulation because of the excess soil that has accumulated. What type of excava
N76 [4]

Answer:Topographic map. Contour line. Learning Objectives. After completing this chapter, you will be able to: □ Define civil engineering and civil drafting.

Explanation:

4 0
3 years ago
Read 2 more answers
I need help on the Coderz Challenge missions 3 part 3. PLEASE HELP!
allsm [11]

Answer:

the answer how you analyzs the problwm

6 0
3 years ago
Read 2 more answers
A 4-kW electric heater runs for 2 hours to raise the room temperature to the desired level. Determine the amount of electric ene
Anna35 [415]

Answer:

Q' = 8 KW.h

Q'=28800 KJ

Explanation:

Given that

Heat Q= 4 KW

time ,t = 2 hours

The amount of energy used in KWh given as

Q ' = Q x t

Q' = 4 x  2 KW.h

Q' = 8 KW.h

We know that

1 h = 60 min = 60 x 60 s  = 3600 s

We know that W  = 1 J/s

The amount of energy used in KJ given as

Q' = 8 x 3600 = 28800 KJ

Therefore

Q' = 8 KW.h

Q'=28800 KJ

6 0
3 years ago
The use of alcohol can cause
makkiz [27]

Answer:

Depression, and health problems

6 0
3 years ago
Read 2 more answers
Consider a fully developed flow in a circular pipe (negligible entrance effects), how does the convective heat transfer coeffici
Alexeev081 [22]

Answer: A)  Gradually decrease

Explanation:

  The convection value of heat transfer rate are gradually decreasing with the flow of the heat. Flow in a circular pipe, flow direction does not change in the velocity path. The average of the coefficient of heat transfer and the number of pipes are needed and the effects are get neglected so that is why the flow are fully developed.

8 0
3 years ago
Other questions:
  • Time complexity of merge sort
    15·1 answer
  • The specific gravity of a substance that has mass of 10 kg and occupies a volume of 0.02 m^3 is a) 0.5 b) 1.5 c) 2.5 d) 3.5 e) n
    11·1 answer
  • After being purged with nitrogen, a low-pressure tank used to store flammable liquids is at a total pressure of 0.03 psig. (a) I
    13·1 answer
  • Which type of irrigation conserves more water than other types of irrigation?
    8·1 answer
  • Fluid originally flows through a tube at a rate of 100 cm^3/s. To illustrate the sensitivity of the Poiseuille flow rate to vari
    7·1 answer
  • The normal stress at gage H calculated in Part 1 includes four components: an axial component due to load P, σaxial, P, a bendin
    9·1 answer
  • Products. of sheet metal​
    8·1 answer
  • I really need a good grade please help
    13·1 answer
  • Omplete the following program: [0.5 X 4 = 2]
    11·1 answer
  • Assignment # 2
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!