Lecture 10, part 1: Virtual memory and replacement strategies

Previous lecture Next lecture

Exam

Details on concepts and implementation of virtual memory

Important questions:

Locality of memory accesses

The idea of "virtual memory"

Demand paging

Discussion: paging performance

-> Page fault rate has to be extremely low (p is close to 0)

Discussion: additional properties

Discussion: demand segmentation

Demand paging has won in practice!

Page replacement

Replacement strategies

Least recently used (LRU)

Least recently used (LRU) (2)

Least recently used (LRU) (3)

Lecture 10, part 2: Virtual memory and thrashing

Second chance (clock) (1)

Second chance (clock) (2)

Discussion: free page buffer

...accelerates page fault handling

Page frame assignment (1)

Page frame assignment (2)

Thrashing (1)

Thrashing (2)

Solution 1: swapping of processes

Solution 2: working set model

Working set model

Determining the working set and timers (1)

Determining the working set and timers (2)

Determine the working set with WSclock

Discussion: working set problems

Loading strategy

Conclusions

Simple (special purpose) systems that do not necessarily need these features should better not implement them