0

Consider, 2 level paging , with Process P, Inner page table PTi, and outer page table PTo.

Now we know that P and PTi are divided in various pages but PTo is in 1 page only.

So in order to run process P, we need few pages of P , few pages of PTi and complete PTo in main memory.

If PTi asks for a page of P which is not present in main memory , then thats a PAGE FAULT and that particular page of P will be loaded in.

Now the question is :

If PTo asks for a page of PTi which is not present in main memory , then ,is that also a PAGE FAULT ?

Please explain.

If YES, then can it be extended to all k page tables ( for k-level paging)

If No, then why ?

Surbhi Jain
  • 369
  • 1
  • 11

1 Answers1

2

In forward mapped page tables [ x86, arm ], yes faults will be generated if a page table walk encounters a missing page table. You typically need the top most (most significant bits ) table, but any of the intermediate ones can be missing.

mevets
  • 10,070
  • 1
  • 21
  • 33