1 / 7

Information Security - 2

Information Security - 2. Topic: Architectural Aid to Secure Systems Engineering V. Kamakoti RISE LAB, Department of Computer Science and Engineering IIT Madras Session – 13: PAGING AND VIRTUAL MEMORY. Virtual Memory and Paging.

persaud
Download Presentation

Information Security - 2

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. Information Security - 2 Topic: Architectural Aid to Secure Systems Engineering V. Kamakoti RISE LAB, Department of Computer Science and Engineering IIT Madras Session – 13: PAGING AND VIRTUAL MEMORY

  2. Virtual Memory and Paging • It is always enough if the next instruction to be executed and the data needed to execute the same are available in the memory. • The complete code and data segment need not be available. • Use of paging to realize the stuff! • By using segmentation the processor calculates an 32-bit effective address.

  3. Paging fundamentals • Each page is 4096 bytes • Physical RAM has page frames like photo frames, which is also 4096 bytes. • A page is copied into the page frame, if needed and removed to accommodate some other page. • By this, a 4 GB code can run on a 128MB physical memory • This is also called demand paging.

  4. Paging Technique 32-bit Address 12-bit address Page Directory Stored In RAM (Location of every page in RAM if it is loaded, else INVALID) + 20-bit address

  5. Protected Mode Addressing with paging 10 10 12 DIR OFFSET TABLE PAGE FRAME PAGE TABLE PAGE DIRECTORY PHYS ADDRS 4KB entries with 4 bytes per entry 4KB entries with 4 bytes per entry PG TBL ENTRY DIR ENTRY If 20 bytes are used as a single level paging then page table alone is 4 MB which is inefficient. So two level paging. Develop the page table on demand TLB’s used to improve performance Dirty bit accommodated in each page entry CR3 REG

  6. Protected Mode Addressing - Paging entries

  7. End of Session-13Thank You

More Related