• edited by
28,307 views
53 53 votes

Suppose the time to service a page fault is on the average $10$ milliseconds, while a memory access takes $1$ microsecond. Then a $99.99\%$ hit ratio results in average memory access time of

  1. $1.9999$ milliseconds
  2. $1$ millisecond
  3. $9.999$ microseconds
  4. $1.9999$ microseconds 

5 Answers

Best answer
71 71 votes
Since nothing is told about page tables, we can assume page table access time is included in memory access time.

So, average memory access time

$= .9999 \times 1 + 0.0001 \times 10,000$
$= 0.9999 + 1$
$= 1.9999$ microseconds

Correct Answer: $D$
• edited by
12 12 votes

p=miss rate, 1−p=hit rate, ma=memory access time, ps=page fault time (or) service time

EMAT = p(ps+ma)+(1−p)×ma = p(ps)+p(ma)+ma−p(ma) = p(ps)+ma


Given Values:  p = $\frac{0.001}{100}$ = $10^{-4}$,  ps = 10×$10^{-3}$ sec,  ma=$10^{-6}$ sec

EMAT = $10^{-4}$x(10×$10^{-3}$)+$10^{-6}$ sec

EMAT = $10^{-4}$×($10^{-2}$)+$10^{-6}$ sec

EMAT = $10^{-6}$+$10^{-6}$ sec

EMAT = 1+1 μsec

EMAT = 2 μsec
 

So correct answer is D

3 3 votes
CAN ANYONE TELL ME WHERE AM I WRONG

Step 1: memory read to access the page table (1 micro second)

case 1) frame number found -> second memory access to access the desired page from memory (1 microsecond)

case 2) frame number not found -> page fault -> service the page fault (10000 microseconds)

Step 2:   (.9999*(first memory access time + second memory access time)) +

             (.0001*(first memory access time + time to service page fault))

             = (.9999*2)+(.0001*10001)

             =2.9999 micro seconds
0 0 votes
Average memory access time = (P*t1) + [(1-P)t2]
= (0.9999*1) + [(1-0.9999) *10000]
= (0.9999) + (0.0001 * 10000)
= 0.9999 + 1
= 1.9999 microseconds
Answer:
Position:
Show:

Related questions

51 51 votes
8 answers 8 answers
17.3k
17.3k views
Kathleen asked Sep 14, 2014
17,325 views
A multiset is an unordered collection of elements where elements may repeat any number of times. The size of a multiset is the number of elements in it, counting repetiti...
60 60 votes
10 answers 10 answers
21.4k
21.4k views
Kathleen asked Sep 14, 2014
21,368 views
Which of the following need not necessarily be saved on a context switch between processes?General purpose registersTranslation look-aside bufferProgram counterAll of the...
49 49 votes
6 answers 6 answers
24.1k
24.1k views
Kathleen asked Sep 14, 2014
24,126 views
Given the following relation instance.$$\begin{array}{|l|l|}\hline \text{X} & \text{Y} & \text{Z} \\\hline \text{1} & \text{4} & \text{2} \\ \text{1} & \text{5} & \te...
52 52 votes
6 answers 6 answers
21.2k
21.2k views
Kathleen asked Sep 14, 2014
21,226 views
The value of $j$ at the end of the execution of the following C program:int incr (int i) { static int count = 0; count = count + i; return (count); } main () { int i, j; ...