VMWare MMU Ranjit Kolkar. Designed for efficient use of resources. ESX uses high-level resource management policies to compute a target memory allocation.

Slides:



Advertisements
Similar presentations
CS 443 Advanced OS Fabián E. Bustamante, Spring 2005 Memory Resource Management in VMware ESX Server Carl A. Waldspurger VMware, Inc. Appears in SOSDI.
Advertisements

Virtualization Technology
Understanding Operating Systems Fifth Edition
VMWare ESX Memory Management Dr. Sanjay P. Ahuja, Ph.D FIS Distinguished Professor of Computer Science School of Computing, UNF.
Memory Resource Management in Vmware ESX Server Author: Carl A. Waldspurger Vmware, Inc. Present: Jun Tao.
CSE 598B: Self-* Systems Memory Resource Management in VMware ESX Server by Carl A. Waldspurger Presented by: Arjun R. Nath (slide material adapted from.
Segmentation and Paging Considerations
Memory Buddies: Exploiting Page Sharing for Smart Colocation in Virtualized Data Centers Timothy Wood, Gabriel Tarasuk-Levin, Prashant Shenoy, Peter Desnoyers*,
Chapter 101 Virtual Memory Chapter 10 Sections and plus (Skip:10.3.2, 10.7, rest of 10.8)
Virtual Memory Chapter 8. Hardware and Control Structures Memory references are dynamically translated into physical addresses at run time –A process.
Multiprocessing Memory Management
Memory Management 2010.
1 Virtual Memory Chapter 8. 2 Hardware and Control Structures Memory references are dynamically translated into physical addresses at run time –A process.
1 Chapter 8 Virtual Memory Virtual memory is a storage allocation scheme in which secondary memory can be addressed as though it were part of main memory.
Chapter 5: Memory Management Dhamdhere: Operating Systems— A Concept-Based Approach Slide No: 1 Copyright ©2005 Memory Management Chapter 5.
Virtual Memory I Chapter 8.
Virtual Memory Deung young, Moon ELEC 5200/6200 Computer Architecture and Design Lectured by Dr. V. Agrawal Lectured by Dr. V.
Virtualization and the Cloud
1 Token-ordered LRU an Effective Policy to Alleviate Thrashing Presented by Xuechen Zhang, Pei Yan ECE7995 Presentation.
Virtualization for Cloud Computing
Virtualization 101.
Basics of Operating Systems March 4, 2001 Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard.
To run the program: To run the program: You need the OS: You need the OS:
Maninder Kaur VIRTUAL MEMORY 24-Nov
Virtualization Technology Prof D M Dhamdhere CSE Department IIT Bombay Moving towards Virtualization… Department of Computer Science and Engineering, IIT.
Tanenbaum 8.3 See references
13-1 Veeam Monitor Demo Topic 2: VM Performance Monitoring 3.
Cellular Disco: resource management using virtual clusters on shared memory multiprocessors Published in ACM 1999 by K.Govil, D. Teodosiu,Y. Huang, M.
Microkernels, virtualization, exokernels Tutorial 1 – CSC469.
Operating System Chapter 7. Memory Management Lynn Choi School of Electrical Engineering.
1. Memory Manager 2 Memory Management In an environment that supports dynamic memory allocation, the memory manager must keep a record of the usage of.
Embedded System Lab. 오명훈 Memory Resource Management in VMware ESX Server Carl A. Waldspurger VMware, Inc. Palo Alto, CA USA
Virtualization Part 2 – VMware. Virtualization 2 CS5204 – Operating Systems VMware: binary translation Hypervisor VMM Base Functionality (e.g. scheduling)
Chapter 9: Virtual Memory Background Demand Paging Copy-on-Write Page Replacement Allocation of Frames Thrashing Memory-Mapped Files Allocating Kernel.
By Teacher Asma Aleisa Year 1433 H.   Goals of memory management  To provide a convenient abstraction for programming  To allocate scarce memory resources.
Virtualization Infrastructure Administration
1 Virtual Memory Chapter 8. 2 Hardware and Control Structures Memory references are dynamically translated into physical addresses at run time –A process.
SOCSAMS e-learning Dept. of Computer Applications, MES College Marampally VIRTUALMEMORY.
Virtualization Part 2 – VMware Hardware Support. Virtualization 2 CS 5204 – Fall, 2008 VMware: binary translation Hypervisor VMM Base Functionality (e.g.
 Virtual machine systems: simulators for multiple copies of a machine on itself.  Virtual machine (VM): the simulated machine.  Virtual machine monitor.
1 Virtual Machine Memory Access Tracing With Hypervisor Exclusive Cache USENIX ‘07 Pin Lu & Kai Shen Department of Computer Science University of Rochester.
Virtual Memory. Background Virtual memory is a technique that allows execution of processes that may not be completely in the physical memory. Virtual.
By Teacher Asma Aleisa Year 1433 H.   Goals of memory management  To provide a convenient abstraction for programming.  To allocate scarce memory.
MEMORY RESOURCE MANAGEMENT IN VMWARE ESX SERVER 김정수
Swap Space and Other Memory Management Issues Operating Systems: Internals and Design Principles.
Full and Para Virtualization
Operating-System Structures
Protection of Processes Security and privacy of data is challenging currently. Protecting information – Not limited to hardware. – Depends on innovation.
Lectures 8 & 9 Virtual Memory - Paging & Segmentation System Design.
1 Lecture 8: Virtual Memory Operating System Fall 2006.
Cloud Computing – UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary->
Memory Resource Management in VMware ESX Server By Carl A. Waldspurger Presented by Clyde Byrd III (some slides adapted from C. Waldspurger) EECS 582 –
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 2: The Linux System Part 4.
Dynamic Memory and Remote Fx Perumal Raja Dell India R & D Centre.
Virtualization.
Memory Resource Management in VMware ESX Server
Chapter 2: The Linux System Part 4
Chapter 2 Memory and process management
MOM + oVirt: Nurturing our Virtual Machines
Virtual Memory Chapter 8.
OS Virtualization.
CSCI206 - Computer Organization & Programming
O.S Lecture 13 Virtual Memory.
The Design & Implementation of Hyperupcalls
VSWAPPER: A Memory Swapper for Virtualized Environments
Shielding applications from an untrusted cloud with Haven
Virtual Memory: Working Sets
Xen and the Art of Virtualization
COMP755 Advanced Operating Systems
System Virtualization
Presentation transcript:

VMWare MMU Ranjit Kolkar

Designed for efficient use of resources. ESX uses high-level resource management policies to compute a target memory allocation for each virtual machine (VM) based on the current system load and parameter settings for the virtual machine Dynamic Adjustment of Memory.

Classification

Paging Usage Advantage to Programmers. The hypervisor adds an extra level of address translation that maps the guest physical address to the host physical address. Hypervisor provides the mapping from guest to host physical memory

Memory The hypervisor adds an extra level of address translation that maps the guest physical address to the host physical address. Hypervisor provides the mapping from guest to host physical memory

Application: An application starts and uses the interfaces provided by the operating system to explicitly allocateor deallocate the virtual memory during the execution. Guest Operating System: The operating system establishes thedefinitions of “allocated” or “free” physical memory. They maintain allocated and deallocated list. Hypervisor: The hypervisor also creates the definitions of “allocated” and “free” host memory in its own data structures. The hypervisor intercepts the virtual machine’s memory accesses and allocates host physical memory for the virtual machine on its first access to the memory.

first memory access from the virtual machine to a host physical memory will cause a page fault that can be easily captured by the hypervisor. However, it is difficult for the hypervisor to know when to free host physical memory upon virtual machine memory deallocation because the guest operating system free list is generally not publicly accessible.

VM’s host memory usage <= VM’s guest memory size + VM’s overhead memory memory overcommitment: host memory is overcommitted when the total amount of guest physical memory of the running virtual machines is larger than the amount of actual host memory.

ESX supports Overcommitment. – Higher Memory Utilization. – Higher Consolidation Ration.

Memory reclamation techniques Transparent page sharing Ballooning Host swapping.

Transparent page sharing

hash value is generated based on the candidate guest physical page’s content If the hash value of the candidate guest physical page matches an existing entry, a full comparison of the page contents is performed to exclude a false match. remapping is invisible to the virtual machine and inaccessible to the guest operating sytem

– standardcopy-on-write(CoW): handle writes to the shared host physical pages.

Balloninng Ballooningmakes the guest operating system aware of the low memory status of the host. Balloon driver is loaded into the guest operating system

Releases the hypervisor pressure but induces the guess pressure. The genius of ballooning is that it allows the guest operating system to intelligently make the hard decision about which pages to be paged out without the hypervisor’s involvement guest operating system must install and enable the balloon driver

Hypervisor swapping Same as paging in general perpose – Difficulties Hypervisor cannot identify those guest kernel pages, So it may swap but it is critical to ensure guest’s performance. Double swapping Performance penalty.

When to reclaim host memory? ESX maintains four host free memory states: high, soft, hard, and low, which are reflected by four thresholds: 6 percent, 4 percent, 2 percent, and 1 percent of host memory respectively.

In the high state, No reclamation is needed. No ballooning or swapping If host free memory drops towards the soft threshold, the hypervisor starts to reclaim memory using ballooning. If ballooning is not sufficient to reclaim memory or the host free memory drops towards the hard threshold, the hypervisor starts to use swapping in addition to using ballooning. Through swapping, the hypervisor should be able to quickly reclaim memory and bring the host memory state back to the soft state host free memory drops below the low threshold, the hypervisor continues to reclaim memory through swapping, and additionally blocks the execution of all virtual machines that consume more memory than their target memory allocations