SlideShare una empresa de Scribd logo
1 de 34
Hyper-V Dynamic Memory in Depth
Agenda

• Memory & Virtualization
• Memory Optimization Techniques
• Hyper-V Dynamic Memory
  • Architecture & Concepts
  • Demo
  • System Impact
• Q&A
Virtualization & Memory
• How much memory does a server actually need?
  • IIS Server?
  • Print server?
  • File server?
  • Branch Cache?
  • Direct Access?
• How much will performance be affected if you halved the
  amount of memory in a VM?
No one wants to size VMs Memory
• “New virtual machines get 1GB of RAM [no matter what the VM is running]. I
  only give people more memory if they complain about performance”


• “All VMs get 4GB of RAM [I have no idea what is happening with that memory]
  and no one complains”


• “I take the minimum system requirements and add (insert one: 50%, 100%,
  150%)”


• “A vendor tells me their app needs 4GB of RAM. I do not have the time to test
  this to find out if it is true or not”
Virtualization & Memory
• Memory
   • Key Factor to the number of running VMs
   • The most utilized asset in the system, but also a more expensive asset
• Statistics on resource utilization of workloads
   •   CPU 10%
   •   Memory 40%
   •   Network I/O <5%
   •   Disk I/O <5%
• Customer Requirements
   • Maximum density, without sacrificing performance
   • Maintain consistent performance
   • Don’t provide a feature that’s unsuitable for production use
Dynamic Memory Goals
• Higher VM consolidation ratios with minimal performance
  impact
  • Dependent on:
    • How much variation in memory utilization the workloads have
    • How good a job you did of sizing the systems in the first place
• Work well for both server and desktop workloads
• Add minimal overhead to the system
• Pass the “that looks right” test
Understanding philosophical differences

• Host and Guest Collaborate
  • Understands what guest information to use
  • Trying to get the “best bang for buck” in virtual memory
    management

• Host works in Isolation
  • Does not trust guest information
     • Building a “black box” solution
Dynamic Memory, not Overcommit

• Overloaded Term
  • Over-subscription vs. Over-committment

• No one wants to overcommit their resource
  • You don’t overcommit other resources (really – you do not)
  • VMware does not want you to overcommit memory (really)

• Dynamic Memory treat memory like we treat CPU
  resources
  • Dynamically schedulable resource
Ballooning
• How it works:
   • Increasing the size of the balloon forces the guest to react to memory pressure by
     releasing unused pages
   • Decreasing the size makes more memory available to the guest



                                              Swap Out                         Swap In
 Memory                         Memory                        Memory
   Balloon                        Balloon                         Balloon
                  Disk                            Disk            Ballloon         Disk
                                   Inflate                           Deflate
                                                                     Deflate
Second Level Paging
• How it works:
  • Paging at the virtualization layer by swapping VMs
    memory out to disk
• Many problems:
  • Swapping Guest Kernel Resources
  • Double Paging
  • Disks are slow
• But it always works…
External Page Sharing
• How it works:
  • Eliminate redundant copies of memory pages common to more than
    one virtual machine
       1. Hash all memory and store it in a table…
       2. Identify the common hashes and then…
       3. Perform a bit by bit comparison


• Problems
  •   Page Sharing not dynamic
  •   Can take hours to share pages
  •   The largest benefit are zero pages
  •   Doesn’t work with large pages
Other Techniques
• Guest directed page sharing
• Memory compression
• And on…
System Requirements

• Parent Requirements:
  • Windows Server 2008 R2 SP1, Windows Server 2012
  • Hyper-V Server 2008 R2 SP1, Hyper-V Server 2012
• Guest Requirements:
  • Windows Server 2003, 2008 & 2008 R2, 2012
    • 32-bit & 64-bit versions
  • Windows Vista, Windows 7, Windows 8
    • Enterprise and Ultimate Editions only
    • 32-bit & 64-bit versions
Adding/Removing Memory

•Adding Memory
 • Enlightened fashion
   • Synthetic Memory Driver (VSP/VSC Pair)
 • No hardware emulation
 • Light weight
•Removing Memory
 • Wanted to remove memory
 • Ballooning is more efficient
   • Messes up task manager in the guest OS
Adding/Removing Memory

• Active Memory addition
  • Memory is added immediately when VM needs it

• Passive Memory reclamation
  • Memory is not removed when there is no immediate need
  • Unutilized memory is collected every 5 minutes
Startup & Max
Windows Server 2008 R2 SP1
• Startup: amount of memory to boot VM
  • BIOS does not know about DM
  • Guest OS may not know about DM
  • Default: 512MB
