Welcome to OS Simulator

About topic



Know About topic

Paging



page_mapping

Pages and Frames

All About Paging


Paging is a memory management scheme that eliminates the need for contiguous allocation of physical memory. This scheme permits the physical address space of a process to be non – contiguous.

The mapping from virtual to physical address is done by the memory management unit (MMU) which is a hardware device and this mapping is known as paging technique.

  • The Physical Address Space is conceptually divided into a number of fixed-size blocks, called frames
  • The Logical address Space is also splitted into fixed-size blocks, called pages.
  • Page Size = Frame Size

Advantages and Disadvantages

  • Paging reduces external fragmentation, but still suffer from internal fragmentation.
  • Paging is simple to implement and assumed as an efficient memory management technique.
  • Due to equal size of the pages and frames, swapping becomes very easy.
  • Page table requires extra memory space, so may not be good for a system having small RAM.


Paging Mechanism

All About Paging Simulator

  • Inputs

    • No. of Pages and Frames
    • Size of a Page/Frame
    • Page Table Contents
    • Logical Address

  • Output

    The output which would reflect after we enter our inputs is the real physical address which contains the instructions which we want to access. In computers, MMU(memory management unit) is assigned this job to convert the logical address to physical address.