Memory Physical and Virtual

Slides:



Advertisements
Similar presentations
SE-292: High Performance Computing
Advertisements

CS 333 Introduction to Operating Systems Class 12 - Virtual Memory (2) Jonathan Walpole Computer Science Portland State University.
CS 333 Introduction to Operating Systems Class 12 - Virtual Memory (2) Jonathan Walpole Computer Science Portland State University.
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
1 Last Class: Introduction Operating system = interface between user & architecture Importance of OS OS history: Change is only constant User-level Applications.
Virtual Memory I Chapter 8.
CS 140 Lecture Notes: Virtual MemorySlide 1 Load-Time Relocation Process 1 0 ∞ Process 3 Operating System Process 6.
Silberschatz, Galvin and Gagne  Operating System Concepts Segmentation Memory-management scheme that supports user view of memory. A program.
CS 333 Introduction to Operating Systems Class 12 - Virtual Memory (2) Jonathan Walpole Computer Science Portland State University.
1 OS & Computer Architecture Modern OS Functionality (brief review) Architecture Basics Hardware Support for OS Features.
11/10/2005Comp 120 Fall November 10 8 classes to go! questions to me –Topics you would like covered –Things you don’t understand –Suggestions.
Software Development and Software Loading in Embedded Systems.
CS333 Intro to Operating Systems Jonathan Walpole.
CS 153 Design of Operating Systems Spring 2015 Lecture 17: Paging.
Operating Systems ECE344 Ding Yuan Paging Lecture 8: Paging.
Processes and Virtual Memory
Virtual Memory 1 Computer Organization II © McQuain Virtual Memory Use main memory as a “cache” for secondary (disk) storage – Managed jointly.
Embedded Real-Time Systems
EEL 4709C Prof. Watson Herman Group 4 Ali Alshamma, Derek Montgomery, David Ortiz 11/11/2008.
Main Memory CSSE 332 Operating Systems Rose-Hulman Institute of Technology.
CS703 - Advanced Operating Systems By Mr. Farhan Zaidi.
CS 704 Advanced Computer Architecture
CS 140 Lecture Notes: Virtual Memory
Introduction to Operating Systems
Vivek Seshadri 15740/18740 Computer Architecture
Virtual Memory Acknowledgment
Processes and threads.
Virtualization Virtualize hardware resources through abstraction CPU
Operating Systems CMPSC 473
CSE 120 Principles of Operating
Outline Paging Swapping and demand paging Virtual memory.
Advanced Operating Systems (CS 202)
CS 704 Advanced Computer Architecture
Virtual Memory Hakim Weatherspoon CS 3410, Spring 2013
William Stallings Computer Organization and Architecture
What should we teach regarding…
Instructors: Haryadi Gunawi
CSE 120 Principles of Operating
Paging and Segmentation
Chapter 8: Main Memory.
Lecture 28: Virtual Memory-Address Translation
CS 140 Lecture Notes: Virtual Memory
Introduction to Operating Systems
Virtual Memory 4 classes to go! Today: Virtual Memory.
CSC Classes Required for TCC CS Degree
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 8 11/24/2018.
Virtual Memory Hakim Weatherspoon CS 3410, Spring 2012
PA0 is due in 12 hours PA1 will be out in 12 hours
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 9 12/1/2018.
Memory Allocation CS 217.
CS 140 Lecture Notes: Virtual Memory
Prof. Hakim Weatherspoon
Lecture 3: Main Memory.
Architectural Support for OS
CSCE 313 – Introduction to UNIx process
Practical Session 9, Memory
Virtual Memory Overcoming main memory size limitation
Prof. Kavita Bala and Prof. Hakim Weatherspoon
CSE 451: Operating Systems Autumn 2003 Lecture 10 Paging & TLBs
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 9 4/5/2019.
CSE 451: Operating Systems Autumn 2003 Lecture 10 Paging & TLBs
Lecture 8: Efficient Address Translation
Architectural Support for OS
CSE 471 Autumn 1998 Virtual memory
CS703 - Advanced Operating Systems
Virtual Memory Lecture notes from MKP and S. Yalamanchili.
CS 140 Lecture Notes: Virtual Memory
Virtual Memory Use main memory as a “cache” for secondary (disk) storage Managed jointly by CPU hardware and the operating system (OS) Programs share main.
Virtual Memory Hakim Weatherspoon CS 3410 Computer Science
Virtual Memory Hakim Weatherspoon CS 3410 Computer Science
Presentation transcript:

Memory Physical and Virtual Prof. Sirer CS 316 Cornell University

System Organization Recap We have covered the principles of processor design Can execute a program, efficiently We have covered the bare essentials of memory organization Can store program instructions and data Time to look at advanced issues and generalize our computer system Isolation Protection Virtualization

Processor & Memory Currently, the processor’s address lines are directly routed via the system bus to the memory banks Simple, fast What happens when the program issues a load or store to an invalid location? e.g. 0x000000000 ? uninitialized pointer 0x7fffffff Stack Processor Heap Data Text 0x1000 Memory

Physical Addressing Problems What happens when another program is executed concurrently on another processor? The addresses will conflict We could try to relocate the second program to another location Assuming there is one Introduces more problems! 0x7fffffff Stack Stack Heap Heap Data Data Text Text Processors 0x1000 Memory

Physical Addressing Problems What happens when another program is executed concurrently on another processor? The addresses will conflict We could try to relocate the second program to another location Assuming there is one Introduces more problems! Stack 0x7fffffff Stack Heap Data Text 0x4000 Heap Processors Data Text 0x1000 Memory

Protection Memory accesses can be confined with the aid of some simple hardware Segmented architectures Page tables Single-level Multi-level Inverted TLBs