davidklee.net gplus.to/kleegeek linked.com/a/davidaklee

Similar documents
Virtual SQL Servers. Actual Performance. 2016

Thank you Sponsors! Please visit the sponsors and enter their end-of-day raffles.

davidklee.net heraflux.com linkedin.com/in/davidaklee

Infrastructure Tuning

It s. slow! SQL Saturday. Copyright Heraflux Technologies. Do not redistribute or copy as your own. 1. Database. Firewall Load Balancer.

You know us individually, but do you know Linchpin People?

Squeezing Top Performance From Your Virtualized SQL Server

Squeezing Top Performance from your Virtualized SQL Server. David Klee, Group Principal and Practice Lead. Lincoln SQL Server User Group,

You know us individually, but do you know Linchpin People?

Copyright Heraflux Technologies. Do not redistribute or copy as your own. 1

SQL Saturday David Klee

SQL Server Virtualization 201

Performance & Scalability Testing in Virtual Environment Hemant Gaidhani, Senior Technical Marketing Manager, VMware

What s New in VMware vsphere 4.1 Performance. VMware vsphere 4.1

Nutanix Tech Note. Virtualizing Microsoft Applications on Web-Scale Infrastructure

Public Cloud Leverage For IT/Business Alignment Business Goals Agility to speed time to market, adapt to market demands Elasticity to meet demand whil

(Un)loved Child of Gen. Cloud - Oracle on VMware

Perfmon Collection Setup Instructions for Windows Server 2008R2+

Performance Sentry VM Provider Objects April 11, 2012

Database Services at CERN with Oracle 10g RAC and ASM on Commodity HW

Identifying Performance Bottlenecks with Real- World Applications and Flash-Based Storage

Pivot3 Acuity with Microsoft SQL Server Reference Architecture

Perfmon Collection Setup Instructions for Windows Server 2008R2+

Open Windows Perfmon and expand the Data Collector Sets, User Defined tree item.

Microsoft SQL Server in a VMware Environment on Dell PowerEdge R810 Servers and Dell EqualLogic Storage

Database Architecture 2 & Storage. Instructor: Matei Zaharia cs245.stanford.edu

Assessing performance in HP LeftHand SANs

The Software Driven Datacenter

BlackBerry AtHoc Networked Crisis Communication Capacity Planning Guidelines. AtHoc SMS Codes

Microsoft Applications on Nutanix

Accelerate Applications Using EqualLogic Arrays with directcache

Adapted from: TRENDS AND ATTRIBUTES OF HORIZONTAL AND VERTICAL COMPUTING ARCHITECTURES

W H I T E P A P E R. What s New in VMware vsphere 4: Performance Enhancements

Gavin Payne Senior Consultant.

EMC XTREMCACHE ACCELERATES VIRTUALIZED ORACLE

PRESENTATION TITLE GOES HERE

The vsphere 6.0 Advantages Over Hyper- V

Oracle Performance on M5000 with F20 Flash Cache. Benchmark Report September 2011

IBM Education Assistance for z/os V2R2

Best Practices for Setting BIOS Parameters for Performance

Vblock Architecture. Andrew Smallridge DC Technology Solutions Architect

Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

NetVault Backup Client and Server Sizing Guide 2.1

HIGH PERFORMANCE SANLESS CLUSTERING THE POWER OF FUSION-IO THE PROTECTION OF SIOS

Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

DataON and Intel Select Hyper-Converged Infrastructure (HCI) Maximizes IOPS Performance for Windows Server Software-Defined Storage

Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

VMware Virtual SAN Technology

HP ProLiant DL380 Gen8 and HP PCle LE Workload Accelerator 28TB/45TB Data Warehouse Fast Track Reference Architecture

Consulting Solutions WHITE PAPER Citrix XenDesktop XenApp 6.x Planning Guide: Virtualization Best Practices

Understanding vnuma (Virtual Non-Uniform Memory Access)

Page Replacement Algorithms

Dell EMC Unity: Performance Analysis Deep Dive. Keith Snell Performance Engineering Midrange & Entry Solutions Group

Free up rack space by replacing old servers and storage

