SlideShare une entreprise Scribd logo
1  sur  57
Optimize Oracle RDBMS on VMware Guy Harrison Director, R&D Melbourne www.guyharrison.net Guy.harrison@quest.com @guyharrison
Introductions
Agenda Motivations for Virtualization VMware ESX resource management: Memory CPU IO Paravirtualization (OVM) vs Hardware Assisted Virtualization (ESX) RAC on VMware
Motivations for Virtualization
Resistance to Database virtualization
DB virtualization is happening
Dba-village.com Mar 2010 May 2009
Oracle virtualization is lagging....
ESX Memory management
Managing ESX memory ESX can “overcommit” memory Sum of all VM physical memory allocations > actual ESX physical memory Memory is critical to Oracle server performance SGA memory to reduce datafile IO PGA memory to reduce sort & hash IO  ESX uses four methods to share memory: Memory Page Sharing “Ballooning” Memory compression ESX swapping DBA needs to carefully configure to avoid disaster
Configuring VM memory VMs Compete for memory in this range Relative Memory Priority for this VM Maximum memory for the VM (dynamic) Minimum Memory for this VM
Monitoring VM memory
ESX and VM memory ESX Swap ESX swap VM ESX virtual memory  Effective VM physical memory  ESX physical memory VM virtual memory
ESX Ballooning ESX Swap ESX swap Vmmemctl “balloon” VM ESX virtual memory  Apparent VM physical memory  Effective VM physical memory  ESX physical memory VM Swap VM Swap
ESX Ballooning As memory grows, ESX balloon driver (vmmemctl) forces VM to page out memory to VM swapfile
ESX Ballooning Inside the VM, paging to the swapfile is observed. The guest OS will determine which pages are paged out If LOCK_SGA=TRUE, then the SGA should not be paged.
ESX Swapping ESX Swap ESX swap ESX virtual memory  VM Effective VM physical memory  ESX physical memory VM virtual memory
ESX Swapping ESX Swap ESX swap VM Apparent VM physical memory  Effective VM physical memory  ESX virtual memory  ESX physical memory
ESX Swapping ESX swaps out VM memory to ESXswapfile
ESX Swapping Within the VM, swapping cannot be detected. ESX will determine which memory pages go to disk Particularly occurs when VMware tools are not installed Even if LOCK_SGA=TRUE, SGA memory might be on disk
Avoiding Ballooning and swapping memory reservations help avoid ballooning or ESX swapping
ESX memory management Memory page sharing  Multiple VMs can share an identical page of memory (Oracle code pages, etc)  Memory compression (new in vSphere 4.1) Pages are compressed and written to cache rather than to disk Swapping is more expensive than ballooning Slower to restore memory OS and Oracle get no choice about what gets paged “Double paging” can occur – guest and ESX both page a block of memory
Ballooning vs. Swapping  Swingbench workload running on Oracle database – from VMWare whitepaper: http://www.vmware.com/files/pdf/perf-vsphere-memory_management.pdf
VMware memory recommendations  Paging or swapping of PGA or SGA is almost always a Very Bad Thingtm. Use memory reservations to avoid swapping or ballooning Install VMware tools to allow ballooning instead of swapping Set Memory reservation = PGA+SGA+process Overhead Be realistic about memory requirements: In physical machines, we are used to using all available memory In VM, use only the memory you need, freeing up memory for other VMs Oracle advisories (or Spotlight) can show you how much memory is needed Reduce VM reservation and Oracle memory targets in tandem to release memory
ESX CPU management
ESX CPU management  If more virtual CPUs than ESX CPUs, then vCPUs will sometimes wait for physical CPU Time “stops” inside the VM when this occurs  For multi-CPU VMs, it’s (nearly) all or nothing.   A vCPU can be in one of three states: Associated with an ESX CPU but idle Associated with an ESX CPU and executing instructions Waiting for ESX CPU to become available  Shares and reservations determine which VM wins access to the ESX CPUs
Configuring VM CPU  VMs compete for CPU in this range Shares determine relative CPU allocated when competing
CPU utilization VM “CPU Ready” is the amount of time VM spends waiting on ESX for CPU  Inside the VM, CPU stats can be misleading
SMP for vCPUs ESX usually has to schedule all vCPUs for a VM simultaneously The more CPUs the harder this is Some CPU is also needed for ESX More is therefore not always better (Thanks to Carl Bradshaw for letting me reprint this diagram from his Oracle on VMWare whitepaper)
ESX CPU performance comparisons VT enabled Vs 2 core 1.8 GHz physical machine
Programmatic performance  NB: Not a benchmark! Just some informal measurements!!
Programmatic performance (2)
ESX CPU recommendations  Use up to date chipsets and ESX software Allocate as few VCPUs as possible to each VM Use reservations and shares to prioritise access to ESX CPU Performance of CPU critical workloads may be disappointing on older hardware Monitor ESX Ready time to determine the “penalty” of competing with other virtual machines
ESX IO managment
Typical VMWare disk configuration
IO Resource Allocation Disk shares can be used to prioritize IO bandwidth. This is poorly implemented prior to vSphere 4.1
Storage IO Control Prior to vSphere 4.1:  disk shares could be used only at the VM level,  and only within a single ESX host vSphere 4.1 Storage IO Control (SIOC): Manages disk share priorities for all VMs attaching to the same datastore Is triggered by high (“congested”) latency Can be enabled globally at the datastore level Enables equitable distribution even when set to defaults
Storage IO Control
vSphere 4.1 SIOC
SOIC won’t make up for a poorly configured IO layout
Performant VMware disk configuration
Optimal configuration  See “Oracle Database Scalability in VMware® ESX” at www.vmware.com/oracle Each virtual disk directly mapped via RDM to dedicated RAID 0 (+1) group  41 Spindles!
ESX IO recommendations Follow normal best practice for physical disks Avoid sharing disk workloads  Dedicated datastores using VMFS  Align virtual disks to physical disks? Consider Raw Device Mapping (RDM) Consider SIOC in vSphere 4.1  If you can’t optimize IO, avoid IO: Tune, tune, tune SQL Prefer indexed paths Memory configuration Don’t forget about temp IO (sorts, hash joins)
Shameless plugs
Paravirtualizationvs Hardware Virtualization
Paravirtualizationvs “Hardware Virtualization” Virtualization is not emulation.... Where-ever possible, Hypervisor runs native code from OS against underlying hardware Because a virtualized operating system is running outside privileged x86 “ring 0”,  direct calls to hardware need special handling. The three main approaches are: Full Virtualization (VMWare on older hardware) ParaVirtualization (Xen, Oracle VM) Hardware Assisted Virtualization (Intel VT, AMD-V)
Full virtualization  Hardware calls from the VM are handled by the hypervisor by: Catching the calls as they occur at run time Re-writing the VM image at load time (binary translation) Requires no special hardware Supports any guest OS Relatively Poor performance Used by ESX on older chip-sets VM Hypervisor Ring 0 Hardware
Hardware Assisted virtualization Intel VT and AMD-V chips add a “root mode”. VMcan issue instructions from non-root Ring 0. CPU can divert these to hypervisor No changes to OS required Good performance Requires modern chipsets Root Mode Non-Root Mode VM Hypervisor Ring 0 Hardware
Paravirtualization ,[object Object]
Hypercalls are handled by a special VM (dom0 in Xen/OVM)
Good performance but requires modified VM OS
Xen can use either paravirtualization or hardware assistVM (domU) Ring 0 VM (dom0) Hypervisor Hardware
RAC and ESX

