Machine-translated by Google. Questions are authored in English.
Top

Discussion

In a two-level page table, the outer table contains

  • A.pointers to the inner page tables
  • B.the actual data of each page
  • C.the free frame list
  • D.the reference bits for every frame

Answer: C

Correct answer: pointers to the inner page tables

In a two-level scheme the outer table holds pointers to inner page tables, and the inner tables hold the frame numbers. The logical address splits into three parts: an index into the outer table, an index into the inner one, and an offset. The reason for the arrangement is size. A 32-bit address space with 4 KB pages needs a million page-table entries per process, which at four bytes each is 4 MB of contiguous memory - unacceptable for every process. Splitting the table means only the outer table and the inner tables actually in use need exist; the rest are simply absent, and most processes use a small part of their address space. The cost is another memory access per translation, which is why the TLB matters so much. 64-bit architectures need three or four levels for the same reason, and the alternative approaches are the hashed page table and the inverted page table, which keeps one entry per physical frame rather than per virtual page.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.