• Max: don’t let the VM above this amount
  • Default: 64GB
Windows Server 2012
• Startup: amount of memory to boot VM
• Min: amount of memory the VM can balloon down to
• Max: don’t let the VM above this amount
Controlling Memory Availability

• Availability is a concept
  • How much memory does the VM have?
  • How much memory does the VM want?
  • The difference is the availability


• Mechanisms in place to control Memory Availability
  through Buffer and Priority settings
Memory Buffer & Priority

• Buffer: How much “free” memory should we try and keep in the
  VM?
  • Allows for responsiveness to bursty workloads
  • Can be used for file cache

  “I like to configure my virtual machines so that they have ~20% free
  memory”

• Priority: which VM gets the memory first
  • 1-10,000: default is 5,000
  • The higher the priority, the higher the availability
Changes to Root Reserve

• Hyper-V has always had the concept of a reserve of
  memory that is kept for the parent partition
                      VM
     Host Reserve   Overhead   Memory utilized by VMs

                               VM Reserve
Changes to Root Reserve

• DM allows VMs to push up against the reserve
  consistently
• New behavior to better protect the parent partition
  from rampaging virtual machines
  • New registry key in place
    • Allows you to reserve static memory for the parent partition
  • May result in less memory being available for VMs
Changes to NUMA management…
• Wait – what is NUMA?
• Why do I care?
• How does this work today?
What is “NUMA”?
• A traditional computer:
What is “NUMA”?
• A NUMA computer:
Why do I care?
• VM memory should come from the “local NUMA node”
Why do I care?
• Ideally VM memory should come from the “local NUMA node”
How does this work today?
• Hyper-V tries to get all memory for a virtual machine from a single
  NUMA node
• When it cannot – the virtual machine “spans” NUMA nodes
• Users can set preferred NUMA nodes for virtual machines in order
  to get the best distribution
Changes to NUMA management
• Dynamic memory can result in more virtual machines
  spanning NUMA nodes
  • A virtual machine might start all on one node – but added
    memory might come from another node
• New option to disable NUMA node spanning
Disabling NUMA Spanning
• Makes the system behave like multiple small computers
Hyper-V Dynamic Memory Architecture and Demo

Más contenido relacionado

La actualidad más candente

Building azure applications ireland
Building azure applications irelandBuilding azure applications ireland
Building azure applications irelandMichael Meagher
 
The Sametime Mobile Experience
The Sametime Mobile ExperienceThe Sametime Mobile Experience
The Sametime Mobile ExperienceGabriella Davis
 
Scaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL ServersScaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL Serversheraflux
 
VMworld 2014: Virtualizing Databases
VMworld 2014: Virtualizing DatabasesVMworld 2014: Virtualizing Databases
VMworld 2014: Virtualizing DatabasesVMworld
 
Practical solutions for connections administrators lite
Practical solutions for connections administrators litePractical solutions for connections administrators lite
Practical solutions for connections administrators liteSharon James
 
Oracle UCM: Web Site Performance Tuning
Oracle UCM: Web Site Performance TuningOracle UCM: Web Site Performance Tuning
Oracle UCM: Web Site Performance TuningBrian Huff
 
LinkedIn Communication Architecture
LinkedIn Communication ArchitectureLinkedIn Communication Architecture
LinkedIn Communication ArchitectureLinkedIn
 
What's New in Notes, Sametime and Verse On-Premises
What's New in Notes, Sametime and Verse On-PremisesWhat's New in Notes, Sametime and Verse On-Premises
What's New in Notes, Sametime and Verse On-PremisesGabriella Davis
 
Magento Imagine 2013: Fabrizio Branca - Learning To Fly: How Angry Birds Reac...
Magento Imagine 2013: Fabrizio Branca - Learning To Fly: How Angry Birds Reac...Magento Imagine 2013: Fabrizio Branca - Learning To Fly: How Angry Birds Reac...
Magento Imagine 2013: Fabrizio Branca - Learning To Fly: How Angry Birds Reac...AOE
 
An introduction to configuring Domino for Docker
An introduction to configuring Domino for DockerAn introduction to configuring Domino for Docker
An introduction to configuring Domino for DockerGabriella Davis
 
Scalable Web Architectures: Common Patterns and Approaches
Scalable Web Architectures: Common Patterns and ApproachesScalable Web Architectures: Common Patterns and Approaches
Scalable Web Architectures: Common Patterns and Approachesadunne
 