SQL Server: Practical Troubleshooting. Dmitri Korotkevitch (

Virtualizing Oracle on VMware

RACKSPACE ONMETAL I/O V2 OUTPERFORMS AMAZON EC2 BY UP TO 2X IN BENCHMARK TESTING

Virtualization and the Metrics of Performance & Capacity Management

vsphere 4 The Best Platform for Business-Critical Applications Gaetan Castelein Sr Product Marketing Manager VMware, Inc.

Configuration Guide for Veeam Backup & Replication with the HPE Hyper Converged 250 System

Running SQL Server 2008 in a Hyper-V Environment

PRESERVE DATABASE PERFORMANCE WHEN RUNNING MIXED WORKLOADS

VIRTUAL APPLIANCES. Frequently Asked Questions (FAQ)

Lane Levere( Sr. Systems Engineer

ReDefine Enterprise Storage

Measuring VMware Environments

NEC Express5800 A2040b 22TB Data Warehouse Fast Track. Reference Architecture with SW mirrored HGST FlashMAX III

Virtualized SQL Server Performance and Scaling on Dell EMC XC Series Web-Scale Hyper-converged Appliances Powered by Nutanix Software

Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12

Your Speakers. Iwan e1 Rahabok Linkedin.com/in/e1ang

Cisco HyperFlex Hyperconverged Infrastructure Solution for SAP HANA

Extremely Fast Distributed Storage for Cloud Service Providers

IT Infrastructure: Poised for Change

HP solutions for mission critical SQL Server Data Management environments

WHITE PAPER. Optimizing Virtual Platform Disk Performance

The Impact of SSD Selection on SQL Server Performance. Solution Brief. Understanding the differences in NVMe and SATA SSD throughput

Independent consultant. (Ex-) Oracle ACE Director. Member of OakTable Network. Performance Troubleshooting In-house workshops

FAST SQL SERVER BACKUP AND RESTORE

Microsoft SQL Server 2012 Fast Track Reference Configuration Using PowerEdge R720 and EqualLogic PS6110XV Arrays

Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

MERC. User Guide. For Magento 2.X. Version P a g e

EMC XTREMCACHE ACCELERATES MICROSOFT SQL SERVER

Certified Reference Design for VMware Cloud Providers

VVD for Cloud Providers: Scale and Performance Guidelines. October 2018

EMC Innovations in High-end storages

SharePoint 2010 Technical Case Study: Microsoft SharePoint Server 2010 Social Environment

Performance Testing December 16, 2017

Sizing & Quotation for Sangfor HCI Technical Training

Database Solutions Engineering. Best Practices for running Microsoft SQL Server and Microsoft Hyper-V on Dell PowerEdge Servers and Storage

Recovering Disk Storage Metrics from low level Trace events

Deployment Planning and Optimization for Big Data & Cloud Storage Systems

Evaluation Report: Improving SQL Server Database Performance with Dot Hill AssuredSAN 4824 Flash Upgrades

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:

Performance of vsphere 6.7 Scheduling Options

Job sample: SCOPE (VLDBJ, 2012)

Cloud Monitoring as a Service. Built On Machine Learning

A Kaminario Reference Architecture: Reference Architecture for Running SQL Server on ESXi

Flash Storage Complementing a Data Lake for Real-Time Insight

IOmark-VM. VMware VSAN Intel Servers + VMware VSAN Storage SW Test Report: VM-HC a Test Report Date: 16, August

Transcription:

@kleegeek davidklee.net gplus.to/kleegeek linked.com/a/davidaklee Specialties / Focus Areas / Passions: Performance Tuning & Troubleshooting Virtualization Cloud Enablement Infrastructure Architecture Health & Efficiency Capacity Management High Availability Disaster Recovery SQLPASS Virtual Chapters Virtualization HA / DR Performance Heraflux Technologies 2 1

What is right-sizing, and why Profiling the system stack components CPU / memory / storage Analyzing environment Workload analysis Perfmon data review Abstraction layer between hardware and OS Resources Queues Limits in the environment Resource limitations (hard) Queue contention (soft) 2

resource allocations vcpu Memory Storage presentation One size does not fit all workloads Inappropriate resource allocations can hurt performance Hard Limits (Resources) Single compute node hardware Total cluster compute capacity Storage speed (IOPs, throughput) maximums Interconnect path speed Soft Limits (Queues) Memory oversubscription CPU scheduler contention Shared resource utilization Variable resource utilization levels Noisy Neighbors 3

16 vcpu 128 GB vram 8 vcpu 64 GB vram 2 vcpu 16 GB vram 2 vcpu 16 GB vram 2 vcpu 16 GB vram 2 vcpu 16 GB vram 2 vcpu 16 GB vram 2 vcpu 16 GB vram V I R T U A L I Z A T I O N 150 GHz CPU 4 TB Memory 4x10GbE Network 20 TB Tier 1 Storage 40 TB Tier 2 Storage TASK TASK TASK TASK TASK Hypervisor CPU Scheduler CPU Scheduling Queue Memory Allocator Mem Allocation Queue Disk Scheduler Disk Scheduling Queue Network Scheduler Network Scheduling Queue CPU Execution Mem R / W Disk R / W Network Tran / Rec 4

Resource limits are easy to detect / work around Queue contention much harder Time in queue = time lost from Silent performance killer Everything in a must be scheduled including idle resources Queue processing is not always FIFO vcpu scheduling queues by pcpu core Scheduling queue waits vcpu0 SMP TASKS vcpu1 vcpu2 vcpu3 High vcpu queue contention 5

vcpu scheduling queues by pcpu core Scheduling queue waits vcpu0 SMP TASKS vcpu1 High vcpu queue contention Application 24x7 performance metric collection CRITICAL Metrics from every piece of the system stack Interconnects SQL Server DB SQL Server Instance Operating System Virtualization Physical Server Storage Networking 6

SQL Server Raw CPU / mem / disk usage NUMA memory usage Signal waits Storage latency by DB file Wait statistics Glenn Berry @ bit.ly/1wdmb8n Windows CPU & memory consumption Storage IOPs / latency / throughput Processes (SQL Server vs other) Perfmon how-to @ bit.ly/1sqsvns @ bit.ly/1xw4jzj Capture all metrics as granularly as possible! Virtualization Resource consumption by Resource utilization by host CPU scheduling queue wait Overcommitment metrics ware vsphere: CPU Ready MS Hyper-V: CPU Wait Time per Dispatch Storage IOPs / latency / throughput By LUN By disk group Controller Interconnect path utilization Controller cache hit metrics Capture all metrics as granularly as possible! 7

Overlay all data streams Understand / classify: Workload periods Workload sources Business time period Goal: metrics by time period Median & Percentile analysis Explain & filter statistical anomalies Statistics Min / Average / Max / Median Percentile 8

vcpu counts matter! Size for what you need today Too many vcpus = BAD (probably) Too few vcpus = BAD (usually) Workload / server specific Not done at just vcpucount vnuma configuration also matters Closely align with pnuma Adds efficiency by aligning with underlying hardware Performance difference improves with larger s 9

Example: 16 vcpu What s better? 2 vsocketx 8 vcore? 4 vsocketx 4 vcore? 8 vsocketx 2 vcore? Varies by workload, hardware Transactions / min 900000 800000 700000 600000 500000 400000 300000 200000 100000 vnuma SQL Server Scalability - 16 vcpus - HammerDB Test it for yourself! 0 8 16 64 256 Concurrent HammerDB Users 4socket x 4CPU 8socket x 2CPU 2socket x 8CPU SQL Server CPU consumption by DB Top waits Signal waits Scrape parallelism from execution plan @ bit.ly/1rts9ux Windows CPU usage per core SQL Server vs. background Host CPU utilization over 80% CPU queue waits high 10

Understand the workload parallelism, concurrent volume Determine averages, maximums, and percentiles Determine the appropriate profiling period < 40% utilization avg too many CPUs > 60% utilization avg too few CPUs Factor CPU waits inside SQL Server Vary according to your circumstances 11

SQL Server data must be in buffer pool More memory less I/O Less I/O = less waiting on shared storage & queues NO HOST MEMORY OVERCOMMITMENT Too much memory = lower consolidation ratio Balancing act SQL Server Page Life Expectancy Buffer Cache Hit Ratio High page fault count High recompile ratio RESOURCE_SEMAPHORE waits Memory grants pending Windows MB free Paging Host Memory consumption > 90% Memory ballooning / dynamic memory expansion 12

How much memory? Slow storage? More RAM! Fast storage? Less RAM? More RAM = less host-level consolidation More SQL Server licensing (possibly) Table / index compression 13

7/11/2015 Much less variable in nature Most shared resource Most critical Most complex Most problematic Slowest piece of the stack Random I/O disk patterns Many individual points of contention LUN Controller LUN Controller Disk Pool LUN LUN 14

Test raw performance SQLIO Batch bit.ly/1meas9w DiskSpd bit.ly/1ceqauw Collect metrics: I/Osper second (IOPs) Latency (ms) Throughput (MB/s) IOps 70000.00 60000.00 50000.00 40000.00 30000.00 20000.00 10000.00 0.00 IOps Per Operations per Thread 1 2 4 8 16 32 64 128 Thread Intensity Sequential Read Random Read Sequential Write Random Write 15

Determine your runtime stats & percentiles Determine load thresholds Review estimated requirements Change configuration Incremental changes, not huge ones Test and retest 16

Workloads & applications change DBs are added / removed Perform a right-sizing analysis as necessary Adjust the resources accordingly Recommended: Periodic review of sizing Quarterly for volatile environments One size does not fit all workloads Profile and record your workload performance characteristics Analyze the numbers Adjust configuration and validate Repeat as often as your workload changes 17

@kleegeek davidklee.net gplus.to/kleegeek linked.com/a/davidaklee Heraflux Technologies 35 18