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
The greater the force applied to an object, the _____ the change in speed or direction of the object.
storchak [24]

Answer:

b

Explanation:

8 0
3 years ago
If the bending moment (M) is 4,176 ft-lb and the beam is an 1 beam, calculate the bending stress (psi) developed at a point with
SpyIntel [72]

Answer:

Bending stress at point 3.96 is \sigma_b = 1.37 psi

Explanation:

Given data:

Bending Moment M is 4.176 ft-lb = 50.12 in- lb

moment of inertia I = 144 inc^4

y = 3.96 in

\sigma_b = \frac{M}{I} \times y

putting all value to get bending stress

\sigma_b = \frac{50.112}{144} \times 3.96  

\sigma_b =  1.37 psi

Bending stress at point 3.96 is \sigma_b = 1.37 psi

3 0
3 years ago
You want a potof water to boil at 105 celcius. How heavy a
ankoles [38]

Answer:

35.7 kg lid we put

Explanation:

given data

temperature = 105 celcius

diameter = 15 cm

Patm = 101 kPa

to find out

How heavy a  lid should you put

solution

we know Psaturated from table for temperature is 105 celcius is

Psat = 120.8 kPa

so

area will be here

area = \frac{\pi }{4} d^2    ..................1

here d is diameter

put the value in equation 1

area = \frac{\pi }{4} 0.15^2

area = 0.01767 m²

so net force is

Fnet = ( Psat - Patm ) × area

Fnet = ( 120.8 - 101 ) × 0.01767

Fnet = 0.3498 KN = 350 N

we know

Fnet = mg

mass = \frac{Fnet}{g}

mass  = \frac{350}{9.8}

mass = 35.7 kg

so 35.7 kg lid we put

3 0
3 years ago
The 5-kg collar has a velocity of 5 m>s to the right when it is at A. It then travels along the smooth guide. Determine its s
Gnoma [55]

Answer:

The speed at point B is 5.33 m/s

The normal force at point B is 694 N

Explanation:

The length of the spring when the collar is in point A is equal to:

lA=\sqrt{0.2^{2}+0.2^{2}  }=0.2\sqrt{2}m

The length in point B is:

lB=0.2+0.2=0.4 m

The equation of conservation of energy is:

(Tc+Ts+Vc+Vs)_{A}=(Tc+Ts+Vc+Vs)_{B} (eq. 1)

Where in point A: Tc = 1/2 mcVA^2, Ts=0, Vc=mcghA, Vs=1/2k(lA-lul)^2

in point B: Ts=0, Vc=0, Tc = 1/2 mcVB^2, Vs=1/2k(lB-lul)^2

Replacing in eq. 1:

\frac{1}{2}m_{c}v_{A}^{2}+0+m_{c}gh_{A}+      \frac{1}{2}k(l_{A}-l_{ul})  ^{2}=\frac{1}{2}m_{c}v_{B}^{2}+0+0+\frac{1}{2}k(l_{B}-l_{ul})  ^{2}

Replacing values and clearing vB:

vB = 5.33 m/s

The balance forces acting in point B is:

Fc-NB-Fs=0

\frac{m_{C}v_{B}^{2}   }{R}-N_{B}-k(l_{B}-l_{ul})=0

Replacing values and clearing NB:

NB = 694 N

6 0
3 years ago
Read 2 more answers
Find three examples of good websites and three examples of bad websites. List them below, and in a
Fudgin [204]

Answer: its c

Explanation:

4 0
3 years ago
Other questions:
  • Write a SELECT statement that returns the same result set as this SELECT statement. Substitute a subquery in a WHERE clause for
    10·1 answer
  • Please select the word from the list that best fits the definition I love horses and want to be a veterinarian
    12·2 answers
  • Counter argument for why engineers dont make a positive change in the world.​
    6·1 answer
  • A piston-cylinder apparatus has a piston of mass 2kg and diameterof
    12·1 answer
  • As described in "A Note About Bacterial Reproduction -- and the "Culture Bias,"" the organism Epulopisciumdoes not divide by bin
    12·1 answer
  • An electric kettle is required to heat 0.64 kg of water from 15.4°C to 98.2°C in six
    8·1 answer
  • When could you use the engineering design process in your own life?
    9·1 answer
  • Using the following data, determine the percentage retained, cumulative percentage retained, and percent passing for each sieve.
    6·1 answer
  • What is an example of a traditional career?
    6·2 answers
  • Re armature of a 4 pole DC generator is required to generate an emf of 520v on open circuit when revolving at a speed of 660rpm.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!