windows server 2008 r2 sp1: dynamic memory kurt roggen [be] blog: blog:

36
Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog: http://TryCatch.be/blogs/roggenk Blog: http://SCUG.be/blogs/SCVMM

Upload: conrad-ramsey

Post on 24-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Windows Server 2008 R2 SP1:Dynamic MemoryKurt Roggen [BE]Blog: http://TryCatch.be/blogs/roggenk Blog: http://SCUG.be/blogs/SCVMM

Page 2: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Agenda

• Overview• Hyper-V & Dynamic Memory• Startup RAM, Maximum RAM• Memory Buffer, Memory Weight• Root Reserve

• SCVMM & Dynamic Memory

Page 3: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Virtualization Enhancements in Service Pack 1

Dynamic Memory RemoteFXAllocate range of memory per VM & dynamically adjust memory usage on demand.

Consistent performance & Better Manageability

Leverages the power of virtualized graphics resources and advanced codecs to achieve high fidelity.

Enables “local-like” experience for a hosted desktop

Page 4: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Virtual Memory (vRAM) - Static

• Fully allocated at run-time• Up to 64 GB per VM• Can only adjust vRAM when VM is offline

Page 5: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Dynamic Memory: What?

“Dynamic Memory enables the system to dynamically adjust

virtual machine memory usage based on demand”

Page 6: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Dynamic Memory: What NOT!

• Is not Overcommit• Is not Page Sharing• Is not Second Level Paging

Page 7: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Dynamic Memory: Advantages

• Real time sizing based on memory demand• Based on performance counters inside VM

• Usable for both server and desktop workloads• Higher VM consolidation ratios per host• Windows 7 SP1 allows 12:1 ratio (vCPU:lCPU)

Page 8: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Dynamic Memory: Process

• Allocate memory from Hyper-V host memory pool• VM gets memory from memory pool• As long as pool is not empty• Based on memory demand/workload

• VM gets memory from other VMs • If memory pool is empty• Based on Memory Priority/Weight

• VM releases memory to memory pool

Host Memory

Pool

VM1

VM2

VM3

VM4

VM5

Page 9: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Virtual Memory (vRAM) - Dynamic

• Only ‘Startup RAM’ allocated at run-time• Up to 64 GB per VM• Can only adjust vRAM when VM is offline• Windows Server 2008 R2 SP1 feature

Page 10: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Startup RAM & Maximum RAM

• Startup RAM• Minimum amount of memory to boot VM• Guaranteed lower memory boundary • Default: 512 MB

• Maximum RAM• Limit amount of memory• Default: 64 GB

Page 11: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Memory Sizing

• Controlling Memory Availability• 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 Memory Buffer and Memory

Weight settings

Page 12: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Memory Buffer

• How much “free” memory should we 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”

• Default: 20%

Page 13: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Host Memory

Pool

Put it together

Memory Buffer

Startup MemoryStartup

Memory

Memory Demand

MemoryBuffer

Maximum Memory

Memory Demand * Configured Buffer Percentage =

64 GB

512 MB

Workload

20 %

MinimumMemory

Page 14: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

DEMO

Page 15: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Memory Priority/Weight

• Which VM gets the memory first, when pool is empty• Default: 5,000 (1-10,000)• The higher the weight, the higher the availability/priority

of memory

Page 16: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Adding/Removing Dynamic Memory• Adding Memory• Immediately when VM needs it (on demand)• Enlightened fashion• Synthetic Memory Driver (VSP/VSC Pair)

• No hardware emulation• Light weight

• Removing Memory• Unutilized memory is collected every 5 minutes• Wanted to remove memory• Ballooning is more efficient

Page 17: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Dynamic Memory Architecture

Windows Kernel

Guest Applications

VMBus

Hypervisor

VMMS

OSMicrosoft Hyper-V

User Mode

KernelMode

VMBus

VMWP

VID

Memory Balancer

Memory Balancer Interface

GMOMemory Manager

DM VDEV/VSP

DM VSC

Dynamic Memory Components

Windows Kernel

Page 18: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Supporting Guest OS• Server OS• Windows Server 2003, 2008 & 2008 R2• Any edition (Web, Standard, Enterprise, Datacenter)• 32-bit & 64-bit versions

• Desktop OS• Windows Vista and Windows 7• Only Enterprise and Ultimate editions• 32-bit & 64-bit versions

Page 19: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

System OS Requirements

• Host OS Requirements: • Hyper-V SP1

• Guest OS Requirements: • Depends on Guest OS & OS Edition:• Integration Components (IC) and/or• QFE and/or• SP1

Page 20: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

System OS Requirements• Host OS Requirements:• Windows Server 2008 R2 SP1• Microsoft Hyper-V Server 2008 R2 SP1

• Guest OS Requirements:• Windows Server 2003: SP2 + IC• Windows Server 2008: IC• Web/Standard: SP2 + QFE 2230887

• Windows Server 2008 R2: IC• Web/Standard: SP1

• Windows Vista: IC• Windows 7: IC

