ECE344-Lecture12-Memory Management

ECE344-Lecture12-Memory Management - Lecture 12: Memory...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Lecture 12: Memory Management David Lie ECE344 University of Toronto
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 ECE344: Operating Systems Outline Introduction to memory management Fragmentation Paging Hardware Support – Virtual Memory Translation – Page Tables – Linear, Multi-level and inverted Page Tables Memory Resource Tracking: – Bitmaps and Linked lists – The Coremap – The Address space structure – The stack, the heap and sbrk()
Background image of page 2
3 ECE344: Operating Systems Introduction to Memory Management We have seen how OS provides the thread abstraction OS also needs to manage program memory (address space) and its own memory What should be the goals of memory management? – Low Memory overhead • As much memory should be used by applications as possible. Issues: memory management overhead, fragmentation – Low Performance overhead • Memory system should not take up many CPU cycles. CPU should be spend as much time executing application as possible.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 ECE344: Operating Systems Memory Management Requirements Isolation/Modularity: – Program memory should be protected from other programs Abstraction/Virtualization: – Programs have the illusion that they have as much memory as address space Sharing – Programs may need to share memory with other programs for communication
Background image of page 4
5 ECE344: Operating Systems Programs and Memory Addresses When a program is written, it uses symbolic addresses
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 16

ECE344-Lecture12-Memory Management - Lecture 12: Memory...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online