Contenu connexe

Tendances

Oracle on vSphere best practices
Oracle on vSphere best practices Oracle on vSphere best practices
Oracle on vSphere best practices Filip Verloy
 
VMworld 2013: Architecting Oracle Databases on vSphere 5 with NetApp Storage
VMworld 2013: Architecting Oracle Databases on vSphere 5 with NetApp StorageVMworld 2013: Architecting Oracle Databases on vSphere 5 with NetApp Storage
VMworld 2013: Architecting Oracle Databases on vSphere 5 with NetApp StorageVMworld
 
Integrating your network with windows azure
Integrating your network with windows azureIntegrating your network with windows azure
Integrating your network with windows azureMorgan Simonsen
 
Unitrends Overview 2012
Unitrends Overview 2012Unitrends Overview 2012
Unitrends Overview 2012Tracy Hawkey
 
SOUG_SDM_OracleDB_V3
SOUG_SDM_OracleDB_V3SOUG_SDM_OracleDB_V3
SOUG_SDM_OracleDB_V3UniFabric
 
UniPlex vScaleDB pat. pending
UniPlex vScaleDB pat. pendingUniPlex vScaleDB pat. pending
UniPlex vScaleDB pat. pendingUniFabric
 
Oracle Exadata 1Z0-485 Certification
Oracle Exadata 1Z0-485 CertificationOracle Exadata 1Z0-485 Certification
Oracle Exadata 1Z0-485 CertificationExadatadba
 
Xen server storage Overview
Xen server storage OverviewXen server storage Overview
Xen server storage OverviewNuno Alves
 
Sun Oracle Exadata Technical Overview V1
Sun Oracle Exadata Technical Overview V1Sun Oracle Exadata Technical Overview V1
Sun Oracle Exadata Technical Overview V1jenkin
 
SSD based storage tuning for databases
SSD based storage tuning for databasesSSD based storage tuning for databases
SSD based storage tuning for databasesAngelo Rajadurai
 
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущее
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущееxen server 5.6, provisioning server 5.6 — технические детали и планы на будущее
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущееDenis Gundarev
 
Exadata
ExadataExadata
Exadatatalek
 
All about Azure workshop deck
All about Azure workshop deckAll about Azure workshop deck
All about Azure workshop deckAlexey Bokov
 
Virtualization_TechTalk
Virtualization_TechTalkVirtualization_TechTalk
Virtualization_TechTalkArif k
 
Pod density comparison: VMware vSphere with Tanzu vs. a bare-metal approach ...
 Pod density comparison: VMware vSphere with Tanzu vs. a bare-metal approach ... Pod density comparison: VMware vSphere with Tanzu vs. a bare-metal approach ...
Pod density comparison: VMware vSphere with Tanzu vs. a bare-metal approach ...Principled Technologies
 
Citrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning servicesCitrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning servicesNuno Alves
 
Driving XenApp and XenDesktop Performance with Atlantis ILIO
Driving XenApp and XenDesktop Performance with Atlantis ILIODriving XenApp and XenDesktop Performance with Atlantis ILIO
Driving XenApp and XenDesktop Performance with Atlantis ILIOAndrew Wood
 
