382 views
2 votes
2 votes
A machine has a $32-bit$ address space and an $8-KB$ page. The page table is entirely in hardware, with one $32-bit$ word per entry. When a process starts, the page table is copied to the hardware from memory, at one word every $100\: nsec.$ If each process runs for $100\: msec$ (including the time to load the page table), what fraction of the $CPU$ time is devoted to loading the page tables?

1 Answer

1 votes
1 votes
8 KB pages will lead to 13 bits for the offset → 2 ¹⁹ entries in the page table

Time to upload page table = 2 ¹⁹ x 100 ns = 52.4288 msec

Loading of pages takes 52 msec.

If each process runs for 100 msec (including the time to load the page table), then 52 msec is used to load the page table and remaining 48 msec is used for running .

So total of 52% of time is used in loading the page tables

Related questions

1 votes
1 votes
2 answers
3
admin asked Oct 26, 2019
1,669 views
If an instruction takes $1\: nsec$ and a page fault takes an additional $n\: nsec,$ give a formula for the effective instruction time if page faults occur every $k$ instr...