Memory: allocation, paging and virtual memory

Logical and physical addresses, contiguous allocation and fragmentation, paging with a TLB, and virtual memory with page replacement and thrashing.

About 8 hours of study

Learning objectives

Lessons

  1. 1

    Memory: addresses and allocation

    Logical and physical addresses, base and limit registers, fixed and variable partitions, first fit, best fit and worst fit, and internal and external fragmentation.

  2. 2

    Paging Intermediate

    Pages and frames, the page table, splitting an address into page number and offset, the TLB and effective access time, and multi-level page tables.

  3. 3

    Virtual memory and page replacement Intermediate

    Demand paging and what happens on a page fault, its cost, the FIFO, Optimal and LRU replacement algorithms, Belady's anomaly, and thrashing.

Module practice

Module quiz

1. What does the limit register do?
2. With a page size of 1024, which page and offset does logical address 2100 have?
3. Holes of 100, 500, 200, 300 and 600 KB. Where does first fit put a 212 KB process?
4. A TLB access takes 20 ns, memory 100 ns, and the hit ratio is 80%. What is the effective access time?
5. What is Belady's anomaly?
6. In the clock algorithm the hand points at a frame whose reference bit is 1. What does it do?

‹ Synchronization and deadlockInput and output, disks and files ›