Computer system with a 32-bit logical address and 4k-byte page size. assume that each entry of a page table consists of 4bytes.
a. suppose that this system supports up to 64mb of physical memory.
how many bits are there in the physical address?
how many entries are there un a page table?
if this system uses a one-level paging scherne, what is the size of page table?

b. suppose that this system supports up to 2^30 bytes of physical memory.
if this system uses a conventional single-level page tavle, what would the size of a page table be?
if we want the size of each page table to be no gather than the page size(4kb), what scheme would you want to use?

Respuesta :

The number of bits in the physical address is 26 bits. The number of entries in a page table is [tex]\mathbf{2^{20}}[/tex] entries. The size of the page table in a one-level paging scheme is 4MB.


What is paging in Operating System?

Paging is a storage method used in operating systems to recover activities as pages from secondary storage and place them in primary memory. The basic purpose of pagination is to separate each procedure into pages.

We are given the following parameters:

  • 32-bit logical address
  • Page size = 4 KB = [tex]\mathbf{2^{12} \ bytes }[/tex]
  • Size of each Page table entry = 4 bytes

Suppose the system supports physical memory size = 64 MB = [tex]\mathbf{2^{26} \ bytes}[/tex]

Thus, the number of bits in the physical address is computed as:

= [tex]\mathbf{log_2 \{Physical-memory-size\}}[/tex]

[tex]=\mathbf{log_2(2^{26})}}[/tex]

= 26 bits

The number of entries in a page table = logical address space size/page size

The number of entries in a page table [tex]\mathbf{= \dfrac{2^{32}}{2^{12}}}[/tex]

[tex]\mathbf{=2^{20}}[/tex] entries

In a one-level paging scheme, the size of the table is:

= entire no. of page entries × page table size

= [tex]\mathbf{2^{20}\times 4 \ bytes}[/tex]

= 4 MB

b.

suppose that this system supports up to 2^30 bytes of physical memory.

  • The size of the page table will be the same as 4 MB due to the fact that the number of entries, as well as, the page table entry size is the same.

Since the size of the page table surpasses that of a single page. A page cannot include a whole page table. Therefore, the page table must be broken into parts to fit onto numerous pages, and an additional level of the page table is required to access this page table.

  • This is called the Multi-Level Paging system.

Therefore, we can conclude that the number of bits in the physical address is 26 bits, the number of entries in a page table is [tex]\mathbf{2^{20}}[/tex] entries, and the size of the page table in a one-level paging scheme is 4MB.

Learn more about Paging in Operating System here:

https://brainly.com/question/17004314

#SPJ1