Cloudy in Indonesia: Java and Cloud
Cloudy in Indonesia: Java and CloudCloudy in Indonesia: Java and Cloud
Cloudy in Indonesia: Java and CloudEberhard Wolff
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administratorsSharon James
 
Becoming A Connections Administrator
Becoming A Connections AdministratorBecoming A Connections Administrator
Becoming A Connections AdministratorGabriella Davis
 
Connections install in 45 mins
Connections install in 45 minsConnections install in 45 mins
Connections install in 45 minsSharon James
 
Face Off Domino vs Exchange On Premises
Face Off Domino vs Exchange On PremisesFace Off Domino vs Exchange On Premises
Face Off Domino vs Exchange On PremisesGabriella Davis
 
Cloud Computing & Scaling Web Apps
Cloud Computing & Scaling Web AppsCloud Computing & Scaling Web Apps
Cloud Computing & Scaling Web AppsMark Slingsby
 
An Introduction To Docker
An Introduction To DockerAn Introduction To Docker
An Introduction To DockerGabriella Davis
 
Setting Up a Hybrid Domino Environment to Ease your Way to the Cloud
Setting Up a Hybrid Domino Environment to Ease your Way to the CloudSetting Up a Hybrid Domino Environment to Ease your Way to the Cloud
Setting Up a Hybrid Domino Environment to Ease your Way to the CloudGabriella Davis
 

La actualidad más candente (20)

Building azure applications ireland
Building azure applications irelandBuilding azure applications ireland
Building azure applications ireland
 
The Sametime Mobile Experience
The Sametime Mobile ExperienceThe Sametime Mobile Experience
The Sametime Mobile Experience
 
Scaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL ServersScaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL Servers
 
VMworld 2014: Virtualizing Databases
VMworld 2014: Virtualizing DatabasesVMworld 2014: Virtualizing Databases
VMworld 2014: Virtualizing Databases
 
Practical solutions for connections administrators lite
Practical solutions for connections administrators litePractical solutions for connections administrators lite
Practical solutions for connections administrators lite
 
Oracle UCM: Web Site Performance Tuning
Oracle UCM: Web Site Performance TuningOracle UCM: Web Site Performance Tuning
Oracle UCM: Web Site Performance Tuning
 
LinkedIn Communication Architecture
LinkedIn Communication ArchitectureLinkedIn Communication Architecture
LinkedIn Communication Architecture
 
What's New in Notes, Sametime and Verse On-Premises
What's New in Notes, Sametime and Verse On-PremisesWhat's New in Notes, Sametime and Verse On-Premises
What's New in Notes, Sametime and Verse On-Premises
 
Magento Imagine 2013: Fabrizio Branca - Learning To Fly: How Angry Birds Reac...
Magento Imagine 2013: Fabrizio Branca - Learning To Fly: How Angry Birds Reac...Magento Imagine 2013: Fabrizio Branca - Learning To Fly: How Angry Birds Reac...
Magento Imagine 2013: Fabrizio Branca - Learning To Fly: How Angry Birds Reac...
 
An introduction to configuring Domino for Docker
An introduction to configuring Domino for DockerAn introduction to configuring Domino for Docker
An introduction to configuring Domino for Docker
 
Scalable Web Architectures: Common Patterns and Approaches
Scalable Web Architectures: Common Patterns and ApproachesScalable Web Architectures: Common Patterns and Approaches
Scalable Web Architectures: Common Patterns and Approaches
 
Cloudy in Indonesia: Java and Cloud
Cloudy in Indonesia: Java and CloudCloudy in Indonesia: Java and Cloud
Cloudy in Indonesia: Java and Cloud
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administrators
 
Quickr
QuickrQuickr
Quickr
 
Becoming A Connections Administrator
Becoming A Connections AdministratorBecoming A Connections Administrator
Becoming A Connections Administrator
 
Connections install in 45 mins
Connections install in 45 minsConnections install in 45 mins
Connections install in 45 mins
 
Face Off Domino vs Exchange On Premises
Face Off Domino vs Exchange On PremisesFace Off Domino vs Exchange On Premises
Face Off Domino vs Exchange On Premises
 
Cloud Computing & Scaling Web Apps
Cloud Computing & Scaling Web AppsCloud Computing & Scaling Web Apps
Cloud Computing & Scaling Web Apps
 
An Introduction To Docker
An Introduction To DockerAn Introduction To Docker
An Introduction To Docker
 
Setting Up a Hybrid Domino Environment to Ease your Way to the Cloud
Setting Up a Hybrid Domino Environment to Ease your Way to the CloudSetting Up a Hybrid Domino Environment to Ease your Way to the Cloud
Setting Up a Hybrid Domino Environment to Ease your Way to the Cloud
 