2018 Infortrend All Flash Arrays Introduction (GS3025A)
2018 Infortrend All Flash Arrays Introduction (GS3025A)2018 Infortrend All Flash Arrays Introduction (GS3025A)
2018 Infortrend All Flash Arrays Introduction (GS3025A)infortrendgroup
 

Tendances (20)

ZFS appliance
ZFS applianceZFS appliance
ZFS appliance
 
Oracle on vSphere best practices
Oracle on vSphere best practices Oracle on vSphere best practices
Oracle on vSphere best practices
 
vSphere
vSpherevSphere
vSphere
 
VMworld 2013: Architecting Oracle Databases on vSphere 5 with NetApp Storage
VMworld 2013: Architecting Oracle Databases on vSphere 5 with NetApp StorageVMworld 2013: Architecting Oracle Databases on vSphere 5 with NetApp Storage
VMworld 2013: Architecting Oracle Databases on vSphere 5 with NetApp Storage
 
Integrating your network with windows azure
Integrating your network with windows azureIntegrating your network with windows azure
Integrating your network with windows azure
 
Unitrends Overview 2012
Unitrends Overview 2012Unitrends Overview 2012
Unitrends Overview 2012
 
SOUG_SDM_OracleDB_V3
SOUG_SDM_OracleDB_V3SOUG_SDM_OracleDB_V3
SOUG_SDM_OracleDB_V3
 
UniPlex vScaleDB pat. pending
UniPlex vScaleDB pat. pendingUniPlex vScaleDB pat. pending
UniPlex vScaleDB pat. pending
 
Oracle Exadata 1Z0-485 Certification
Oracle Exadata 1Z0-485 CertificationOracle Exadata 1Z0-485 Certification
Oracle Exadata 1Z0-485 Certification
 
Xen server storage Overview
Xen server storage OverviewXen server storage Overview
Xen server storage Overview
 
Sun Oracle Exadata Technical Overview V1
Sun Oracle Exadata Technical Overview V1Sun Oracle Exadata Technical Overview V1
Sun Oracle Exadata Technical Overview V1
 
SSD based storage tuning for databases
SSD based storage tuning for databasesSSD based storage tuning for databases
SSD based storage tuning for databases
 
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущее
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущееxen server 5.6, provisioning server 5.6 — технические детали и планы на будущее
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущее
 
Exadata
ExadataExadata
Exadata
 
All about Azure workshop deck
All about Azure workshop deckAll about Azure workshop deck
All about Azure workshop deck
 
Virtualization_TechTalk
Virtualization_TechTalkVirtualization_TechTalk
Virtualization_TechTalk
 
Pod density comparison: VMware vSphere with Tanzu vs. a bare-metal approach ...
 Pod density comparison: VMware vSphere with Tanzu vs. a bare-metal approach ... Pod density comparison: VMware vSphere with Tanzu vs. a bare-metal approach ...
Pod density comparison: VMware vSphere with Tanzu vs. a bare-metal approach ...
 
Citrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning servicesCitrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning services
 
Driving XenApp and XenDesktop Performance with Atlantis ILIO
Driving XenApp and XenDesktop Performance with Atlantis ILIODriving XenApp and XenDesktop Performance with Atlantis ILIO
Driving XenApp and XenDesktop Performance with Atlantis ILIO
 
2018 Infortrend All Flash Arrays Introduction (GS3025A)
2018 Infortrend All Flash Arrays Introduction (GS3025A)2018 Infortrend All Flash Arrays Introduction (GS3025A)
2018 Infortrend All Flash Arrays Introduction (GS3025A)
 

En vedette

A Paradigm Shift In How We Think About Education Facilities
A Paradigm Shift In How We Think About Education FacilitiesA Paradigm Shift In How We Think About Education Facilities
A Paradigm Shift In How We Think About Education FacilitiesOHM Advisors
 
The Top 4 risks in P4P (Pay for Performance) 20120611
The Top 4 risks in P4P (Pay for Performance) 20120611The Top 4 risks in P4P (Pay for Performance) 20120611
The Top 4 risks in P4P (Pay for Performance) 20120611PERFORMENSATION
 
Wheels of Progress: Downtown Planning 2.0 Beyond the Vision
Wheels of Progress: Downtown Planning 2.0 Beyond the VisionWheels of Progress: Downtown Planning 2.0 Beyond the Vision
Wheels of Progress: Downtown Planning 2.0 Beyond the VisionOHM Advisors
 
Hadoop, Oracle and the big data revolution collaborate 2013
Hadoop, Oracle and the big data revolution collaborate 2013Hadoop, Oracle and the big data revolution collaborate 2013
Hadoop, Oracle and the big data revolution collaborate 2013Guy Harrison
 
Book Places in the Digital Age
Book Places in the Digital AgeBook Places in the Digital Age
Book Places in the Digital AgePenn State Press
 
lesson_03 Setting up Adwords Accounts, Adwords, and Selecting Businesses
lesson_03 Setting up Adwords Accounts, Adwords, and Selecting Businesseslesson_03 Setting up Adwords Accounts, Adwords, and Selecting Businesses
lesson_03 Setting up Adwords Accounts, Adwords, and Selecting BusinessesJim Jansen
 
7 Key Ways to Drive Revenue Using LinkedIn
7 Key Ways to Drive Revenue Using LinkedIn7 Key Ways to Drive Revenue Using LinkedIn
7 Key Ways to Drive Revenue Using LinkedInmbieler
 
