10,085 views
10 10 votes

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

  1. 21.4 ns
  2. 29.9 ns
  3. 23.5 ns
  4. 35.1 ns

6 Answers

Best answer
14 14 votes

Answer is B

given that one page fault for every 10^6 memory access, so the probability of page fault is  p-> 1/106   

page fault service time is = 10ms-> 10 * 10 ns ( note : given options are in Nano seconds better if you convert this to nano seconds at first).

memory access time is = 20ns

effective access time would be = p * page fault service time + (1-p) * memory access time

=> 1/10^6 *10*10^6+(1-1/10^6)20=>30-1/10^6=> closer answer is 29.9 ns 

selected by
3 3 votes

I think correct answer is 30 ns. Part (B) is more closer to it so it could be selected.

Explanation -> 

I am assuming memory  has hierarchical organization. In all cases (Fault or not)  page will be accessed form main memory. 

Notice - Page fault service time does not include memory access time. Please correct me if i am wrong.

(Refer -http://stackoverflow.com/questions/40027359/what-is-page-fault-service-time  and 

https://gateoverflow.in/2122/gate2011-20-ugcnet-june2013-ii-48?show=126742#c126742 )

Case 1(No Page Fault): -  20 ns.

Case 2(Page Fault): - (20 + 10*10^6) ns.

Effective memory access  time  = (1- (1/10^6))*(Case 1 time)  + (1/10^6)*(Case 2 time)  = 20 + 10  = 30 ns. 

edited by
–1 –1 vote

EMAT=Frequency of page fault  x Page fault service time + Memory access time =>p x Ps +m

EMAT=p x Ps + m

EMAT= 1/10^6 x 10x10^-3 + 20 ns=29ns

Answer:
Position:
Show:

Related questions

66 66 votes
6 answers 6 answers
36.7k
36.7k views
Rucha Shelke asked Sep 26, 2014
36,733 views
A CPU generates $32$-bit virtual addresses. The page size is $4$ KB. The processor has a translation look-aside buffer (TLB) which can hold a total of $128$ page table en...
3 3 votes
4 answers 4 answers
7.0k
7.0k views
go_editor asked Jul 1, 2016
6,950 views
Dirty bit is used to indicate which of the following?A page fault has occurredA page has corrupted dataA page has been modified after being loaded into cacheAn illegal ac...
9 9 votes
5 answers 5 answers
28.8k
28.8k views
jaiganeshcse94 asked May 27, 2016
28,844 views
If the page size in a 32-bit machine is 4K bytes then the size of page table is1 M bytes2 M bytes4 M bytes4 K bytes