Question: Consider a process P running in a Linux - like operating system that implements demand paging. The page / frame size in the system is
Consider a process P running in a Linuxlike operating system that implements demand paging. The pageframe size in the system is KB The process has pages in its heap. The process stores an array of K integers size of integer is bytes in these pages. The process then proceeds to access the integers in the array sequentially. Assume that none of these pages of the heap are initially in physical memory. The memory allocation policy of the OS allocates only physical frames at any point of time, to the store these pages of the heap. In case of a page fault and all frames have been allocated to the heap of the process, the OS uses a LRU policy to evict one of these pages to make space for the new page. Approximately what percentage of the K accesses to array elements will result in a page fault?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
