• edited by
39,102 views
59 59 votes

Let the page fault service time be $10$ milliseconds(ms) in a computer with average memory access time being $20$ nanoseconds (ns). If one page fault is generated every $10^6$ memory accesses, what is the effective access time for memory?

  1. $21$ ns
  2. $30$ ns
  3. $23$ ns
  4. $35$ ns

7 Answers

Best answer
91 91 votes

Open slides $12-13$ to check : 

http://web.cs.ucla.edu/~ani/classes/cs111.08w/Notes/Lecture%2016.pdf$$\begin{align*} \text{EMAT} &= \frac{1}{10^6} \times 10\ \text{ms} + \left(1-\frac{1}{10^6} \right ) \times 20\ \text{ns} \\ &= 29.99998\ \text{ns} \\ &\approx 30\ \text{ns} \end{align*}$$Answer = option B

• edited by
1 flag:
✌ Edit necessary (Ysh 1 “Forgot to add 20ns term to 10 ms in page miss, ans is exact 30”)
34 34 votes

Effective memory access time = Memory access time + page fault rate *page fault service time

so here

$\text{EMAT} = 20 ns  + \frac{ 1}{10^6} \times 10 \times 10^6 ns$

$= 20 + 10 =30 ns$                  

Ans is B.

1 flag:
✌ Edit necessary (Prathamesh_Bhujbal “formula is most likely wrong”)
6 6 votes

Page Service = 10 ms

P = 1 / 10^6 

M = 20ns

EMAT = (Page service) P + M

EMAT = (10 ms) * (1 / 10^6) + 20 ns

=10ns + 20ns

so, EMAT = 30ns

Ans) Option B.

2 2 votes

Here the explanation

1 1 vote

EMAT=1/10^6×(10 ms+20ns) +(1−1/10^6)×20 ns

now solving it when we convert 10ms in ns it wil be 10*10^6 ns which is huge incomparison to 20ns so neglect 20ns 

and also when are multiplying (1−1/10^6)×20 ns it is approx 20ns again 

Now EMAT = 10*10^6ns * 1/10^6 + 20ns 

So EMAT = 10ns + 20ns = 30ns approx

So option B is right answer 30ns

Answer:
Position:
Show:

Related questions

83 83 votes
5 answers 5 answers
29.3k
29.3k views
go_editor asked Sep 29, 2014
29,306 views
A thread is usually defined as a "light weight process" because an Operating System (OS) maintains smaller data structure for a thread than for a process. In relation to ...
2 2 votes
2 answers 2 answers
4.5k
4.5k views
go_editor asked Jul 8, 2016
4,485 views
If the disk head is located initially at 32, find the number of disk moves required with FCFS if the disk queue of I/O blocks requests are 98. 37, 14, 124, 65, 67.2393103...
76 76 votes
4 answers 4 answers
24.7k
24.7k views
go_editor asked Sep 29, 2014
24,703 views
On a non-pipelined sequential processor, a program segment, which is the part of the interrupt service routine, is given to transfer $500$ bytes from an I/O device to mem...
116 116 votes
6 answers 6 answers
42.0k
42.0k views
go_editor asked Sep 29, 2014
42,040 views
Let the time taken to switch from user mode to kernel mode of execution be $T1$ while time taken to switch between two user processes be $T2$. Which of the following is c...