1 / 7

Operating Systems Date:26/3/14 By B Harishma 11CS30009

Operating Systems Date:26/3/14 By B Harishma 11CS30009. Paging. Logical Address  Address generated by the CPU Divide logical memory into blocks of same size called PAGES . Physical Address  Address seen by the memory unit Physical address of a process can be non contiguous.

nura
Download Presentation

Operating Systems Date:26/3/14 By B Harishma 11CS30009

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Operating Systems Date:26/3/14 By B Harishma 11CS30009

  2. Paging • Logical Address  Address generated by the CPU Divide logical memory into blocks of same size called PAGES. • Physical Address  Address seen by the memory unit Physical address of a process can be non contiguous. Divide physical memory into fixed size blocks called FRAMES. “Page table is used to translate logical address to physical address”

  3. Size of frame: power of 2 with a range between 512 bytes to 16 Mbytes. • To run a program of size N pages, one need to have N free frames and the program is then loaded. 0 1 2 0 3 1 4 2 3 5 Physical Memory Logical Memory 6 Page Table Task is to perform mapping. 7

  4. MMU CPU RAM LA PA Address Translation scheme: • Logical address space= 2mPage Size = 2n • Then the high-order bits of logical address designates the page number and the n low-order bits designates the page offset. Page number Page offset m-n n p is an index into the page table contains base address of each page in physical memory. d is the displacement within the page and when combined with the physical memory address that is sent to the memory unit. p d

  5. Physical address Logical address CPU f000....0000 f Paging Hardware: p d f d f111....1111 f p Page Table Physical Memory

  6. Paging Example External Fragmentation: Holes are scattered in memory. Paging scheme does not suffer from external fragmentation. Reason : There is no need of contiguous memory. But, it does suffer from --------------------INTERNAL FRAGMENTATION Reason : Pages and frames are basic units and cannot be divided further.

  7. Small page size  low page sizesize of page table increases  I/O operations from disk increases initially slow User’s View: Process Contained in single contiguous memory space. By implementation, process can only access its memory--- PROTECTION.

More Related