Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider a three-level page table to translat... Start Learning for Free
Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below:
 
The page size is 4 KB(1 KB = 210 bytes ) and page table entry size at every level is 8 bytes. A process P is currently using 2 GB(1 GB = 230 bytes) virtual memory which is mapped to 2 GB of physical memory. The minimum amount of memory required for the page table of P across all levels is _____________ KB.
  • a)
     4108
  • b)
     4110
  • c)
     3108
  • d)
     4008
Correct answer is option 'A'. Can you explain this answer?
Most Upvoted Answer
Consider a three-level page table to translate a 39-bit virtual addres...
Given,
  • Virtual address (VA) = 39 bits
  • Page size = 4 KB
  • Physical address (PA) = 2 GB
  • Page table entry size (PTE) = 8 B
  • Three level pages tables with address division (9, 9, 9, 12)
Three level pages tables with address division (9, 9, 9, 12) means:
  • 9 most significant bits for indexing into the level−1 (outer level).
  • 9 bits for the level−2 index.
  • 9 bits for the level−3 index.
  • 12 bits for the offset within a page.
The entries of the level−1 page table are pointers to a level−2 page table, the entries of the level−2 page table are pointers to a level−3 page table, and the entries of the level−3 page table is PTEs that contain actual frame number where our desired word resides.
9 bits for a level means 29 entries in the one-page table of that level.
For our process P:
P is using 2 GB of its VM. The rest of its VM is unused.
2 GB VM will have 2 GB/4 KB = 219 Pages.
But level −3 page table has only 29 entries. So, one-page table of level −3 can point to 29 pages of VM only. So, we need 210 level−3 page tables of process P.
So, at level−3, we have 210 page tables. So, we need 210 entries in level−2. But level −2 page table has only 29 entries, so, one-page table of level −2 can only point to 29 page tables of level−3. So, we need 2 level−2 page tables.
So, we need 1 level−1 page table to point to level−2 page tables.
So, for process P, we need only 1 level−1 page table, 2 level−2 page tables, and 210 level−3 page tables.
Note that, all the page tables, at every level, have the same size which is 29 × 8 B = 212 B = 4 KB (because every page table at every level has 29 entries and page table entry size at every level is 8 B ).
So, in total, we need 1 + 2 + 210 page tables (1 level−1,2 level−2,210 level−3, and each page table size is 4 KB.
So, total page tables size,
= 1027 × 4 KB
= 4108 KB
Hence, the correct option is (A).
Free Test
Community Answer
Consider a three-level page table to translate a 39-bit virtual addres...
Given,
  • Virtual address (VA) = 39 bits
  • Page size = 4 KB
  • Physical address (PA) = 2 GB
  • Page table entry size (PTE) = 8 B
  • Three level pages tables with address division (9, 9, 9, 12)
Three level pages tables with address division (9, 9, 9, 12) means:
  • 9 most significant bits for indexing into the level−1 (outer level).
  • 9 bits for the level−2 index.
  • 9 bits for the level−3 index.
  • 12 bits for the offset within a page.
The entries of the level−1 page table are pointers to a level−2 page table, the entries of the level−2 page table are pointers to a level−3 page table, and the entries of the level−3 page table is PTEs that contain actual frame number where our desired word resides.
9 bits for a level means 29 entries in the one-page table of that level.
For our process P:
P is using 2 GB of its VM. The rest of its VM is unused.
2 GB VM will have 2 GB/4 KB = 219 Pages.
But level −3 page table has only 29 entries. So, one-page table of level −3 can point to 29 pages of VM only. So, we need 210 level−3 page tables of process P.
So, at level−3, we have 210 page tables. So, we need 210 entries in level−2. But level −2 page table has only 29 entries, so, one-page table of level −2 can only point to 29 page tables of level−3. So, we need 2 level−2 page tables.
So, we need 1 level−1 page table to point to level−2 page tables.
So, for process P, we need only 1 level−1 page table, 2 level−2 page tables, and 210 level−3 page tables.
Note that, all the page tables, at every level, have the same size which is 29 × 8 B = 212 B = 4 KB (because every page table at every level has 29 entries and page table entry size at every level is 8 B ).
So, in total, we need 1 + 2 + 210 page tables (1 level−1,2 level−2,210 level−3, and each page table size is 4 KB.
So, total page tables size,
= 1027 × 4 KB
= 4108 KB
Hence, the correct option is (A).
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below:The page size is 4 KB(1 KB = 210 bytes ) and page table entry size at every level is 8 bytes. A process P is currently using 2 GB(1 GB = 230 bytes) virtual memory which is mapped to 2 GB of physical memory. The minimum amount of memory required for the page table of P across all levels is _____________ KB.a)4108b)4110c)3108d)4008Correct answer is option 'A'. Can you explain this answer?
Question Description
Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below:The page size is 4 KB(1 KB = 210 bytes ) and page table entry size at every level is 8 bytes. A process P is currently using 2 GB(1 GB = 230 bytes) virtual memory which is mapped to 2 GB of physical memory. The minimum amount of memory required for the page table of P across all levels is _____________ KB.a)4108b)4110c)3108d)4008Correct answer is option 'A'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below:The page size is 4 KB(1 KB = 210 bytes ) and page table entry size at every level is 8 bytes. A process P is currently using 2 GB(1 GB = 230 bytes) virtual memory which is mapped to 2 GB of physical memory. The minimum amount of memory required for the page table of P across all levels is _____________ KB.a)4108b)4110c)3108d)4008Correct answer is option 'A'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below:The page size is 4 KB(1 KB = 210 bytes ) and page table entry size at every level is 8 bytes. A process P is currently using 2 GB(1 GB = 230 bytes) virtual memory which is mapped to 2 GB of physical memory. The minimum amount of memory required for the page table of P across all levels is _____________ KB.a)4108b)4110c)3108d)4008Correct answer is option 'A'. Can you explain this answer?.
Solutions for Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below:The page size is 4 KB(1 KB = 210 bytes ) and page table entry size at every level is 8 bytes. A process P is currently using 2 GB(1 GB = 230 bytes) virtual memory which is mapped to 2 GB of physical memory. The minimum amount of memory required for the page table of P across all levels is _____________ KB.a)4108b)4110c)3108d)4008Correct answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below:The page size is 4 KB(1 KB = 210 bytes ) and page table entry size at every level is 8 bytes. A process P is currently using 2 GB(1 GB = 230 bytes) virtual memory which is mapped to 2 GB of physical memory. The minimum amount of memory required for the page table of P across all levels is _____________ KB.a)4108b)4110c)3108d)4008Correct answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below:The page size is 4 KB(1 KB = 210 bytes ) and page table entry size at every level is 8 bytes. A process P is currently using 2 GB(1 GB = 230 bytes) virtual memory which is mapped to 2 GB of physical memory. The minimum amount of memory required for the page table of P across all levels is _____________ KB.a)4108b)4110c)3108d)4008Correct answer is option 'A'. Can you explain this answer?, a detailed solution for Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below:The page size is 4 KB(1 KB = 210 bytes ) and page table entry size at every level is 8 bytes. A process P is currently using 2 GB(1 GB = 230 bytes) virtual memory which is mapped to 2 GB of physical memory. The minimum amount of memory required for the page table of P across all levels is _____________ KB.a)4108b)4110c)3108d)4008Correct answer is option 'A'. Can you explain this answer? has been provided alongside types of Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below:The page size is 4 KB(1 KB = 210 bytes ) and page table entry size at every level is 8 bytes. A process P is currently using 2 GB(1 GB = 230 bytes) virtual memory which is mapped to 2 GB of physical memory. The minimum amount of memory required for the page table of P across all levels is _____________ KB.a)4108b)4110c)3108d)4008Correct answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below:The page size is 4 KB(1 KB = 210 bytes ) and page table entry size at every level is 8 bytes. A process P is currently using 2 GB(1 GB = 230 bytes) virtual memory which is mapped to 2 GB of physical memory. The minimum amount of memory required for the page table of P across all levels is _____________ KB.a)4108b)4110c)3108d)4008Correct answer is option 'A'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev