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
A six-lane freeway (three lanes in each direction) with a 5.5% uphill grade 1.5 miles long has 10-ft lanes and obstructions 5 ft
sertanlavr [38]
The answer would be:
A. LOS B
4 0
3 years ago
Read 2 more answers
Four race cars are traveling on a 2.5-mile tri-oval track. The four cars are traveling at constant speeds of 195 mi/h, 190 mi/h,
Snezhnost [94]

Answer:

Explanation:

1) The number of times, the car with the speed of  195 mph will cross the given point is equal to 30 minutes divided by the time taken by car to cross the 2.5 miles.

0 .5*195/2.5 = 39

Likewise, the car with the speed of 190 mph crosses the point 38 times; the car with the speed of 185 mph crosses the point 37 times

and car with the speed of 180 mph crosses it 36 times

here, the time-mean speed, vt is given below,

vt = (39*195 +38*190+37*185+36*180)/(39+38+37+38)

= 186.433 mph

and space mean speed is given by,

= (39+38+37+36)/(39/195+38/190+37/1850+36/180)

1) The number of times, the car with the speed of  195 mph will cross the given point is equal to 30 minutes divided by the time taken by car to cross the 2.5 miles.

0 .5*195/2.5 = 39

Likewise, the car with the speed of 190 mph crosses the point 38 times; the car with the speed of 185 mph crosses the point 37 times

and car with the speed of 180 mph crosses it 36 times

here, the time-mean speed, vt is given below,

vt = (39*195 +38*190+37*185+36*180)/(39+38+37+38)

= 186.433 mph

and space mean speed is given by,

= (39+38+37+36)/(39/195+38/190+37/1850+36/180)

=187.5 mph

2)  There would be only four number of observations when the aerial photo is given, therefore time mean speed, vt in that condition will be calculated as

Vt = 195+190+185+180/4

  = 187.5

Vs= 4/(1/195+1/190+1/185+1/180)

= 188.36 mph

2)  There would be only four number of observations when the aerial photo is given, therefore time mean speed, vt, in that condition will be calculated as

Vt = 195+190+185+180/4

  = 187.5

Vs= 4/(1/195+1/190+1/185+1/180)

= 188.36 mph

4 0
3 years ago
Calculate the theoretical density of FCC iron (eg. austenitic stainless steel). The lattice parameter for FCC iron is 0.357 nm a
Ann [662]

Answer: 12.4 feet

Explanation:

If there is a smooth transition and there is no change in slopes, energy considerations can be used

The cube has a kinetic energy of

ke = mv^2/2 = 10 lbm * 20^2ft^2/s^2 / 2 = 2000 lbm-ft^2 / s^2

At the highest point when there is a gain in potential energy

pe = mgh = 10 lbm * 32.2 ft/s^2 * h ft = 322 lbm ft^2/s^2

If there is no loss in energies,

pe = ke

322h lbm ft^2/s^2 = 2000 lbm ft^2/s^2

h = 2000 /322 = 6.211 (ft)

= h / sin(30) = 12.4 ft

8 0
2 years ago
What is computer software​
barxatty [35]
Sometimes for a phone or computer
5 0
3 years ago
You are stopped at a red traffic light and are first in line at the intersection. When the traffic light changes to green, you s
Ostrovityanka [42]

Answer:

Go, but only if the intersection is clear.

Explanation:

Traffic at intersection can be complicated at times. If the green light comes on after a red light, you have the right of way to go, but you should be careful to only go when the intersection is clear to avoid an accident. Once using the road, a good driver should be conscious of the other road users, as accidents might happen from you claiming your-right of-way

8 0
3 years ago
Other questions:
  • Lydia is the CEO for a large pharmaceutical manufacturer. Her company is in the final stages of FDA
    12·1 answer
  • Biologists use a sequence of letters A, C, T, and G to model a genome. A gene isa substring of a genome that starts after a trip
    5·1 answer
  • A high-voltage direct-current (dc) transmission line between Celilo, Oregon and Sylmar, California is 845 mi in length. The line
    15·1 answer
  • technician A says that in any circuit, electrical current takes the path of least resistance. technician B says that while this
    13·1 answer
  • Small droplets of carbon tetrachloride at 68 °F are formed with a spray nozzle. If the average diameter of the droplets is 200 u
    10·1 answer
  • You are a designer of a new processor. You have to choose between two possible implementations (called M1 and M2) of the same ar
    5·1 answer
  • The air loss rate for a straight truck or bus with the engine off and the brakes
    11·1 answer
  • This is various straps secured on a worker to distribute the fall arrest forces. What is depicted in the image?
    6·2 answers
  • 9. A piece of Cherry wood is 5/4 x 4" X 4'<br> What is the length in inches?
    10·1 answer
  • What is a splitter gearbox​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!