edited by
2,546 views
2 votes
2 votes
Consider a demand paged memory system, page table is held in registers. It takes 800 nsec to service a page fault if empty page is available or replaced page is not modified and 950 nsec if the replaced page is modified, main memory access time is 120 nsec. If page to be replaced is modified 85% of time and page faultrate is 20% then average memory access time is ________. (Upto 1 decimal place)
edited by

1 Answer

4 votes
4 votes

Emat = P*( Page fault service time + Memory access time ) + (1-P)( Memory access time )

          = P*(Page fault service time) + Memory access time

Page fault service time  = pm(Time taken when page modified) + (1-pm)(Time taken when page not modified)

                                         = 0.85*950 + 0.15*800 = 927.5

Emat = 0.2*927.5+120 = 185.5 + 120 = 305.5

edited by

Related questions

135
views
0 answers
1 votes
Reetu Chaudhary asked May 6
135 views
For a certain page trace starting with no page in the memory, a demand-paged memory system operated under the LRU replacement policy results in 9 and 11 page faults when the primary memory ... a) 9 and 7(b) 7 and 9(c) 10 and 12(d) 6 and 7
586
views
0 answers
1 votes
Samujjal Das asked Jan 24, 2017
586 views
Consider the two-dimensional array A$:$int A[ ] [ ] = new int[100][100]; where A[0][0] is at location 200 in a paged memory system with pages of size 200. A small process that ... (int j=0;j<100;j++) for(int i=0;i<100;i++) A[i][j]=0;
649
views
2 answers
0 votes
none30 asked Jul 1, 2023
649 views
On a system using demand paging, it takes 200 ns to satisfy a memory request if the page is in memory. If the page is not in memory, the ... to be replaced has been modified?600.19 micro seconds590.19 micro seconds790.19 micro secondsnone