Destacado

Classical approach
Classical approachClassical approach
Classical approachTravis Klein
 
01 monday factors of production
01 monday factors of production01 monday factors of production
01 monday factors of productionTravis Klein
 
מנהלי אחריות תאגידית בישראל - סקר קריירה והשפעה ארגונית
מנהלי אחריות תאגידית בישראל - סקר קריירה והשפעה ארגוניתמנהלי אחריות תאגידית בישראל - סקר קריירה והשפעה ארגונית
מנהלי אחריות תאגידית בישראל - סקר קריירה והשפעה ארגוניתShirley Kantor
 
Big Data, Big Innovations
Big Data, Big Innovations  Big Data, Big Innovations
Big Data, Big Innovations EMC
 
How Can Take3 Help You Win?
How Can Take3 Help You Win?How Can Take3 Help You Win?
How Can Take3 Help You Win?Laurel Gerdine
 
03 mon syllabus and direction of course
03 mon syllabus and direction of course03 mon syllabus and direction of course
03 mon syllabus and direction of courseTravis Klein
 
HAPPINESS AND ENJOYMENT FOR EVERY MAN AND WOMAN : SIMPLE RULES
 HAPPINESS AND ENJOYMENT  FOR EVERY MAN AND WOMAN : SIMPLE RULES HAPPINESS AND ENJOYMENT  FOR EVERY MAN AND WOMAN : SIMPLE RULES
HAPPINESS AND ENJOYMENT FOR EVERY MAN AND WOMAN : SIMPLE RULESDr. Raju M. Mathew
 
Catalogo de especificações de epi 2017-v1
Catalogo de especificações de epi   2017-v1Catalogo de especificações de epi   2017-v1
Catalogo de especificações de epi 2017-v1Rogerio Machado
 
HTTP 완벽가이드- 19장 배포시스템
HTTP 완벽가이드- 19장 배포시스템HTTP 완벽가이드- 19장 배포시스템
HTTP 완벽가이드- 19장 배포시스템박 민규
 
4 things you_cannot_recover
4 things you_cannot_recover4 things you_cannot_recover
4 things you_cannot_recoverChandan Dubey
 
Webinar Tracker ABCs
Webinar Tracker ABCsWebinar Tracker ABCs
Webinar Tracker ABCsResearch Now
 
Finance - long run for kids
Finance - long run for kidsFinance - long run for kids
Finance - long run for kidsTravis Klein
 

Destacado (20)

Configuring and Implementing DirectAccess with Windows Server 2012
Configuring and Implementing DirectAccess with Windows Server 2012 Configuring and Implementing DirectAccess with Windows Server 2012
Configuring and Implementing DirectAccess with Windows Server 2012
 
A Drivers Saga – Mastering Windows Deployment
A Drivers Saga – Mastering Windows DeploymentA Drivers Saga – Mastering Windows Deployment
A Drivers Saga – Mastering Windows Deployment
 
Classical approach
Classical approachClassical approach
Classical approach
 
01 monday factors of production
01 monday factors of production01 monday factors of production
01 monday factors of production
 
מנהלי אחריות תאגידית בישראל - סקר קריירה והשפעה ארגונית
מנהלי אחריות תאגידית בישראל - סקר קריירה והשפעה ארגוניתמנהלי אחריות תאגידית בישראל - סקר קריירה והשפעה ארגונית
מנהלי אחריות תאגידית בישראל - סקר קריירה והשפעה ארגונית
 
Big Data, Big Innovations
Big Data, Big Innovations  Big Data, Big Innovations
Big Data, Big Innovations
 
Catalogo automoviles
Catalogo automovilesCatalogo automoviles
Catalogo automoviles
 
How Can Take3 Help You Win?
How Can Take3 Help You Win?How Can Take3 Help You Win?
How Can Take3 Help You Win?
 
03 mon syllabus and direction of course
03 mon syllabus and direction of course03 mon syllabus and direction of course
03 mon syllabus and direction of course
 
Year 2070
Year 2070Year 2070
Year 2070
 
HAPPINESS AND ENJOYMENT FOR EVERY MAN AND WOMAN : SIMPLE RULES
 HAPPINESS AND ENJOYMENT  FOR EVERY MAN AND WOMAN : SIMPLE RULES HAPPINESS AND ENJOYMENT  FOR EVERY MAN AND WOMAN : SIMPLE RULES