Page 21: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Root Reserve• Hyper-V has always had the concept of a reserve of memory that is

kept for the parent partition

• Dynamic Memory allows VMs to push up against the reserve consistently (empty pool)

• New behavior to better protect the parent partition from being starved by virtual machines

• Since SP1: Host Reserve is auto-calculated based on:• If the machine SLAT capability• Total size of host RAM• NUMA architecture

Host Reserve VM overhead Memory utilized by VMs

VM Reserve

Page 22: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Dynamic Root Reserve• Dynamic algorithm to determine Root Memory Reserve• Since SP1: Host Reserve is auto-calculated based on:• If the machine SLAT capability• Total size of host RAM• NUMA architecture

• Algorithm: 384 MB + 30 MB per GB of host (SLAT capable)• Example: 16 GB Hyper-V Host: 384 + 16*30 = 864 MB

• Does not take into account running agents• Virtualization Management (SCVMM)• Software & Patch Management (SCCM)• Monitoring (SCOM)• Backup (SCDPM)• Hardware Agents (Server, Storage, ...)• Anti-Virus

Page 23: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Static Root Reserve

• Override algorithm to determine Root Memory Reserve• Override using new registry key ‘MemoryReserve’

‘HKLM\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Virtualization’

• Allows to reserve memory for the parent partition (REG_DWORD in MB)

• May result in less memory being available for VMs

Page 24: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

RSAT for Windows 7 SP1

• Remote Server Administration Tools (RSAT)• OOB download at http://download.microsoft.com• KB 958830

• Includes latest Hyper-V Manager console to support• Dynamic Memory• RemoteFX

Page 25: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Hyper-V BPA Update

• Hyper-V Best Practices Analyzer • Addon to Server Manager

• OOB download at http://download.microsoft.com• KB 2485986

• Also supports Dynamic Memory

Page 26: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

DM & SQL Server

• Only certain editions of SQL Server are aware of dynamically changing system memory. • SQL Server 2005 Enterprise• SQL Server 2008 Enterprise / Datacenter Editions• SQL Server 2008 R2 Enterprise / Datacenter Editions

• Support for Guest Clustering

Dynamic Memory Settings Recommendation

Startup RAM 1 GB + SQL Min Server Memory

Maximum RAM > SQL Max Server Memory

Memory Buffer % 5Memory Weight Based on performance needs

Page 27: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

DM & Exchange Server

• Most roles are candidates for virtualisation• HUB• CAS• Edge• Mailbox

• No support for Dynamic Memory

Page 28: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

SCVMM 2008 R2 SP1

Page 29: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

SCVMM 2008 R2 SP1 (v2.0.4521)

• Adds support for key Hyper-V R2 SP1 features• Configuration support (VM, Templates, HW Profiles,

Live Migration, …)• Intelligent Placement support

• Dynamic Memory• Startup Memory, Maximum Memory• Memory Priority, Memory Buffer• Updated VMM PRO Packs (SCOM integration)

• RemoteFX• Maximum number of monitors• Maximum monitor resolution

Page 30: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Dynamic Memory: Configuration Settings

Page 31: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

VMM PRO Tips – In the Box

• SCVMM & SCOM Integration• Using PRO-enabled SCOM management packs• Deliver PRO Tips

• “Host Performance” (Hyper-V and VMware)• CPU and Memory• VMM 2008 (CPU: 90+%, RAM: 75+%)• VMM 2008 R2 (CPU/RAM: 100% - Host Reserve

CPU/RAM)• “VM Right Sizing”• CPU and Memory (CPU: 90+%, RAM: 90+%)• Support for Dynamic Memory

Page 32: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Updated VMM PRO Packs

• VMM PRO management packs for “VM Right Sizing”• Located in AMD64\VirtualizationMP

Page 33: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

SCVMM 2008 R2 SP1 Upgrade Process

• Update SCVMM Server (& Database)• Update SCOM Server (import new PRO MPs)• Update SCVMM Agents• VM Hosts• Library Servers• Self-Service Portal web servers

• Update admin workstations• SCVMM Administrator Console

For more information: System Center TechCenter

Page 34: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

Stay up to date with TechNet BeluxRegister for our newsletters and stay up to date:

http://www.technet-newsletters.be• Technical updates• Event announcements and registration• Top downloads

Join us on Facebookhttp://www.facebook.com/technetbehttp://www.facebook.com/technetbelux

LinkedIn: http://linkd.in/technetbelux/

Twitter: @technetbelux

Download MSDN/TechNet Desktop Gadget

http://bit.ly/msdntngadget

Page 35: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

TechDays 2011 On-Demand

• Watch this session on-demand via TechNet Edge http://technet.microsoft.com/fr-be/edge/

http://technet.microsoft.com/nl-be/edge/

• Download to your favorite MP3 or video player• Get access to slides and recommended resources by the

speakers

Page 36: Windows Server 2008 R2 SP1: Dynamic Memory Kurt Roggen [BE] Blog:  Blog:

THANK YOU!