Virtual Memory. CSCI 2021: Machine Architecture and Organization
|
|
- Stanley Sullivan
- 7 years ago
- Views:
Transcription
1 Virtual Memory CSCI 2021: Machine Architecture and Organization Antonia Zhai Department Computer Science and Engineering University of Minnesota With Slides from Bryant and O Hallaron A System with Physical Memory Only Addresses generated by the CPU correspond directly to physical memory! Physical! Addresses! Memory! 0:! 1:! CPU! N-1:! Examples: most Cray machines, early PCs, nearly all embedded systems, etc. CSCI
2 Motivations for Virtual Memory Simplify Memory Management Multiple processes resident in main memory Each process with its own address space Only active code and data is actually in memory Allocate more memory to process as needed Use Physical DRAM as a Cache for the Disk Address space of a process can exceed physical memory size Sum of address spaces of multiple processes can exceed physical memory Provide Protection One process can t interfere with another. because they operate in different address spaces. User process cannot access privileged information different sections of address spaces have different permissions CSCI Motivation #1: Memory Management Multiple processes can reside in physical memory. How do we resolve address conflicts? what if two processes access something at the same address? %esp! kernel virtual memory! stack! memory invisible to! user code! Linux/x86 process! memory! image! Memory mapped region! forshared libraries! runtime heap (via malloc)! uninitialized data (.bss)! initialized data (.data)! program text (.text)! forbidden! CSCI
3 Motivation #2: DRAM a Cache for Disk Full address space is quite large: 32-bit addresses: ~4,000,000,000 (4 billion) bytes 64-bit addresses: ~16,000,000,000,000,000,000 (16 quintillion) bytes Disk storage is ~300X cheaper than DRAM storage 80 GB of DRAM: ~ $33, GB of disk: ~ $110 To access large amounts of data in a cost-effective manner, the bulk of the data must be stored on disk 1GB: ~$200! 80 GB: ~$11 DRAM! Disk! CSCI Address Space Address space An ordered set of nonnegative integer addresses Linear address space Integers in the address space is consecutive Virtual address space The set of addresses generated by the CPU {0,, N-1} specified by n bits where 2 n = N Physical address space Corresponds to the physical memory in the system {0,, M-1} specified by m bits where 2 m = M CSCI
4 VM Address Translation Normally, M < N Address Translation MAP: V P U { } For virtual address a: MAP(a) = a if data at virtual address a at physical address a in P MAP(a) = if data at virtual address a not in physical memory Either invalid or stored on disk CSCI A System with Virtual Memory Examples: workstations, servers, modern PCs, etc. Virtual! Addresses! Address Translation! 0:! 1:! Physical! Addresses! Memory! 0:! 1:! CPU! P-1:! M-1:! n Address Translation: Hardware converts virtual addresses to physical addresses via OS-managed lookup table (page table)! Disk! CSCI
5 Separate Virtual Address Spaces Virtual and physical address spaces divided into equal-sized blocks blocks are called pages (both virtual and physical) Each process has its own virtual address space operating system controls how virtual pages as assigned to physical memory Virtual Address Space for Process 1:" Virtual Address Space for Process 2:" N-1! N-1! VP 1! VP 2!...! VP 1! VP 2!...! Address Translation! M-1! PP 2! PP 7! PP 1 Physical " Address " Space (DRAM)" (e.g., read/only library code)! CSCI VM Address Translation: Hit Processor! a! Hardware! Addr Trans! Mechanism! a'! Main! Memory! virtual address! part of the! on-chip! physical address! memory mgmt unit (MMU)! CSCI
6 VM Address Translation: Miss Processor! a! Hardware! Addr Trans! Mechanism!! a'! page fault! fault! handler! Main! Memory! virtual address! part of the! physical address! on-chip! memory mgmt unit (MMU)! DISK! OS performs! this transfer! (only if miss)! CSCI Page Faults What if an object is on disk rather than in memory? Page table entry indicates virtual address not in memory OS exception handler invoked to move data from disk into memory current process suspends, others can resume OS has full control over placement, etc. Virtual! Addresses! CPU! Before fault! Addr. Tran! Physical! Addresses! Memory! Virtual! Addresses! CPU! After fault! Addr. Tran.! Physical! Addresses! Memory! Disk! Disk! CSCI
7 Processor Signals Controller Read block of length P starting at disk address X and store starting at memory address Y Read Occurs Direct Memory Access (DMA) Under control of I/O controller I / O Controller Signals Completion Interrupt processor Servicing a Page Fault OS resumes suspended process Processor" Reg! Memory" (1) Initiate Block Read" Memory-I/O bus" (2) DMA Transfer" (3) Read Done" I/O" controller" disk" Disk" disk" Disk" CSCI VM Address Translation P = 2 p = page size (bytes). N = 2 n = Virtual address limit M = 2 m = Physical address limit n 1" p" p 1" 0" virtual page number" page offset" virtual address! address translation" m 1" p" p 1" 0" physical page number" page offset" physical address! Page offset bits don t change as a result of translation! CSCI
8 Virtual Page! Number! Valid! 1! 1! 1! 1! 1! 1! 1! Memory resident! page table! (physical page! or disk address)! Page Tables Physical Memory! Disk Storage! (swap file or! regular file system file)! 2 (n-p) entries CSCI Address Translation via Page Table page table base register! VPN acts as! table index! virtual address! n 1! p! p 1! virtual page number (VPN)! page offset! valid! access! physical page number (PPN)! if valid= then page! not in memory! m 1! p! p 1! physical page number (PPN)! page offset! physical address! CSCI
9 Address Translation via Page Table 0x VPN acts as! table index! 0xdeadbeef! n 1! p! p 1! 0xdeadb! 0xeef! valid! access! physical page number (PPN)! 0xabc if valid= then page! not in memory! m 1! p! p 1! 0xabc! 0xeef! 0xabceef! CSCI Address Translation via Page Table 0x VPN acts as! table index! 0x ! n 1! p! p 1! valid! access! physical page number (PPN)! if valid= then page! not in memory! m 1! p! p 1! CSCI
10 Page Table Operation Translation Separate (set of) page table(s) per process VPN forms index into page table (points to a page table entry) Computing Physical Address Page Table Entry (PTE) provides information about page if (valid bit = 1) then the page is in memory è Use physical page number (PPN) to construct address if (valid bit = 0) then the page is on disk è Page fault CSCI Page table entry contains access rights information hardware enforces this protection (trap into OS if violation occurs) Page Tables! Memory! Process i:! VP 0:! VP 1:! VP 2:! Read?! Write?! Yes! Yes! No! Yes! Protection Physical Addr! PP 9! PP 4! No! No! XXXXXXX!!!!!!! 0:! 1:! Process j:! VP 0:! VP 1:! VP 2:! Read?! Write?! Yes! Yes! Yes! No! Physical Addr! PP 6! PP 9! No! No! XXXXXXX!!!!!!! N-1:! CSCI
11 Checking Protection Access rights field indicate allowable access e.g., read-only, read-write, execute-only typically support multiple protection modes (e.g., kernel vs. user) Protection violation fault if user doesn t have necessary permission page table base register VPN acts as table index Page Table Operation virtual address nœ1 p pœ1 0 virtual page number (VPN) page offset valid access physical page number (PPN) if valid=0 then page not in memory mœ1 p pœ1 physical page number (PPN) page offset 0 physical address CSCI Multi-Level Page Tables Given: 4KB (2 12 ) page size 32-bit address space 4-byte PTE Problem: Would need a 4 MB page table! è 2 20 *4 bytes Common solution multi-level page tables e.g., 2-level table (P6) Level 1 table: 1024 entries, each of which points to a Level 2 page table. Level 2 table: 1024 entries, each of which points to a page Level 1! Table! Level 2! Tables!...! CSCI
12 An Example for 2 Level Page Table Page directory byte page directory entries (PDEs) that point to page tables one page directory per process. page directory must be in memory when its process is running always pointed to by PDBR Page tables: byte page table entries (PTEs) that point to pages. page tables can be paged in and out. page directory! 1024! PDEs! Up to 1024 page tables! 1024! PTEs!...! 1024! PTEs!...! 1024! PTEs! CSCI Representation of Virtual Address Space Page Directory! P=1, M=1" P=1, M=1" P=0, M=0" P=0, M=1" Simplified Example P=1, M=1" PT 3! P=0, M=0" P=1, M=1" P=0, M=1" P=1, M=1" P=0, M=0" PT 2! P=1, M=1" P=0, M=1" P=0, M=1" PT P=0, M=1" P=0, M=0" P=0, M=0" 16 page virtual address space Flags P: Is entry in physical memory? M: Has this part of VA space been mapped? Page 15! Page 14! Page 13! Page 12! Page 11! Page 1 Page 9! Page 8! Page 7! Page 6! Page 5! Mem Addr! Page 4! Disk Addr! Page 3! In Mem! Page 2! Page 1! On Disk! Page Unmapped! CSCI
13 Speeding up Translation with a TLB Translation Lookaside Buffer (TLB) Small hardware cache in MMU Maps virtual page numbers to physical page numbers Contains complete page table entries for small number of pages CPU" VA" TLB" Lookup" hit" PA" Main" Memory" miss" Trans-" lation" CSCI Address Translation with a TLB n 1! p! p 1! virtual page number! page offset! virtual address! valid! tag! physical page number!.!.!.! TLB! TLB hit! =! physical address! CSCI
14 Simple Memory System Example Addressing 14-bit virtual addresses 12-bit physical address Page size = 64 bytes 13! 12! 11! 1 9! 8! 7! 6! 5! 4! 3! 2! 1! VPN! (Virtual Page Number)" VPO! (Virtual Page Offset)" 11! 1 9! 8! 7! 6! 5! 4! 3! 2! 1! PPN! (Physical Page Number)" PPO! (Physical Page Offset)" CSCI Simple Memory System Page Table Only show first 16 entries (256 entries total) VPN PPN Valid VPN PPN Valid A B C D 2D E F 0D 1 CSCI
15 Simple Memory System TLB TLB 16 entries Direct mapped TLBT! TLBI! 13! 12! 11! 1 9! 8! 7! 6! 5! 4! 3! 2! 1! VPN! VPO! Tag PPN Valid Tag PPN Valid Tag PPN Valid Tag PPN Valid D D A D 1 A CSCI Address Translation Example Virtual Address 0x03D4 TLBT! TLBI! 13! 12! 11! 1 9! 8! 7! 6! 5! 4! 3! 2! 1! VPN! VPO! VPN TLBI TLBT TLB Hit? Page Fault? PPN: Physical Address 11! 1 9! 8! 7! 6! 5! 4! 3! 2! 1! PPN! PPO! CSCI
16 Simple Memory System TLB TLB 16 entries 4-way associative TLBT! TLBI! 13! 12! 11! 1 9! 8! 7! 6! 5! 4! 3! 2! 1! VPN! VPO! Set Tag PPN Valid Tag PPN Valid Tag PPN Valid Tag PPN Valid D D A D 1 0A CSCI Address Translation Example #1 Virtual Address 0x03D4 TLBT! TLBI! 13! 12! 11! 1 9! 8! 7! 6! 5! 4! 3! 2! 1! VPN! VPO! VPN TLBI TLBT TLB Hit? Page Fault? PPN: Physical Address 11! 1 9! 8! 7! 6! 5! 4! 3! 2! 1! PPN! PPO! CSCI
17 Address Translation Example #2 Virtual Address 0x0B8F TLBT! TLBI! 13! 12! 11! 1 9! 8! 7! 6! 5! 4! 3! 2! 1! VPN! VPO! VPN TLBI TLBT TLB Hit? Page Fault? PPN: Physical Address 11! 1 9! 8! 7! 6! 5! 4! 3! 2! 1! PPN! PPO! CSCI Address Translation Example #3 Virtual Address 0x0040 TLBT! TLBI! 13! 12! 11! 1 9! 8! 7! 6! 5! 4! 3! 2! 1! VPN! VPO! VPN TLBI TLBT TLB Hit? Page Fault? PPN: Physical Address 11! 1 9! 8! 7! 6! 5! 4! 3! 2! 1! PPN! PPO! CSCI
18 Programmer s View Large flat address space Can allocate large blocks of contiguous addresses Processor owns machine System View Has private address space Unaffected by behavior of other processes User virtual address space created by mapping to set of pages Need not be contiguous Allocated dynamically Main Themes Enforce protection during address translation OS manages many processes simultaneously Continually switching among processes Especially when one must wait for resource E.g., disk I/O to handle page fault CSCI Review of Abbreviations Symbols: Components of the virtual address (VA) TLBI: TLB index TLBT: TLB tag VPO: virtual page offset VPN: virtual page number Components of the physical address (PA) PPO: physical page offset (same as VPO) PPN: physical page number CSCI
19 Making Use of Virtual Memory CSCI Virtual Memory of a Linux Process Different for each process! Identical for each process! 0xc " %esp Process-specific data" structures " (e.g., page tables," task and mm structs, kernel" stack)" Physical memory" Kernel code and data" User stack" Kernel! virtual! memory! 0x " brk Memory mapped region " for shared libraries" Runtime heap (via malloc)" Uninitialized data (.bss)" Initialized data (.data)" 0x " Program text (.text)" Forbidden" 0" Process! virtual! memory! CSCI
20 How Linux Organize Virtual Memory task_struct mm mm_struct pgd mmap vm_area_struct vm_end vm_start vm_prot vm_flags vm_next Process virtual memory" Shared libraries" 0x " vm_end vm_start vm_prot vm_flags vm_next vm_end vm_start vm_prot vm_flags vm_next Data" Text" 0x0804a020" 0x " 0" CSCI Memory Mapping Creation of new VM area done via memory mapping create new vm_area_struct and page tables for area area can be backed by (i.e., get its initial values from) : regular file on disk (e.g., an executable object file) initial page bytes come from a section of a file nothing (e.g., bss) initial page bytes are zeros dirty pages are swapped back and forth between a special swap file. Key point: no virtual pages are copied into physical memory until they are referenced! known as demand paging crucial for time and space efficiency CSCI
21 Fork() Revisited Make copies of the old process s mm_struct, vm_area_struct s, and page tables. At this point the two processes are sharing all of their pages. How to get separate spaces without copying all the virtual pages from one space to another? copy-on-write make pages of writeable areas read-only flag vm_area_struct s for these areas as private copy-on-write. writes by either process to these pages will cause page faults. fault handler recognizes copy-on-write, makes a copy of the page, and restores write permissions. Net result: copies are deferred until absolutely necessary (i.e., when one of the processes tries to modify a shared page). CSCI Exec() Revisited same for each process! 0xc %esp! brk! process-specific data! structures! (page tables,! task and mm structs)! physical memory! kernel code/data/stack! stack! Memory mapped region! for shared libraries! runtime heap (via malloc)! uninitialized data (.bss)! initialized data (.data)! program text (.text)! forbidden! kernel! VM! demand-zero! process! VM!.data!.text! libc.so! demand-zero!.data!.text! p! To run a new program p in the current process using exec(): free vm_area_struct s and page tables for old areas. create new vm_area_struct s and page tables for new areas. stack, bss, data, text, shared libs. text and data backed by ELF executable object file. bss and stack initialized to zero. set PC to entry point in.text Linux will swap in code and data pages as needed. CSCI
22 Memory System Summary Virtual Memory Supports many OS-related functions Process creation Initial Forking children Task switching Protection Combination of hardware & software implementation Software management of tables, allocations Hardware access of tables Hardware caching of table entries (TLB) CSCI
Intel P6 Systemprogrammering 2007 Föreläsning 5 P6/Linux Memory System
Intel P6 Systemprogrammering 07 Föreläsning 5 P6/Linux ory System Topics P6 address translation Linux memory management Linux page fault handling memory mapping Internal Designation for Successor to Pentium
More informationVirtual Memory. How is it possible for each process to have contiguous addresses and so many of them? A System Using Virtual Addressing
How is it possible for each process to have contiguous addresses and so many of them? Computer Systems Organization (Spring ) CSCI-UA, Section Instructor: Joanna Klukowska Teaching Assistants: Paige Connelly
More informationVirtual vs Physical Addresses
Virtual vs Physical Addresses Physical addresses refer to hardware addresses of physical memory. Virtual addresses refer to the virtual store viewed by the process. virtual addresses might be the same
More informationCS 61C: Great Ideas in Computer Architecture Virtual Memory Cont.
CS 61C: Great Ideas in Computer Architecture Virtual Memory Cont. Instructors: Vladimir Stojanovic & Nicholas Weaver http://inst.eecs.berkeley.edu/~cs61c/ 1 Bare 5-Stage Pipeline Physical Address PC Inst.
More informationLecture 17: Virtual Memory II. Goals of virtual memory
Lecture 17: Virtual Memory II Last Lecture: Introduction to virtual memory Today Review and continue virtual memory discussion Lecture 17 1 Goals of virtual memory Make it appear as if each process has:
More informationCS5460: Operating Systems
CS5460: Operating Systems Lecture 13: Memory Management (Chapter 8) Where are we? Basic OS structure, HW/SW interface, interrupts, scheduling Concurrency Memory management Storage management Other topics
More informationCarnegie Mellon Virtual Memory of a Linux Process Process-specific data structs (ptables, Different for
Outline CS 6V81-05: System Security and Malicious Code Analysis Understanding the Implementation of Virtual Memory 1 Zhiqiang Lin Department of Computer Science University of Texas at Dallas February 29
More informationThis Unit: Virtual Memory. CIS 501 Computer Architecture. Readings. A Computer System: Hardware
This Unit: Virtual CIS 501 Computer Architecture Unit 5: Virtual App App App System software Mem CPU I/O The operating system (OS) A super-application Hardware support for an OS Virtual memory Page tables
More informationCOS 318: Operating Systems. Virtual Memory and Address Translation
COS 318: Operating Systems Virtual Memory and Address Translation Today s Topics Midterm Results Virtual Memory Virtualization Protection Address Translation Base and bound Segmentation Paging Translation
More informationW4118: segmentation and paging. Instructor: Junfeng Yang
W4118: segmentation and paging Instructor: Junfeng Yang Outline Memory management goals Segmentation Paging TLB 1 Uni- v.s. multi-programming Simple uniprogramming with a single segment per process Uniprogramming
More informationLinux kernen. Version 2.4.20, 2.5.59. 11 arch. DIKU Intel, SMP. . NEL, Kernel, 2003.2.5-1 -
Linux kernen Version 2.4.20, 2.5.59 11 arch. DIKU Intel, SMP.. NEL, Kernel, 2003.2.5-1 - Linux processer Processer User mode/kernel mode. Kernel threads Processer/tråde. fork(), clone(), shmem etc. Parent
More informationIntel s Virtualization Extensions (VT-x) So you want to build a hypervisor?
Intel s Virtualization Extensions (VT-x) So you want to build a hypervisor? Mr. Jacob Torrey February 26, 2014 Dartmouth College 153 Brooks Road, Rome, NY 315.336.3306 http://ainfosec.com @JacobTorrey
More informationVM Architecture. Jun-Chiao Wang, 15 Apr. 2002 NCTU CIS Operating System lab. 2002 Linux kernel trace seminar
VM Architecture Jun-Chiao Wang, 15 Apr. 2002 NCTU CIS Operating System lab. 2002 Linux kernel trace seminar Outline Introduction What is VM? Segmentation & Paging in Linux Memory Management Page Frame
More informationBoard Notes on Virtual Memory
Board Notes on Virtual Memory Part A: Why Virtual Memory? - Letʼs user program size exceed the size of the physical address space - Supports protection o Donʼt know which program might share memory at
More informationMicrokernels, virtualization, exokernels. Tutorial 1 CSC469
Microkernels, virtualization, exokernels Tutorial 1 CSC469 Monolithic kernel vs Microkernel Monolithic OS kernel Application VFS System call User mode What was the main idea? What were the problems? IPC,
More informationIOMMU: A Detailed view
12/1/14 Security Level: Security Level: IOMMU: A Detailed view Anurup M. Sanil Kumar D. Nov, 2014 HUAWEI TECHNOLOGIES CO., LTD. Contents n IOMMU Introduction n IOMMU for ARM n Use cases n Software Architecture
More informationVirtualization in Linux KVM + QEMU
CS695 Topics in Virtualization and Cloud Computing KVM + QEMU Senthil, Puru, Prateek and Shashank 1 Topics covered KVM and QEMU Architecture VTx support CPU virtualization in KMV Memory virtualization
More informationUses for Virtual Machines. Virtual Machines. There are several uses for virtual machines:
Virtual Machines Uses for Virtual Machines Virtual machine technology, often just called virtualization, makes one computer behave as several computers by sharing the resources of a single computer between
More informationMemory Management Outline. Background Swapping Contiguous Memory Allocation Paging Segmentation Segmented Paging
Memory Management Outline Background Swapping Contiguous Memory Allocation Paging Segmentation Segmented Paging 1 Background Memory is a large array of bytes memory and registers are only storage CPU can
More information1. Computer System Structure and Components
1 Computer System Structure and Components Computer System Layers Various Computer Programs OS System Calls (eg, fork, execv, write, etc) KERNEL/Behavior or CPU Device Drivers Device Controllers Devices
More informationVirtual Machines. COMP 3361: Operating Systems I Winter 2015 http://www.cs.du.edu/3361
s COMP 3361: Operating Systems I Winter 2015 http://www.cs.du.edu/3361 1 Virtualization! Create illusion of multiple machines on the same physical hardware! Single computer hosts multiple virtual machines
More informationChapter 5 Cloud Resource Virtualization
Chapter 5 Cloud Resource Virtualization Contents Virtualization. Layering and virtualization. Virtual machine monitor. Virtual machine. Performance and security isolation. Architectural support for virtualization.
More informationCS 695 Topics in Virtualization and Cloud Computing. More Introduction + Processor Virtualization
CS 695 Topics in Virtualization and Cloud Computing More Introduction + Processor Virtualization (source for all images: Virtual Machines: Versatile Platforms for Systems and Processes Morgan Kaufmann;
More informationThe Quest for Speed - Memory. Cache Memory. A Solution: Memory Hierarchy. Memory Hierarchy
The Quest for Speed - Memory Cache Memory CSE 4, Spring 25 Computer Systems http://www.cs.washington.edu/4 If all memory accesses (IF/lw/sw) accessed main memory, programs would run 20 times slower And
More informationHow To Write A Page Table
12 Paging: Introduction Remember our goal: to virtualize memory. Segmentation (a generalization of dynamic relocation) helped us do this, but has some problems; in particular, managing free space becomes
More information6.033 Computer System Engineering
MIT OpenCourseWare http://ocw.mit.edu 6.033 Computer System Engineering Spring 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. 6.033 Lecture 3: Naming
More informationI/O. Input/Output. Types of devices. Interface. Computer hardware
I/O Input/Output One of the functions of the OS, controlling the I/O devices Wide range in type and speed The OS is concerned with how the interface between the hardware and the user is made The goal in
More informationVirtual Memory. Chapter 4
Chapter 4 Virtual Memory Linux processes execute in a virtual environment that makes it appear as if each process had the entire address space of the CPU available to itself. This virtual address space
More informationFull and Para Virtualization
Full and Para Virtualization Dr. Sanjay P. Ahuja, Ph.D. 2010-14 FIS Distinguished Professor of Computer Science School of Computing, UNF x86 Hardware Virtualization The x86 architecture offers four levels
More informationCOS 318: Operating Systems. Virtual Machine Monitors
COS 318: Operating Systems Virtual Machine Monitors Kai Li and Andy Bavier Computer Science Department Princeton University http://www.cs.princeton.edu/courses/archive/fall13/cos318/ Introduction u Have
More informationW4118 Operating Systems. Instructor: Junfeng Yang
W4118 Operating Systems Instructor: Junfeng Yang Outline x86 segmentation and paging hardware Linux address space translation Copy-on-write Linux page replacement algorithm Linux dynamic memory allocation
More informationCSC 2405: Computer Systems II
CSC 2405: Computer Systems II Spring 2013 (TR 8:30-9:45 in G86) Mirela Damian http://www.csc.villanova.edu/~mdamian/csc2405/ Introductions Mirela Damian Room 167A in the Mendel Science Building mirela.damian@villanova.edu
More informationOperating Systems. Lecture 03. February 11, 2013
Operating Systems Lecture 03 February 11, 2013 Goals for Today Interrupts, traps and signals Hardware Protection System Calls Interrupts, Traps, and Signals The occurrence of an event is usually signaled
More informationLast Class: OS and Computer Architecture. Last Class: OS and Computer Architecture
Last Class: OS and Computer Architecture System bus Network card CPU, memory, I/O devices, network card, system bus Lecture 3, page 1 Last Class: OS and Computer Architecture OS Service Protection Interrupts
More informationVirtualization. Types of Interfaces
Virtualization Virtualization: extend or replace an existing interface to mimic the behavior of another system. Introduced in 1970s: run legacy software on newer mainframe hardware Handle platform diversity
More informationHardware Based Virtualization Technologies. Elsie Wahlig elsie.wahlig@amd.com Platform Software Architect
Hardware Based Virtualization Technologies Elsie Wahlig elsie.wahlig@amd.com Platform Software Architect Outline What is Virtualization? Evolution of Virtualization AMD Virtualization AMD s IO Virtualization
More informationXen and the Art of. Virtualization. Ian Pratt
Xen and the Art of Virtualization Ian Pratt Keir Fraser, Steve Hand, Christian Limpach, Dan Magenheimer (HP), Mike Wray (HP), R Neugebauer (Intel), M Williamson (Intel) Computer Laboratory Outline Virtualization
More informationOutline: Operating Systems
Outline: Operating Systems What is an OS OS Functions Multitasking Virtual Memory File Systems Window systems PC Operating System Wars: Windows vs. Linux 1 Operating System provides a way to boot (start)
More informationChapter 6, The Operating System Machine Level
Chapter 6, The Operating System Machine Level 6.1 Virtual Memory 6.2 Virtual I/O Instructions 6.3 Virtual Instructions For Parallel Processing 6.4 Example Operating Systems 6.5 Summary Virtual Memory General
More informationOperating Systems 4 th Class
Operating Systems 4 th Class Lecture 1 Operating Systems Operating systems are essential part of any computer system. Therefore, a course in operating systems is an essential part of any computer science
More informationOperating Systems, 6 th ed. Test Bank Chapter 7
True / False Questions: Chapter 7 Memory Management 1. T / F In a multiprogramming system, main memory is divided into multiple sections: one for the operating system (resident monitor, kernel) and one
More informationProcess Description and Control. 2004-2008 william stallings, maurizio pizzonia - sistemi operativi
Process Description and Control 1 Process A program in execution (running) on a computer The entity that can be assigned to and executed on a processor A unit of activity characterized by a at least one
More informationOperating System Overview. Otto J. Anshus
Operating System Overview Otto J. Anshus A Typical Computer CPU... CPU Memory Chipset I/O bus ROM Keyboard Network A Typical Computer System CPU. CPU Memory Application(s) Operating System ROM OS Apps
More informationMulti-core Programming System Overview
Multi-core Programming System Overview Based on slides from Intel Software College and Multi-Core Programming increasing performance through software multi-threading by Shameem Akhter and Jason Roberts,
More informationMemory Management CS 217. Two programs can t control all of memory simultaneously
Memory Management CS 217 Memory Management Problem 1: Two programs can t control all of memory simultaneously Problem 2: One program shouldn t be allowed to access/change the memory of another program
More informationChapter 1 Computer System Overview
Operating Systems: Internals and Design Principles Chapter 1 Computer System Overview Eighth Edition By William Stallings Operating System Exploits the hardware resources of one or more processors Provides
More informationWe r e going to play Final (exam) Jeopardy! "Answers:" "Questions:" - 1 -
. (0 pts) We re going to play Final (exam) Jeopardy! Associate the following answers with the appropriate question. (You are given the "answers": Pick the "question" that goes best with each "answer".)
More informationELEC 377. Operating Systems. Week 1 Class 3
Operating Systems Week 1 Class 3 Last Class! Computer System Structure, Controllers! Interrupts & Traps! I/O structure and device queues.! Storage Structure & Caching! Hardware Protection! Dual Mode Operation
More information361 Computer Architecture Lecture 14: Cache Memory
1 361 Computer Architecture Lecture 14 Memory cache.1 The Motivation for s Memory System Processor DRAM Motivation Large memories (DRAM) are slow Small memories (SRAM) are fast Make the average access
More informationUsing Linux as Hypervisor with KVM
Using Linux as Hypervisor with KVM Qumranet Inc. Andrea Arcangeli andrea@qumranet.com (some slides from Avi Kivity) CERN - Geneve 15 Sep 2008 Agenda Overview/feature list KVM design vs other virtualization
More informationPOSIX. RTOSes Part I. POSIX Versions. POSIX Versions (2)
RTOSes Part I Christopher Kenna September 24, 2010 POSIX Portable Operating System for UnIX Application portability at source-code level POSIX Family formally known as IEEE 1003 Originally 17 separate
More informationPage 1 of 5. IS 335: Information Technology in Business Lecture Outline Operating Systems
Lecture Outline Operating Systems Objectives Describe the functions and layers of an operating system List the resources allocated by the operating system and describe the allocation process Explain how
More informationIntroduction to Virtual Machines
Introduction to Virtual Machines Carl Waldspurger (SB SM 89, PhD 95), VMware R&D 2010 VMware Inc. All rights reserved Overview Virtualization and VMs Processor Virtualization Memory Virtualization I/O
More informationCS161: Operating Systems
CS161: Operating Systems Matt Welsh mdw@eecs.harvard.edu Lecture 2: OS Structure and System Calls February 6, 2007 1 Lecture Overview Protection Boundaries and Privilege Levels What makes the kernel different
More informationChapter 10: Virtual Memory. Lesson 03: Page tables and address translation process using page tables
Chapter 10: Virtual Memory Lesson 03: Page tables and address translation process using page tables Objective Understand page tables Learn the offset fields in the virtual and physical addresses Understand
More informationComputer Architecture
Computer Architecture Slide Sets WS 2013/2014 Prof. Dr. Uwe Brinkschulte M.Sc. Benjamin Betting Part 11 Memory Management Computer Architecture Part 11 page 1 of 44 Prof. Dr. Uwe Brinkschulte, M.Sc. Benjamin
More informationVirtual Memory Paging
COS 318: Operating Systems Virtual Memory Paging Kai Li Computer Science Department Princeton University (http://www.cs.princeton.edu/courses/cos318/) Today s Topics Paging mechanism Page replacement algorithms
More informationARM VIRTUALIZATION FOR THE MASSES. Christoffer Dall <c.dall@virtualopensystems.com> <cdall@cs.columbia.edu>
ARM VIRTUALIZATION FOR THE MASSES Christoffer Dall ARM Smartphones Smartphones Tablets Tablets ARM Servers But now also... But now also... ARM Servers
More informationHow To Write To A Linux Memory Map On A Microsoft Zseries 2.2.2 (Amd64) On A Linux 2.3.2 2.4.2 3.5.2 4.5 (Amd32) (
Understanding Linux Memory Management SHARE 102 Session 9241 Dr. Ulrich Weigand Linux on zseries Development, IBM Lab Böblingen Ulrich.Weigand@de.ibm.com Linux Memory Management - A Mystery? What does
More informationOSes. Arvind Seshadri Mark Luk Ning Qu Adrian Perrig SOSP2007. CyLab of CMU. SecVisor: A Tiny Hypervisor to Provide
SecVisor: A Seshadri Mark Luk Ning Qu CyLab of CMU SOSP2007 Outline Introduction Assumption SVM Background Design Problems Implementation Kernel Porting Evaluation Limitation Introducion Why? Only approved
More informationSecurity Overview of the Integrity Virtual Machines Architecture
Security Overview of the Integrity Virtual Machines Architecture Introduction... 2 Integrity Virtual Machines Architecture... 2 Virtual Machine Host System... 2 Virtual Machine Control... 2 Scheduling
More informationLesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization
Lesson Objectives To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization AE3B33OSD Lesson 1 / Page 2 What is an Operating System? A
More informationCS 377: Operating Systems. Outline. A review of what you ve learned, and how it applies to a real operating system. Lecture 25 - Linux Case Study
CS 377: Operating Systems Lecture 25 - Linux Case Study Guest Lecturer: Tim Wood Outline Linux History Design Principles System Overview Process Scheduling Memory Management File Systems A review of what
More informationVirtual machines and operating systems
V i r t u a l m a c h i n e s a n d o p e r a t i n g s y s t e m s Virtual machines and operating systems Krzysztof Lichota lichota@mimuw.edu.pl A g e n d a Virtual machines and operating systems interactions
More informationConfiguring CoreNet Platform Cache (CPC) as SRAM For Use by Linux Applications
Freescale Semiconductor Document Number:AN4749 Application Note Rev 0, 07/2013 Configuring CoreNet Platform Cache (CPC) as SRAM For Use by Linux Applications 1 Introduction This document provides, with
More informationMemory management basics (1) Requirements (1) Objectives. Operating Systems Part of E1.9 - Principles of Computers and Software Engineering
Memory management basics (1) Requirements (1) Operating Systems Part of E1.9 - Principles of Computers and Software Engineering Lecture 7: Memory Management I Memory management intends to satisfy the following
More informationWHITE PAPER. AMD-V Nested Paging. AMD-V Nested Paging. Issue Date: July, 2008 Revision: 1.0. Advanced Micro Devices, Inc.
Issue Date: July, 2008 Revision: 1.0 2008 All rights reserved. The contents of this document are provided in connection with ( AMD ) products. AMD makes no representations or warranties with respect to
More informationLast Class: OS and Computer Architecture. Last Class: OS and Computer Architecture
Last Class: OS and Computer Architecture System bus Network card CPU, memory, I/O devices, network card, system bus Lecture 3, page 1 Last Class: OS and Computer Architecture OS Service Protection Interrupts
More informationVirtual Machines. Virtualization
Virtual Machines Marie Roch Tanenbaum 8.3 contains slides from: Tanenbaum 3 rd ed. 2008 1 Virtualization Started with the IBM System/360 in the 1960s Basic concept simulate multiple copies of the underlying
More informationGeneral Purpose Operating System Support for Multiple Page Sizes
The following paper was originally published in the Proceedings of the USENIX Annual Technical Conference (NO 98) New Orleans, Louisiana, June 1998 General Purpose Operating System Support for Multiple
More informationHybrid Virtualization The Next Generation of XenLinux
Hybrid Virtualization The Next Generation of XenLinux Jun Nakajima Principal Engineer Intel Open Source Technology Center Legal Disclaimer INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL
More informationVirtualization. Jia Rao Assistant Professor in CS http://cs.uccs.edu/~jrao/
Virtualization Jia Rao Assistant Professor in CS http://cs.uccs.edu/~jrao/ What is Virtualization? Virtualization is the simulation of the software and/ or hardware upon which other software runs. This
More informationOperating Systems. 05. Threads. Paul Krzyzanowski. Rutgers University. Spring 2015
Operating Systems 05. Threads Paul Krzyzanowski Rutgers University Spring 2015 February 9, 2015 2014-2015 Paul Krzyzanowski 1 Thread of execution Single sequence of instructions Pointed to by the program
More informationProcesses and Non-Preemptive Scheduling. Otto J. Anshus
Processes and Non-Preemptive Scheduling Otto J. Anshus 1 Concurrency and Process Challenge: Physical reality is Concurrent Smart to do concurrent software instead of sequential? At least we want to have
More informationCHAPTER 6 TASK MANAGEMENT
CHAPTER 6 TASK MANAGEMENT This chapter describes the IA-32 architecture s task management facilities. These facilities are only available when the processor is running in protected mode. 6.1. TASK MANAGEMENT
More informationOperating Systems: Basic Concepts and History
Introduction to Operating Systems Operating Systems: Basic Concepts and History An operating system is the interface between the user and the architecture. User Applications Operating System Hardware Virtual
More information& Data Processing 2. Exercise 3: Memory Management. Dipl.-Ing. Bogdan Marin. Universität Duisburg-Essen
Folie a: Name & Data Processing 2 3: Memory Management Dipl.-Ing. Bogdan Marin Fakultät für Ingenieurwissenschaften Abteilung Elektro-und Informationstechnik -Technische Informatik- Objectives Memory Management
More informationHypervisor: Requirement Document (Version 3)
Hypervisor: Requirement Document (Version 3) Jean-Raymond Abrial and Rustan Leino No Institute Given 1 Requirement Document 1.1 A single system memory handling - SM-0: An operating system (OS) makes use
More informationVirtualization. Explain how today s virtualization movement is actually a reinvention
Virtualization Learning Objectives Explain how today s virtualization movement is actually a reinvention of the past. Explain how virtualization works. Discuss the technical challenges to virtualization.
More informationCS5460: Operating Systems. Lecture: Virtualization 2. Anton Burtsev March, 2013
CS5460: Operating Systems Lecture: Virtualization 2 Anton Burtsev March, 2013 Paravirtualization: Xen Full virtualization Complete illusion of physical hardware Trap _all_ sensitive instructions Virtualized
More informationLecture 25 Symbian OS
CS 423 Operating Systems Design Lecture 25 Symbian OS Klara Nahrstedt Fall 2011 Based on slides from Andrew S. Tanenbaum textbook and other web-material (see acknowledgements) cs423 Fall 2011 1 Overview
More informationCHAPTER 7: The CPU and Memory
CHAPTER 7: The CPU and Memory The Architecture of Computer Hardware, Systems Software & Networking: An Information Technology Approach 4th Edition, Irv Englander John Wiley and Sons 2010 PowerPoint slides
More informationIntroduction. What is an Operating System?
Introduction What is an Operating System? 1 What is an Operating System? 2 Why is an Operating System Needed? 3 How Did They Develop? Historical Approach Affect of Architecture 4 Efficient Utilization
More informationMemory Management under Linux: Issues in Linux VM development
Memory Management under Linux: Issues in Linux VM development Christoph Lameter, Ph.D. Technical Lead, Linux Kernel Software Silicon Graphics Inc. clameter@sgi.com 2008-03-12 2008 SGI Sunnyvale, California
More informationVirtualization for Cloud Computing
Virtualization for Cloud Computing Dr. Sanjay P. Ahuja, Ph.D. 2010-14 FIS Distinguished Professor of Computer Science School of Computing, UNF CLOUD COMPUTING On demand provision of computational resources
More informationADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory
ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory 1 1. Memory Organisation 2 Random access model A memory-, a data byte, or a word, or a double
More informationCOS 318: Operating Systems
COS 318: Operating Systems OS Structures and System Calls Andy Bavier Computer Science Department Princeton University http://www.cs.princeton.edu/courses/archive/fall10/cos318/ Outline Protection mechanisms
More informationThis Unit: Main Memory. CIS 501 Introduction to Computer Architecture. Memory Hierarchy Review. Readings
This Unit: Main Memory CIS 501 Introduction to Computer Architecture Unit 4: Memory Hierarchy II: Main Memory Application OS Compiler Firmware CPU I/O Memory Digital Circuits Gates & Transistors Memory
More informationQuiz for Chapter 6 Storage and Other I/O Topics 3.10
Date: 3.10 Not all questions are of equal difficulty. Please review the entire quiz first and then budget your time carefully. Name: Course: Solutions in Red 1. [6 points] Give a concise answer to each
More informationTraditional IBM Mainframe Operating Principles
C H A P T E R 1 7 Traditional IBM Mainframe Operating Principles WHEN YOU FINISH READING THIS CHAPTER YOU SHOULD BE ABLE TO: Distinguish between an absolute address and a relative address. Briefly explain
More informationMemory Usage of a Software Communication Architecture Waveform
Memory Usage of a Software Communication Architecture Waveform Philip J. Balister Wireless@VT 432 Durham Hall, Mail Code 350 Blacksburg, VA 24061 balister@vt.edu Carl Dietrich Wireless@VT 432 Durham Hall,
More informationLinux Process Scheduling Policy
Lecture Overview Introduction to Linux process scheduling Policy versus algorithm Linux overall process scheduling objectives Timesharing Dynamic priority Favor I/O-bound process Linux scheduling algorithm
More informationPaging: Introduction. 18.1 A Simple Example And Overview
18 Paging: Introduction It is sometimes said that the operating system takes one of two approaches when solving most any space-management problem. The first approach is to chop things up into variable-sized
More informationThe Xen of Virtualization
The Xen of Virtualization Assignment for CLC-MIRI Amin Khan Universitat Politècnica de Catalunya March 4, 2013 Amin Khan (UPC) Xen Hypervisor March 4, 2013 1 / 19 Outline 1 Introduction 2 Architecture
More informationOperating Systems. Design and Implementation. Andrew S. Tanenbaum Melanie Rieback Arno Bakker. Vrije Universiteit Amsterdam
Operating Systems Design and Implementation Andrew S. Tanenbaum Melanie Rieback Arno Bakker Vrije Universiteit Amsterdam Operating Systems - Winter 2012 Outline Introduction What is an OS? Concepts Processes
More informationOutline. Operating Systems Design and Implementation. Chap 1 - Overview. What is an OS? 28/10/2014. Introduction
Operating Systems Design and Implementation Andrew S. Tanenbaum Melanie Rieback Arno Bakker Outline Introduction What is an OS? Concepts Processes and Threads Memory Management File Systems Vrije Universiteit
More informationNetwork Attached Storage. Jinfeng Yang Oct/19/2015
Network Attached Storage Jinfeng Yang Oct/19/2015 Outline Part A 1. What is the Network Attached Storage (NAS)? 2. What are the applications of NAS? 3. The benefits of NAS. 4. NAS s performance (Reliability
More informationVirtual Servers. Virtual machines. Virtualization. Design of IBM s VM. Virtual machine systems can give everyone the OS (and hardware) that they want.
Virtual machines Virtual machine systems can give everyone the OS (and hardware) that they want. IBM s VM provided an exact copy of the hardware to the user. Virtual Servers Virtual machines are very widespread.
More informationARM Caches: Giving you enough rope... to shoot yourself in the foot. Marc Zyngier <marc.zyngier@arm.com> KVM Forum 15
ARM Caches: Giving you enough rope... to shoot yourself in the foot Marc Zyngier KVM Forum 15 1 Caches on ARM: A technical issue? Or a cultural one? From: Paolo Bonzini
More informationReview from last time. CS 537 Lecture 3 OS Structure. OS structure. What you should learn from this lecture
Review from last time CS 537 Lecture 3 OS Structure What HW structures are used by the OS? What is a system call? Michael Swift Remzi Arpaci-Dussea, Michael Swift 1 Remzi Arpaci-Dussea, Michael Swift 2
More information