HAPPINESS AND ENJOYMENT FOR EVERY MAN AND WOMAN : SIMPLE RULES
 
Clientes2
Clientes2Clientes2
Clientes2
 
Catalogo de especificações de epi 2017-v1
Catalogo de especificações de epi   2017-v1Catalogo de especificações de epi   2017-v1
Catalogo de especificações de epi 2017-v1
 
Empggf
EmpggfEmpggf
Empggf
 
HTTP 완벽가이드- 19장 배포시스템
HTTP 완벽가이드- 19장 배포시스템HTTP 완벽가이드- 19장 배포시스템
HTTP 완벽가이드- 19장 배포시스템
 
4 things you_cannot_recover
4 things you_cannot_recover4 things you_cannot_recover
4 things you_cannot_recover
 
Webinar Tracker ABCs
Webinar Tracker ABCsWebinar Tracker ABCs
Webinar Tracker ABCs
 
Adaptec Hybrid RAID
Adaptec Hybrid RAIDAdaptec Hybrid RAID
Adaptec Hybrid RAID
 
Anti stresssong
Anti stresssongAnti stresssong
Anti stresssong
 
Finance - long run for kids
Finance - long run for kidsFinance - long run for kids
Finance - long run for kids
 

Similar a Hyper-V Dynamic Memory Architecture and Demo

Dynamic Memory Management Hyperv 2008 R2 S
Dynamic Memory Management Hyperv 2008 R2 SDynamic Memory Management Hyperv 2008 R2 S
Dynamic Memory Management Hyperv 2008 R2 SEduardo Castro
 
Dynamic Memory Management HyperV R2 SP1
Dynamic Memory Management HyperV R2 SP1Dynamic Memory Management HyperV R2 SP1
Dynamic Memory Management HyperV R2 SP1Eduardo Castro
 
vSphere APIs for performance monitoring
vSphere APIs for performance monitoringvSphere APIs for performance monitoring
vSphere APIs for performance monitoringAlan Renouf
 
Virtualizing Sharepoint for Performance and Availability
Virtualizing Sharepoint for Performance and AvailabilityVirtualizing Sharepoint for Performance and Availability
Virtualizing Sharepoint for Performance and AvailabilityDamir Bersinic
 
webinar vmware v-sphere performance management Challenges and Best Practices
webinar vmware v-sphere performance management Challenges and Best Practiceswebinar vmware v-sphere performance management Challenges and Best Practices
webinar vmware v-sphere performance management Challenges and Best PracticesMetron
 
Vmware vsphere taking_a_trip_down_memory_lane
Vmware vsphere taking_a_trip_down_memory_laneVmware vsphere taking_a_trip_down_memory_lane
Vmware vsphere taking_a_trip_down_memory_laneMetron
 
Azug - successfully breeding rabits
Azug - successfully breeding rabitsAzug - successfully breeding rabits
Azug - successfully breeding rabitsYves Goeleven
 
Intro to Deploying and administering server virtualization with Hyper-V and S...
Intro to Deploying and administering server virtualization with Hyper-V and S...Intro to Deploying and administering server virtualization with Hyper-V and S...
Intro to Deploying and administering server virtualization with Hyper-V and S...Unitek Eduation
 
Sql server 2005 memory internal
Sql server 2005 memory internalSql server 2005 memory internal
Sql server 2005 memory internalshuwutong
 
Master VMware Performance and Capacity Management
Master VMware Performance and Capacity ManagementMaster VMware Performance and Capacity Management
Master VMware Performance and Capacity ManagementIwan Rahabok
 
Memory management in operating system | Paging | Virtual memory
Memory management in operating system | Paging | Virtual memoryMemory management in operating system | Paging | Virtual memory
Memory management in operating system | Paging | Virtual memoryShivam Mitra
 
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)Suresh Kumar
 
Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02Suresh Kumar
 
Right-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual MachineRight-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual Machineheraflux
 
OSSEU18: NVDIMM and Virtualization - George Dunlap, Citrix
OSSEU18: NVDIMM and Virtualization  - George Dunlap, CitrixOSSEU18: NVDIMM and Virtualization  - George Dunlap, Citrix
OSSEU18: NVDIMM and Virtualization - George Dunlap, CitrixThe Linux Foundation
 

Similar a Hyper-V Dynamic Memory Architecture and Demo (20)

Dynamic Memory Management Hyperv 2008 R2 S
Dynamic Memory Management Hyperv 2008 R2 SDynamic Memory Management Hyperv 2008 R2 S
Dynamic Memory Management Hyperv 2008 R2 S
 
