Summary
Here is a quick summary for you!
You have now seen a top-to-bottom review of two virtual memory systems. Hopefully, most of the details were easy to follow, as you should have already had a good understanding of the basic mechanisms and policies.
You have also learned a bit about Linux. While a large and complex system, it inherits many good ideas from the past, many of which we have not had room to discuss in detail. For example, Linux performs lazy copy-on-write copying of pages upon fork()
, thus lowering overheads by avoiding unnecessary copying. Linux also demands zeroes pages (using memory-mapping of the /dev/zero
device), and has a background swap daemon (swapd
) that swaps pages to disk to reduce memory pressure. Indeed, the VM is filled with good ideas taken from the past, and also includes many of its own innovations.
Get hands-on with 1400+ tech skills courses.