Recent questions tagged page-faults

4 4 votes
1 1 answer
141
141 views
A demand-paging system has $3$ physical page frames.Consider the reference string:$\text{A, B, C, D, B, A, B, A, D, C}$Starting with empty memory, determine the total num...
3 3 votes
1 1 answer
247
247 views
A system uses:$4$ KB pages A $4$-entry fully associative TLB LRU replacement $$ \textbf{Initial TLB:} $$$$\begin{array}{|c|c|c|c|}\hline\text{Valid} & \text{VPN} & \text{...
1 1 vote
1 1 answer
168
168 views
A machine uses a two-level page table. The page-directory base address is held in a register.Assume:One physical-memory access takes $100$ ns Page directories and page ta...
2 2 votes
1 1 answer
141
141 views
A paged virtual-memory system has the following measured parameters:\[\begin{array}{|l|l|}\hline\textbf{Measurement} & \textbf{Value} \\\hlineP_t = \text{probability of a...
3 3 votes
2 2 answers
162
162 views
Consider the following page-reference string:$1,\ 2,\ 3,\ 4,\ 1,\ 2,\ 5,\ 1,\ 2,\ 3,\ 4,\ 5$The FIFO page-replacement algorithm is used with $\textbf{4}$ page frames.Init...
4 4 votes
2 2 answers
144
144 views
A system makes an average of $2$ main-memory accesses per instruction.Whenever a page fault occurs, it causes an overhead of $40$ millisecondsWhat is the maximum allowabl...
0 0 votes
1 1 answer
97
97 views
If an instruction takes $p$ microseconds and a page fault takes an additional $q$ microseconds, the effective instruction time if, on average, a page fault occurs every $...
2 2 votes
0 0 answers
523
523 views
Assume that an OS uses a two-level page table setup with the following attributes: 32-bit address space, size of each PTE to be 4 bytes and page size of 4KB. Further, a p...
0 0 votes
1 1 answer
491
491 views
Consider the following page address trace generated by a cache main memory scheme and has a cache capacity of four pages:1,6, 4,5, 1, 4, 3, 2, 1, 2, 1, 4, 6, 7, 4Assuming...
1 1 vote
0 0 answers
549
549 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 ...
5 5 votes
1 1 answer
963
963 views
Consider the cache of size 512 bytes that is direct-mapped?Suppose the size of integer is 4 bytes and block size is 16 bytes. Assume cache is initially empty and all data...
0 0 votes
0 0 answers
488
488 views
Given below are two statements: one is labelled as Assertion $\text{A}$ and the other is labelled as Reason $\text{R}$.A virtual memory system uses first-in first-out pag...
0 0 votes
1 1 answer
1.5k
1.5k 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 request takes 7 ms if a free fram...
84 84 votes
11 answers 11 answers
31.2k
31.2k views
Consider the following two-dimensional array $\text{D}$ in the $\text{C}$ programming language, which is stored in row-major order:int D[128][128];Demand paging is used f...
1 1 vote
1 1 answer
1.9k
1.9k views
Which of the following option guarantee that a computer system transit from user mode to kernel modemalloc callsystem callfunction callpage fault
0 0 votes
1 answers 1 answer
1.1k
1.1k views
When a page is referred for the first time, then it will be counted in page fault or not?.E.g page reference 1,2,3,4,2,1.LRU is used with 3 frames(initially empty).
2 2 votes
1 1 answer
970
970 views
Compute the hit rate and miss/fault rate in least recently used page replacement algorithm for the given reference string with $4$ page frames. String: $7 \; 0 \; 1 \; 2 ...