Dynamic Memory Management HyperV R2 SP1
Dynamic Memory Management HyperV R2 SP1Dynamic Memory Management HyperV R2 SP1
Dynamic Memory Management HyperV R2 SP1
 
vSphere APIs for performance monitoring
vSphere APIs for performance monitoringvSphere APIs for performance monitoring
vSphere APIs for performance monitoring
 
Server virtualization 3
Server virtualization   3Server virtualization   3
Server virtualization 3
 
Virtualizing Sharepoint for Performance and Availability
Virtualizing Sharepoint for Performance and AvailabilityVirtualizing Sharepoint for Performance and Availability
Virtualizing Sharepoint for Performance and Availability
 
webinar vmware v-sphere performance management Challenges and Best Practices
webinar vmware v-sphere performance management Challenges and Best Practiceswebinar vmware v-sphere performance management Challenges and Best Practices
webinar vmware v-sphere performance management Challenges and Best Practices
 
Vmware vsphere taking_a_trip_down_memory_lane
Vmware vsphere taking_a_trip_down_memory_laneVmware vsphere taking_a_trip_down_memory_lane
Vmware vsphere taking_a_trip_down_memory_lane
 
Minding SQL Server Memory
Minding SQL Server MemoryMinding SQL Server Memory
Minding SQL Server Memory
 
Azug - successfully breeding rabits
Azug - successfully breeding rabitsAzug - successfully breeding rabits
Azug - successfully breeding rabits
 
5 Things to Ask Your Virtualization Administrator
5 Things to Ask Your Virtualization Administrator5 Things to Ask Your Virtualization Administrator
5 Things to Ask Your Virtualization Administrator
 
virtual machine.ppt
virtual machine.pptvirtual machine.ppt
virtual machine.ppt
 
Intro to Deploying and administering server virtualization with Hyper-V and S...
Intro to Deploying and administering server virtualization with Hyper-V and S...Intro to Deploying and administering server virtualization with Hyper-V and S...
Intro to Deploying and administering server virtualization with Hyper-V and S...
 
Sql server 2005 memory internal
Sql server 2005 memory internalSql server 2005 memory internal
Sql server 2005 memory internal
 
Master VMware Performance and Capacity Management
Master VMware Performance and Capacity ManagementMaster VMware Performance and Capacity Management
Master VMware Performance and Capacity Management
 
Chap4
Chap4 Chap4
Chap4
 
Memory management in operating system | Paging | Virtual memory
Memory management in operating system | Paging | Virtual memoryMemory management in operating system | Paging | Virtual memory
Memory management in operating system | Paging | Virtual memory
 
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
 
Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02
 
Right-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual MachineRight-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual Machine
 
OSSEU18: NVDIMM and Virtualization - George Dunlap, Citrix
OSSEU18: NVDIMM and Virtualization  - George Dunlap, CitrixOSSEU18: NVDIMM and Virtualization  - George Dunlap, Citrix
OSSEU18: NVDIMM and Virtualization - George Dunlap, Citrix
 

Más de Microsoft TechNet - Belgium and Luxembourg

Más de Microsoft TechNet - Belgium and Luxembourg (20)

Windows 10: all you need to know!
Windows 10: all you need to know!Windows 10: all you need to know!
Windows 10: all you need to know!
 
Configuration Manager 2012 – Compliance Settings 101 - Tim de Keukelaere
Configuration Manager 2012 – Compliance Settings 101 - Tim de KeukelaereConfiguration Manager 2012 – Compliance Settings 101 - Tim de Keukelaere
Configuration Manager 2012 – Compliance Settings 101 - Tim de Keukelaere
 
Windows 8.1 a closer look
Windows 8.1 a closer lookWindows 8.1 a closer look
Windows 8.1 a closer look
 
So you’ve successfully installed SCOM… Now what.
So you’ve successfully installed SCOM… Now what.So you’ve successfully installed SCOM… Now what.
So you’ve successfully installed SCOM… Now what.
 
Data Leakage Prevention
Data Leakage PreventionData Leakage Prevention
Data Leakage Prevention
 
Deploying and managing ConfigMgr Clients
Deploying and managing ConfigMgr ClientsDeploying and managing ConfigMgr Clients
Deploying and managing ConfigMgr Clients
 
Self Service BI anno 2013 – Where Do We Come From and Where Are We Going?
Self Service BI anno 2013 – Where Do We Come From and Where Are We Going?Self Service BI anno 2013 – Where Do We Come From and Where Are We Going?
Self Service BI anno 2013 – Where Do We Come From and Where Are We Going?
 