Information Skills: 4. Evaluating Sources (Natural Sciences, Bangor University)
Information Skills: 4. Evaluating Sources (Natural Sciences, Bangor University)Information Skills: 4. Evaluating Sources (Natural Sciences, Bangor University)
Information Skills: 4. Evaluating Sources (Natural Sciences, Bangor University)Vashti Zarach
 
Information Skills: 2. Information Hunting (Natural Sciences, Bangor Universi...
Information Skills: 2. Information Hunting (Natural Sciences, Bangor Universi...Information Skills: 2. Information Hunting (Natural Sciences, Bangor Universi...
Information Skills: 2. Information Hunting (Natural Sciences, Bangor Universi...Vashti Zarach
 
Sunday Streets Bpag Presentation 1
Sunday Streets   Bpag Presentation 1Sunday Streets   Bpag Presentation 1
Sunday Streets Bpag Presentation 1gcantori
 
Lesson 06 Ist402 Keywords 02
Lesson 06 Ist402 Keywords 02Lesson 06 Ist402 Keywords 02
Lesson 06 Ist402 Keywords 02Jim Jansen
 
Map of WWII Europe theatre
Map of WWII  Europe theatreMap of WWII  Europe theatre
Map of WWII Europe theatrePatricia Guzman
 
Lesson_04_ist402_google_adwords_02
Lesson_04_ist402_google_adwords_02Lesson_04_ist402_google_adwords_02
Lesson_04_ist402_google_adwords_02Jim Jansen
 
Thanks for the Memory
Thanks for the MemoryThanks for the Memory
Thanks for the MemoryGuy Harrison
 
Lesson 13 Writing Good Ads 02
Lesson 13 Writing Good Ads 02Lesson 13 Writing Good Ads 02
Lesson 13 Writing Good Ads 02Jim Jansen
 
50 Tax Savings Ideas
50 Tax Savings Ideas50 Tax Savings Ideas
50 Tax Savings IdeasFormerIRS
 
Simples Nacional : E outras formas de redução de custos
Simples Nacional: E outras formas de redução de custosSimples Nacional: E outras formas de redução de custos
Simples Nacional : E outras formas de redução de custosPrestus®
 
Networked Consumers: How networked and how important?
Networked Consumers:  How networked and how important?Networked Consumers:  How networked and how important?
Networked Consumers: How networked and how important?Jim Jansen
 
Supplemental Info: Say on Pay and Dodd Frank 20100723
Supplemental Info: Say on Pay and Dodd Frank 20100723Supplemental Info: Say on Pay and Dodd Frank 20100723
Supplemental Info: Say on Pay and Dodd Frank 20100723PERFORMENSATION
 

En vedette (20)

A Paradigm Shift In How We Think About Education Facilities
A Paradigm Shift In How We Think About Education FacilitiesA Paradigm Shift In How We Think About Education Facilities
A Paradigm Shift In How We Think About Education Facilities
 
The Top 4 risks in P4P (Pay for Performance) 20120611
The Top 4 risks in P4P (Pay for Performance) 20120611The Top 4 risks in P4P (Pay for Performance) 20120611
The Top 4 risks in P4P (Pay for Performance) 20120611
 
Wheels of Progress: Downtown Planning 2.0 Beyond the Vision
Wheels of Progress: Downtown Planning 2.0 Beyond the VisionWheels of Progress: Downtown Planning 2.0 Beyond the Vision
Wheels of Progress: Downtown Planning 2.0 Beyond the Vision
 
Hadoop, Oracle and the big data revolution collaborate 2013
Hadoop, Oracle and the big data revolution collaborate 2013Hadoop, Oracle and the big data revolution collaborate 2013
Hadoop, Oracle and the big data revolution collaborate 2013
 
Book Places in the Digital Age
Book Places in the Digital AgeBook Places in the Digital Age
Book Places in the Digital Age
 
lesson_03 Setting up Adwords Accounts, Adwords, and Selecting Businesses
lesson_03 Setting up Adwords Accounts, Adwords, and Selecting Businesseslesson_03 Setting up Adwords Accounts, Adwords, and Selecting Businesses
lesson_03 Setting up Adwords Accounts, Adwords, and Selecting Businesses
 
7 Key Ways to Drive Revenue Using LinkedIn
7 Key Ways to Drive Revenue Using LinkedIn7 Key Ways to Drive Revenue Using LinkedIn
7 Key Ways to Drive Revenue Using LinkedIn
 
Information Skills: 4. Evaluating Sources (Natural Sciences, Bangor University)
Information Skills: 4. Evaluating Sources (Natural Sciences, Bangor University)Information Skills: 4. Evaluating Sources (Natural Sciences, Bangor University)
Information Skills: 4. Evaluating Sources (Natural Sciences, Bangor University)
 
Information Skills: 2. Information Hunting (Natural Sciences, Bangor Universi...
Information Skills: 2. Information Hunting (Natural Sciences, Bangor Universi...Information Skills: 2. Information Hunting (Natural Sciences, Bangor Universi...
Information Skills: 2. Information Hunting (Natural Sciences, Bangor Universi...
 
Sunday Streets Bpag Presentation 1
Sunday Streets   Bpag Presentation 1Sunday Streets   Bpag Presentation 1
Sunday Streets Bpag Presentation 1
 
Lesson 06 Ist402 Keywords 02
Lesson 06 Ist402 Keywords 02Lesson 06 Ist402 Keywords 02
Lesson 06 Ist402 Keywords 02
 
Map of WWII Europe theatre
Map of WWII  Europe theatreMap of WWII  Europe theatre
Map of WWII Europe theatre
 
Lesson_04_ist402_google_adwords_02
Lesson_04_ist402_google_adwords_02Lesson_04_ist402_google_adwords_02
Lesson_04_ist402_google_adwords_02
 
Thanks for the Memory
Thanks for the MemoryThanks for the Memory
Thanks for the Memory
 
Lesson 13 Writing Good Ads 02
Lesson 13 Writing Good Ads 02Lesson 13 Writing Good Ads 02
Lesson 13 Writing Good Ads 02
 
50 Tax Savings Ideas
50 Tax Savings Ideas50 Tax Savings Ideas
50 Tax Savings Ideas
 
Bni 2013 presentation
Bni 2013 presentationBni 2013 presentation
Bni 2013 presentation
 
Simples Nacional : E outras formas de redução de custos
Simples Nacional: E outras formas de redução de custosSimples Nacional: E outras formas de redução de custos
Simples Nacional : E outras formas de redução de custos
 
Networked Consumers: How networked and how important?
Networked Consumers:  How networked and how important?Networked Consumers:  How networked and how important?
Networked Consumers: How networked and how important?
 
Supplemental Info: Say on Pay and Dodd Frank 20100723
Supplemental Info: Say on Pay and Dodd Frank 20100723Supplemental Info: Say on Pay and Dodd Frank 20100723
Supplemental Info: Say on Pay and Dodd Frank 20100723
 

Similaire à Optimize Oracle On VMware (Sep 2011)

Optimize oracle on VMware (April 2011)
Optimize oracle on VMware (April 2011)Optimize oracle on VMware (April 2011)
Optimize oracle on VMware (April 2011)Guy Harrison
 
Using VMware Infrastructure for Backup and Restore
Using VMware Infrastructure for Backup and RestoreUsing VMware Infrastructure for Backup and Restore
Using VMware Infrastructure for Backup and Restorewebhostingguy
 
Memory virtualisation
Memory virtualisationMemory virtualisation
Memory virtualisationKumar
 
Rearchitecting Storage for Server Virtualization
Rearchitecting Storage for Server VirtualizationRearchitecting Storage for Server Virtualization
Rearchitecting Storage for Server VirtualizationStephen Foskett
 
PernixData - A New Era of Server Side Storage
PernixData - A New Era of Server Side StoragePernixData - A New Era of Server Side Storage
PernixData - A New Era of Server Side StorageVMUG IT
 
Presentation v mware performance overview
Presentation   v mware performance overviewPresentation   v mware performance overview
Presentation v mware performance overviewsolarisyourep
 
Presentation v mware v-sphere advanced troubleshooting by eric sloof
Presentation   v mware v-sphere advanced troubleshooting by eric sloofPresentation   v mware v-sphere advanced troubleshooting by eric sloof
Presentation v mware v-sphere advanced troubleshooting by eric sloofsolarisyourep
 
VMware Performance Troubleshooting
VMware Performance TroubleshootingVMware Performance Troubleshooting
VMware Performance Troubleshootingglbsolutions
 
Esxi troubleshooting
Esxi troubleshootingEsxi troubleshooting
Esxi troubleshootingOvi Chis
 
VMworld 2010 - Building an Affordable vSphere Environment for a Lab or Small ...
VMworld 2010 - Building an Affordable vSphere Environment for a Lab or Small ...VMworld 2010 - Building an Affordable vSphere Environment for a Lab or Small ...
VMworld 2010 - Building an Affordable vSphere Environment for a Lab or Small ...KiwiSi
 
VMworld 2013: Successfully Virtualize Microsoft Exchange Server
VMworld 2013: Successfully Virtualize Microsoft Exchange Server VMworld 2013: Successfully Virtualize Microsoft Exchange Server
VMworld 2013: Successfully Virtualize Microsoft Exchange Server VMworld
 
Get Your GeekOn with Ron - Session One: Designing your VDI Servers
Get Your GeekOn with Ron - Session One: Designing your VDI ServersGet Your GeekOn with Ron - Session One: Designing your VDI Servers
Get Your GeekOn with Ron - Session One: Designing your VDI ServersUnidesk Corporation
 

Similaire à Optimize Oracle On VMware (Sep 2011) (20)

Optimize oracle on VMware (April 2011)
Optimize oracle on VMware (April 2011)Optimize oracle on VMware (April 2011)
Optimize oracle on VMware (April 2011)
 
Using VMware Infrastructure for Backup and Restore
Using VMware Infrastructure for Backup and RestoreUsing VMware Infrastructure for Backup and Restore
Using VMware Infrastructure for Backup and Restore
 
Memory virtualisation
Memory virtualisationMemory virtualisation
Memory virtualisation
 
Rearchitecting Storage for Server Virtualization
Rearchitecting Storage for Server VirtualizationRearchitecting Storage for Server Virtualization
Rearchitecting Storage for Server Virtualization
 
Virtualization.ppt
Virtualization.pptVirtualization.ppt
Virtualization.ppt
 
Virtualization.ppt
Virtualization.pptVirtualization.ppt
Virtualization.ppt
 
Virtualization.ppt
Virtualization.pptVirtualization.ppt
Virtualization.ppt
 
Virtualization.ppt
Virtualization.pptVirtualization.ppt
Virtualization.ppt
 
Virtualization.ppt
Virtualization.pptVirtualization.ppt
Virtualization.ppt
 
PernixData - A New Era of Server Side Storage
PernixData - A New Era of Server Side StoragePernixData - A New Era of Server Side Storage
PernixData - A New Era of Server Side Storage
 
IBM XIV Gen3 Storage System
IBM XIV Gen3 Storage SystemIBM XIV Gen3 Storage System
IBM XIV Gen3 Storage System
 
Presentation v mware performance overview
Presentation   v mware performance overviewPresentation   v mware performance overview
Presentation v mware performance overview
 
Presentation v mware v-sphere advanced troubleshooting by eric sloof
Presentation   v mware v-sphere advanced troubleshooting by eric sloofPresentation   v mware v-sphere advanced troubleshooting by eric sloof
Presentation v mware v-sphere advanced troubleshooting by eric sloof
 
VMware Performance Troubleshooting
VMware Performance TroubleshootingVMware Performance Troubleshooting
VMware Performance Troubleshooting
 
Esxi troubleshooting
Esxi troubleshootingEsxi troubleshooting
Esxi troubleshooting
 
VMworld 2010 - Building an Affordable vSphere Environment for a Lab or Small ...
VMworld 2010 - Building an Affordable vSphere Environment for a Lab or Small ...VMworld 2010 - Building an Affordable vSphere Environment for a Lab or Small ...
VMworld 2010 - Building an Affordable vSphere Environment for a Lab or Small ...
 
VMware Performance
VMware Performance VMware Performance
VMware Performance
 
Virtualization
VirtualizationVirtualization
Virtualization
 
VMworld 2013: Successfully Virtualize Microsoft Exchange Server
VMworld 2013: Successfully Virtualize Microsoft Exchange Server VMworld 2013: Successfully Virtualize Microsoft Exchange Server
VMworld 2013: Successfully Virtualize Microsoft Exchange Server
 
Get Your GeekOn with Ron - Session One: Designing your VDI Servers
Get Your GeekOn with Ron - Session One: Designing your VDI ServersGet Your GeekOn with Ron - Session One: Designing your VDI Servers
Get Your GeekOn with Ron - Session One: Designing your VDI Servers
 

Plus de Guy Harrison

Five database trends - updated April 2015
Five database trends - updated April 2015Five database trends - updated April 2015
Five database trends - updated April 2015Guy Harrison
 
From oracle to hadoop with Sqoop and other tools
From oracle to hadoop with Sqoop and other toolsFrom oracle to hadoop with Sqoop and other tools
From oracle to hadoop with Sqoop and other toolsGuy Harrison
 
Thriving and surviving the Big Data revolution
Thriving and surviving the Big Data revolutionThriving and surviving the Big Data revolution
Thriving and surviving the Big Data revolutionGuy Harrison
 
Mega trends in information management
Mega trends in information managementMega trends in information management
Mega trends in information managementGuy Harrison
 
Big datacamp2013 share
Big datacamp2013 shareBig datacamp2013 share
Big datacamp2013 shareGuy Harrison
 
Hadoop, oracle and the industrial revolution of data
Hadoop, oracle and the industrial revolution of data Hadoop, oracle and the industrial revolution of data
Hadoop, oracle and the industrial revolution of data Guy Harrison
 
Oracle sql high performance tuning
Oracle sql high performance tuningOracle sql high performance tuning
Oracle sql high performance tuningGuy Harrison
 
Hadoop and rdbms with sqoop
Hadoop and rdbms with sqoop Hadoop and rdbms with sqoop
Hadoop and rdbms with sqoop Guy Harrison
 
Next generation databases july2010
Next generation databases july2010Next generation databases july2010
Next generation databases july2010Guy Harrison
 
High Performance Plsql
High Performance PlsqlHigh Performance Plsql
High Performance PlsqlGuy Harrison
 
Performance By Design
Performance By DesignPerformance By Design
Performance By DesignGuy Harrison
 
Top 10 tips for Oracle performance
Top 10 tips for Oracle performanceTop 10 tips for Oracle performance
Top 10 tips for Oracle performanceGuy Harrison
 
How I learned to stop worrying and love Oracle
How I learned to stop worrying and love OracleHow I learned to stop worrying and love Oracle
How I learned to stop worrying and love OracleGuy Harrison
 
Performance By Design
Performance By DesignPerformance By Design
Performance By DesignGuy Harrison
 
High Performance Plsql
High Performance PlsqlHigh Performance Plsql
High Performance PlsqlGuy Harrison
 
Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)Guy Harrison
 

Plus de Guy Harrison (16)

Five database trends - updated April 2015
Five database trends - updated April 2015Five database trends - updated April 2015
Five database trends - updated April 2015
 
From oracle to hadoop with Sqoop and other tools
From oracle to hadoop with Sqoop and other toolsFrom oracle to hadoop with Sqoop and other tools
From oracle to hadoop with Sqoop and other tools
 
Thriving and surviving the Big Data revolution
Thriving and surviving the Big Data revolutionThriving and surviving the Big Data revolution
Thriving and surviving the Big Data revolution
 
Mega trends in information management
Mega trends in information managementMega trends in information management
Mega trends in information management
 
Big datacamp2013 share
Big datacamp2013 shareBig datacamp2013 share
Big datacamp2013 share
 
Hadoop, oracle and the industrial revolution of data
Hadoop, oracle and the industrial revolution of data Hadoop, oracle and the industrial revolution of data
Hadoop, oracle and the industrial revolution of data
 
Oracle sql high performance tuning
Oracle sql high performance tuningOracle sql high performance tuning
Oracle sql high performance tuning
 
Hadoop and rdbms with sqoop
Hadoop and rdbms with sqoop Hadoop and rdbms with sqoop
Hadoop and rdbms with sqoop
 
Next generation databases july2010
Next generation databases july2010Next generation databases july2010
Next generation databases july2010
 
High Performance Plsql
High Performance PlsqlHigh Performance Plsql
High Performance Plsql
 
Performance By Design
Performance By DesignPerformance By Design
Performance By Design
 
Top 10 tips for Oracle performance
Top 10 tips for Oracle performanceTop 10 tips for Oracle performance
Top 10 tips for Oracle performance
 
How I learned to stop worrying and love Oracle
How I learned to stop worrying and love OracleHow I learned to stop worrying and love Oracle
How I learned to stop worrying and love Oracle
 
Performance By Design
Performance By DesignPerformance By Design
Performance By Design
 
High Performance Plsql
High Performance PlsqlHigh Performance Plsql
High Performance Plsql
 
Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)
 

Dernier

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 

Dernier (20)

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 

Optimize Oracle On VMware (Sep 2011)

  • 1. Optimize Oracle RDBMS on VMware Guy Harrison Director, R&D Melbourne www.guyharrison.net Guy.harrison@quest.com @guyharrison
  • 3. Agenda Motivations for Virtualization VMware ESX resource management: Memory CPU IO Paravirtualization (OVM) vs Hardware Assisted Virtualization (ESX) RAC on VMware
  • 5. Resistance to Database virtualization
  • 10. Managing ESX memory ESX can “overcommit” memory Sum of all VM physical memory allocations > actual ESX physical memory Memory is critical to Oracle server performance SGA memory to reduce datafile IO PGA memory to reduce sort & hash IO ESX uses four methods to share memory: Memory Page Sharing “Ballooning” Memory compression ESX swapping DBA needs to carefully configure to avoid disaster
  • 11. Configuring VM memory VMs Compete for memory in this range Relative Memory Priority for this VM Maximum memory for the VM (dynamic) Minimum Memory for this VM
  • 13. ESX and VM memory ESX Swap ESX swap VM ESX virtual memory Effective VM physical memory ESX physical memory VM virtual memory
  • 14. ESX Ballooning ESX Swap ESX swap Vmmemctl “balloon” VM ESX virtual memory Apparent VM physical memory Effective VM physical memory ESX physical memory VM Swap VM Swap
  • 15. ESX Ballooning As memory grows, ESX balloon driver (vmmemctl) forces VM to page out memory to VM swapfile
  • 16. ESX Ballooning Inside the VM, paging to the swapfile is observed. The guest OS will determine which pages are paged out If LOCK_SGA=TRUE, then the SGA should not be paged.
  • 17. ESX Swapping ESX Swap ESX swap ESX virtual memory VM Effective VM physical memory ESX physical memory VM virtual memory
  • 18. ESX Swapping ESX Swap ESX swap VM Apparent VM physical memory Effective VM physical memory ESX virtual memory ESX physical memory
  • 19. ESX Swapping ESX swaps out VM memory to ESXswapfile
  • 20. ESX Swapping Within the VM, swapping cannot be detected. ESX will determine which memory pages go to disk Particularly occurs when VMware tools are not installed Even if LOCK_SGA=TRUE, SGA memory might be on disk
  • 21. Avoiding Ballooning and swapping memory reservations help avoid ballooning or ESX swapping
  • 22. ESX memory management Memory page sharing Multiple VMs can share an identical page of memory (Oracle code pages, etc) Memory compression (new in vSphere 4.1) Pages are compressed and written to cache rather than to disk Swapping is more expensive than ballooning Slower to restore memory OS and Oracle get no choice about what gets paged “Double paging” can occur – guest and ESX both page a block of memory
  • 23. Ballooning vs. Swapping Swingbench workload running on Oracle database – from VMWare whitepaper: http://www.vmware.com/files/pdf/perf-vsphere-memory_management.pdf
  • 24. VMware memory recommendations Paging or swapping of PGA or SGA is almost always a Very Bad Thingtm. Use memory reservations to avoid swapping or ballooning Install VMware tools to allow ballooning instead of swapping Set Memory reservation = PGA+SGA+process Overhead Be realistic about memory requirements: In physical machines, we are used to using all available memory In VM, use only the memory you need, freeing up memory for other VMs Oracle advisories (or Spotlight) can show you how much memory is needed Reduce VM reservation and Oracle memory targets in tandem to release memory
  • 25.
  • 27. ESX CPU management If more virtual CPUs than ESX CPUs, then vCPUs will sometimes wait for physical CPU Time “stops” inside the VM when this occurs For multi-CPU VMs, it’s (nearly) all or nothing. A vCPU can be in one of three states: Associated with an ESX CPU but idle Associated with an ESX CPU and executing instructions Waiting for ESX CPU to become available Shares and reservations determine which VM wins access to the ESX CPUs
  • 28. Configuring VM CPU VMs compete for CPU in this range Shares determine relative CPU allocated when competing
  • 29. CPU utilization VM “CPU Ready” is the amount of time VM spends waiting on ESX for CPU Inside the VM, CPU stats can be misleading
  • 30. SMP for vCPUs ESX usually has to schedule all vCPUs for a VM simultaneously The more CPUs the harder this is Some CPU is also needed for ESX More is therefore not always better (Thanks to Carl Bradshaw for letting me reprint this diagram from his Oracle on VMWare whitepaper)
  • 31. ESX CPU performance comparisons VT enabled Vs 2 core 1.8 GHz physical machine
  • 32. Programmatic performance NB: Not a benchmark! Just some informal measurements!!
  • 34. ESX CPU recommendations Use up to date chipsets and ESX software Allocate as few VCPUs as possible to each VM Use reservations and shares to prioritise access to ESX CPU Performance of CPU critical workloads may be disappointing on older hardware Monitor ESX Ready time to determine the “penalty” of competing with other virtual machines
  • 36. Typical VMWare disk configuration
  • 37. IO Resource Allocation Disk shares can be used to prioritize IO bandwidth. This is poorly implemented prior to vSphere 4.1
  • 38. Storage IO Control Prior to vSphere 4.1: disk shares could be used only at the VM level, and only within a single ESX host vSphere 4.1 Storage IO Control (SIOC): Manages disk share priorities for all VMs attaching to the same datastore Is triggered by high (“congested”) latency Can be enabled globally at the datastore level Enables equitable distribution even when set to defaults
  • 41. SOIC won’t make up for a poorly configured IO layout
  • 42. Performant VMware disk configuration
  • 43. Optimal configuration See “Oracle Database Scalability in VMware® ESX” at www.vmware.com/oracle Each virtual disk directly mapped via RDM to dedicated RAID 0 (+1) group 41 Spindles!
  • 44. ESX IO recommendations Follow normal best practice for physical disks Avoid sharing disk workloads Dedicated datastores using VMFS Align virtual disks to physical disks? Consider Raw Device Mapping (RDM) Consider SIOC in vSphere 4.1 If you can’t optimize IO, avoid IO: Tune, tune, tune SQL Prefer indexed paths Memory configuration Don’t forget about temp IO (sorts, hash joins)
  • 46.
  • 47.
  • 48.
  • 50. Paravirtualizationvs “Hardware Virtualization” Virtualization is not emulation.... Where-ever possible, Hypervisor runs native code from OS against underlying hardware Because a virtualized operating system is running outside privileged x86 “ring 0”, direct calls to hardware need special handling. The three main approaches are: Full Virtualization (VMWare on older hardware) ParaVirtualization (Xen, Oracle VM) Hardware Assisted Virtualization (Intel VT, AMD-V)
  • 51. Full virtualization Hardware calls from the VM are handled by the hypervisor by: Catching the calls as they occur at run time Re-writing the VM image at load time (binary translation) Requires no special hardware Supports any guest OS Relatively Poor performance Used by ESX on older chip-sets VM Hypervisor Ring 0 Hardware
  • 52. Hardware Assisted virtualization Intel VT and AMD-V chips add a “root mode”. VMcan issue instructions from non-root Ring 0. CPU can divert these to hypervisor No changes to OS required Good performance Requires modern chipsets Root Mode Non-Root Mode VM Hypervisor Ring 0 Hardware
  • 53.
  • 54. Hypercalls are handled by a special VM (dom0 in Xen/OVM)
  • 55. Good performance but requires modified VM OS
  • 56. Xen can use either paravirtualization or hardware assistVM (domU) Ring 0 VM (dom0) Hypervisor Hardware
  • 58. Paravirtualization, ESX and RAC Prior to 11.2.0.2, Oracle relied on paravirtualized kernels to maintain time synchronization for RAC clusters. From 11.2.0.2 Oracle uses Cluster Time Synchronization Service (CTSS) to maintain clock sync, and this works on ESX Therefore, Oracle supports RAC on Vmware ESX only from 11.2.0.2 onwards See Oracle MySupport Note 249212.1
  • 59. References Latest version of this presentation: http://www.slideshare.net/gharriso/optimize-oracle-on-vmware-5271530 My blog (www.guyharrison.net ): http://guyharrison.squarespace.com/blog/2010/2/22/memory-management-for-oracle-databases-on-vmware-esx.html http://guyharrison.squarespace.com/blog/2010/4/9/esx-cpu-optimization-for-oracle-databases.html http://guyharrison.squarespace.com/blog/2010/7/12/stolen-cpu-on-xen-based-virtual-machines.html http://www.vmware.com/files/pdf/perf-vsphere-memory_management.pdf http://www.vmware.com/files/pdf/Oracle_Databases_on_vSphere_Deployment_Tips.pdf http://www.vmware.com/files/pdf/techpaper/VMW-vSphere41-SIOC.pdf

Notes de l'éditeur

  1. Apologies, I’m a database type.....Quest is best known for toad, but we also have enterprise monitoring across all levels of the stackIn Melbourne, SQL Navigator + the spotlights. It’s not a complete co-incidence about the star trek theme.
  2. As well as total memory to the VM, you can:Adjust memory “shares”, which determine priority for this machine when in contention with other machinesReservation: guaranteed (sort of) amount of memory to allocate Limit, if you want to prevent VM from getting all it’s memory Memory reservationsMemory SharesIdle memory taxMemory sharingThe Balloon driver (vmmemctl) ESX swapping