Hands on with Hyper-V Clustering Maintenance Mode & Cluster Aware Updating
Hands on with Hyper-V Clustering Maintenance Mode & Cluster Aware UpdatingHands on with Hyper-V Clustering Maintenance Mode & Cluster Aware Updating
Hands on with Hyper-V Clustering Maintenance Mode & Cluster Aware Updating
 
SCEP 2012 inside SCCM 2012
SCEP 2012 inside SCCM 2012SCEP 2012 inside SCCM 2012
SCEP 2012 inside SCCM 2012
 
Jump start your application monitoring with APM
Jump start your application monitoring with APMJump start your application monitoring with APM
Jump start your application monitoring with APM
 
What’s new in Lync Server 2013: Persistent Chat
What’s new in Lync Server 2013: Persistent ChatWhat’s new in Lync Server 2013: Persistent Chat
What’s new in Lync Server 2013: Persistent Chat
 
What's new for Lync 2013 Clients & Devices
What's new for Lync 2013 Clients & DevicesWhat's new for Lync 2013 Clients & Devices
What's new for Lync 2013 Clients & Devices
 
Office 365 ProPlus: Click-to-run deployment and management
Office 365 ProPlus: Click-to-run deployment and managementOffice 365 ProPlus: Click-to-run deployment and management
Office 365 ProPlus: Click-to-run deployment and management
 
Office 365 Identity Management options
Office 365 Identity Management options Office 365 Identity Management options
Office 365 Identity Management options
 
SharePoint Installation and Upgrade: Untangling Your Options
SharePoint Installation and Upgrade: Untangling Your Options SharePoint Installation and Upgrade: Untangling Your Options
SharePoint Installation and Upgrade: Untangling Your Options
 
The application model in real life
The application model in real lifeThe application model in real life
The application model in real life
 
Microsoft private cloud with Cisco and Netapp - Flexpod solution
Microsoft private cloud with Cisco and Netapp -  Flexpod solutionMicrosoft private cloud with Cisco and Netapp -  Flexpod solution
Microsoft private cloud with Cisco and Netapp - Flexpod solution
 
Managing Windows RT devices in the Enterprise
Managing Windows RT devices in the Enterprise Managing Windows RT devices in the Enterprise
Managing Windows RT devices in the Enterprise
 
Moving from Device Centric to a User Centric Management
Moving from Device Centric to a User Centric Management Moving from Device Centric to a User Centric Management
Moving from Device Centric to a User Centric Management
 
Network Management in System Center 2012 SP1 - VMM
Network Management in System Center 2012  SP1 - VMM Network Management in System Center 2012  SP1 - VMM
Network Management in System Center 2012 SP1 - VMM
 

Hyper-V Dynamic Memory Architecture and Demo

  • 2. Agenda • Memory & Virtualization • Memory Optimization Techniques • Hyper-V Dynamic Memory • Architecture & Concepts • Demo • System Impact • Q&A
  • 3.
  • 4. Virtualization & Memory • How much memory does a server actually need? • IIS Server? • Print server? • File server? • Branch Cache? • Direct Access? • How much will performance be affected if you halved the amount of memory in a VM?
  • 5. No one wants to size VMs Memory • “New virtual machines get 1GB of RAM [no matter what the VM is running]. I only give people more memory if they complain about performance” • “All VMs get 4GB of RAM [I have no idea what is happening with that memory] and no one complains” • “I take the minimum system requirements and add (insert one: 50%, 100%, 150%)” • “A vendor tells me their app needs 4GB of RAM. I do not have the time to test this to find out if it is true or not”
  • 6. Virtualization & Memory • Memory • Key Factor to the number of running VMs • The most utilized asset in the system, but also a more expensive asset • Statistics on resource utilization of workloads • CPU 10% • Memory 40% • Network I/O <5% • Disk I/O <5% • Customer Requirements • Maximum density, without sacrificing performance • Maintain consistent performance • Don’t provide a feature that’s unsuitable for production use
  • 7. Dynamic Memory Goals • Higher VM consolidation ratios with minimal performance impact • Dependent on: • How much variation in memory utilization the workloads have • How good a job you did of sizing the systems in the first place • Work well for both server and desktop workloads • Add minimal overhead to the system • Pass the “that looks right” test
  • 8. Understanding philosophical differences • Host and Guest Collaborate • Understands what guest information to use • Trying to get the “best bang for buck” in virtual memory management • Host works in Isolation • Does not trust guest information • Building a “black box” solution
  • 9. Dynamic Memory, not Overcommit • Overloaded Term • Over-subscription vs. Over-committment • No one wants to overcommit their resource • You don’t overcommit other resources (really – you do not) • VMware does not want you to overcommit memory (really) • Dynamic Memory treat memory like we treat CPU resources • Dynamically schedulable resource
  • 10.
  • 11. Ballooning • How it works: • Increasing the size of the balloon forces the guest to react to memory pressure by releasing unused pages • Decreasing the size makes more memory available to the guest Swap Out Swap In Memory Memory Memory Balloon Balloon Balloon Disk Disk Ballloon Disk Inflate Deflate Deflate
  • 12. Second Level Paging • How it works: • Paging at the virtualization layer by swapping VMs memory out to disk • Many problems: • Swapping Guest Kernel Resources • Double Paging • Disks are slow • But it always works…
  • 13. External Page Sharing • How it works: • Eliminate redundant copies of memory pages common to more than one virtual machine 1. Hash all memory and store it in a table… 2. Identify the common hashes and then… 3. Perform a bit by bit comparison • Problems • Page Sharing not dynamic • Can take hours to share pages • The largest benefit are zero pages • Doesn’t work with large pages
  • 14. Other Techniques • Guest directed page sharing • Memory compression • And on…
  • 15.
  • 16. System Requirements • Parent Requirements: • Windows Server 2008 R2 SP1, Windows Server 2012 • Hyper-V Server 2008 R2 SP1, Hyper-V Server 2012 • Guest Requirements: • Windows Server 2003, 2008 & 2008 R2, 2012 • 32-bit & 64-bit versions • Windows Vista, Windows 7, Windows 8 • Enterprise and Ultimate Editions only • 32-bit & 64-bit versions
  • 17. Adding/Removing Memory •Adding Memory • Enlightened fashion • Synthetic Memory Driver (VSP/VSC Pair) • No hardware emulation • Light weight •Removing Memory • Wanted to remove memory • Ballooning is more efficient • Messes up task manager in the guest OS
  • 18. Adding/Removing Memory • Active Memory addition • Memory is added immediately when VM needs it • Passive Memory reclamation • Memory is not removed when there is no immediate need • Unutilized memory is collected every 5 minutes
  • 19. Startup & Max Windows Server 2008 R2 SP1 • Startup: amount of memory to boot VM • BIOS does not know about DM • Guest OS may not know about DM • Default: 512MB • Max: don’t let the VM above this amount • Default: 64GB Windows Server 2012 • Startup: amount of memory to boot VM • Min: amount of memory the VM can balloon down to • Max: don’t let the VM above this amount
  • 20. Controlling Memory Availability • Availability is a concept • How much memory does the VM have? • How much memory does the VM want? • The difference is the availability • Mechanisms in place to control Memory Availability through Buffer and Priority settings
  • 21. Memory Buffer & Priority • Buffer: How much “free” memory should we try and keep in the VM? • Allows for responsiveness to bursty workloads • Can be used for file cache “I like to configure my virtual machines so that they have ~20% free memory” • Priority: which VM gets the memory first • 1-10,000: default is 5,000 • The higher the priority, the higher the availability
  • 22.
  • 23.
  • 24. Changes to Root Reserve • Hyper-V has always had the concept of a reserve of memory that is kept for the parent partition VM Host Reserve Overhead Memory utilized by VMs VM Reserve
  • 25. Changes to Root Reserve • DM allows VMs to push up against the reserve consistently • New behavior to better protect the parent partition from rampaging virtual machines • New registry key in place • Allows you to reserve static memory for the parent partition • May result in less memory being available for VMs
  • 26. Changes to NUMA management… • Wait – what is NUMA? • Why do I care? • How does this work today?
  • 27. What is “NUMA”? • A traditional computer:
  • 28. What is “NUMA”? • A NUMA computer:
  • 29. Why do I care? • VM memory should come from the “local NUMA node”
  • 30. Why do I care? • Ideally VM memory should come from the “local NUMA node”
  • 31. How does this work today? • Hyper-V tries to get all memory for a virtual machine from a single NUMA node • When it cannot – the virtual machine “spans” NUMA nodes • Users can set preferred NUMA nodes for virtual machines in order to get the best distribution
  • 32. Changes to NUMA management • Dynamic memory can result in more virtual machines spanning NUMA nodes • A virtual machine might start all on one node – but added memory might come from another node • New option to disable NUMA node spanning
  • 33. Disabling NUMA Spanning • Makes the system behave like multiple small computers