Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Craig Allen
Microsoft Specialist
Dell EMC Corporation – Dallas, TX
Craig.allen@dell.com
Craig’s background Twitter - @msftDude
Blog - www.msftdude.com
Linkedin – www.linkedin.com/in/craigdallen
6 years at Dell EMC
Microsoft Specialist
5 years at Microsoft
Technology Strategist
15 years in Corporate IT
Architecture Design
4
4
Better Together
5
5
Microsoft / Dell EMC Alignment
20+ year formal relationship
16 Microsoft Competencies
• Full-stack testing
Not just interoperability
• Shared deployment risk with EMC
• Decreased deployment/testing
Benefits for IT -
cycles
• Assured performance • Faster time to deploy
• Verified building blocks for • Reduced deployment cost
scalability • Improved quality
8
8
SQL Data Warehouse Fast Track
4.0
9
9
www.microsoft.com/mtc
Envisioning Briefings
Strategy Briefings
Architecture Design
Proof of Concepts
Locations:
Atlanta, Boston, Chicago, Dallas, Detroit, Irvine,
Minneapolis, New York, Philadelphia, Reston,
Silicon Valley
10
10
Everything Microsoft at Dell EMC community
www.dellemc.com/everythingmicrosoft
Whitepapers
Case Studies
Videos
Blogs
Discussions
11
11
Dell EMC End-to-End Capabilities for Microsoft
Dell EMC Consulting Services
Strategize • Advise • Architect • Implement • Upgrade • Manage • Support
Content
Tiered/ Backup,
Virtual Business Management
Unified Recovery, Security
Infrastructure Continuity Information
Storage Archive
Governance
12
12
Free Microsoft training
• Microsoft Virtual Academy
www.microsoftvirtualacademy.com
13
SQL Server Challenges, Trends & Solutions
14
CHALLENGES
15
QUICK POLL: SQL VERSION
- SQL 2005/8/R2
- SQL 2012
- SQL 2014
- SQL 2016
16
QUICK POLL: VIRTUALIZATION
- VMWARE
- Hyper-V
- Physical
17
SQL Server
18
SQL SERVER BEST PRACTICES DOCS
http://bit.ly/EMC_msft_bestpractices http://www.emc.com/collateral/white-papers/h13163-
xtremio-microsoft-sql-server-wp.pdf
19
SQL SERVER ON DELL EMC XTREMIO
20
SQL SERVER ON DELL EMC UNITY
https://www.emc.com/collateral/wh
ite-papers/h15142-unity-ms-sql-
wp.pdf
21
VMWARE - SQL BEST PRACTICES
• http://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/solutions/sql-server-on-vmware-best-practices-guide.pdf
• https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/products/vsan/vmware-microsoft-sql-on-all-flash-virtual-san-6-2.pdf
22
THREE THINGS SQL SERVER CAN BE DOING:
Waiting for workload • no CPU, no wait states
Doing work • high CPU load
24
SQL BPE (BUFFER POOL EXTENSION)
L2
Buffer pool
Backing
Store
https://www.emc.com/collateral/white-
papers/h13376-sql-server-2014-perf-vnx-
The buffer pool extension size can be up to 32 times the value of appsync-wp.pdf
max_server_memory.
• SQL Server
• Windows Server (physical or virtual machine)
• Virtualization Host
• Storage Array
27
ANALYZE DISK ACTIVITY: IO STATS
All writes (inserts, updates, deletes) must be written to disk.
Queries always return data from the in-memory cache (the buffer pool) but
the cache may not contain the desired data and has to be read from disk.
SQL Server collects, aggregates and exposes information about every data
and log IO request.
28
sys.dm_io_virtual_file_stats
https://technet.microsoft.com/en-us/library/ms190326.aspx
Stall times are the total time tasks had to block waiting for transfer of data to and from disk.
The stalls indicate which IO subsytem (which disk) is busy and may even be saturated.
29
COMMON DISK AND IO RELATED WAIT TYPES
sys.dm_os_wait_stats (Transact-SQL)
https://msdn.microsoft.com/en-us/library/ms179984.aspx
PAGEIOLATCH_*
This is the quintessential IO, data read from disk and write to disk wait type.
A task blocked on these wait type is waiting for data to be transferred between the disk and the
in-memory data cache (the buffer pool).
A system that has high aggregate PAGEIOLATCH_* wait types is very likely memory starved and is
spending much time reading data from the disk into the buffer pool.
WRITELOG
This wait type occurs when a task is issuing a COMMIT and it waits for the t-log to write the
transaction commit log record to disk. High average wait times on this wait type indicate that the
disk is writing the t-log slowly and this slows down every transaction.
IO_COMPLETION
This wait type occurs for tasks that are waiting for something else other thanordinary data IO.
(loading an assembly DLL, reading and writing TEMPDB sort files, some special DBCC data reading
operations).
ASYNC_IO_COMPLETION
This wait type is mostly associated with backup, restore, database and database file operation.
30
WINDOWS SERVER
PERFORMANCE INDICATORS
http://www.sqlskills.com/blogs/paul/page-life-expectancy-isnt-what-you-
think/
– Buffer Cache hit ratio
Higher hit ratio the better
However,
• https://www.simple-talk.com/sql/database-administration/great-sql-
server-debates-buffer-cache-hit-ratio/
31
WINDOWS SERVER
PERFORMANCE INDICATORS
– Page reads/sec
– Log Flushes/sec
– Page writes/sec
– Checkpoint pages/sec
– Log write waits
– Physical Disk Object
• The typical focus is not on throughput, but on queue length, indicating
IO operations that take a long time.
32
DISK IO CHARACTERISTICS
33
Storage best practices
34
Spinning Disks - Read/Write ratios matter
Drive type IOPS per drive
SAS 15K 180
SAS 10K 120
NL-SAS / SATA 7.2K 80
35
NTFS Disk Allocation Unit (DAU)
• Format NTFS with a DAU of
– 64KB
– Default is 4KB
Destructive format to change DAU
36
Best Practices
37
Considerations for AutoGrow / AutoShrink
• KB-315512
https://support.microsoft.com/en-us/kb/315512
38
FileGroups
39
Oh…. And TEMPDB
TEMPDB is the “public pool” of SQL Server
• Temporary Objects
• User Objects – triggers, queries, temporary tables, variables, etc
• Internal Objects – sorts, triggers, work tables, XML variables or other
LOB data type variables
• Version stores – Snapshot isolation, After triggers, MARS, Online index
rebuilds
• Other objects that use TEMPDB
• Service Broker, event notification, database mail, index creations, user-
defined functions
40
IOPS (Top 10 Disks)
AUS-DB-012 - H: AUS-DB-012 - F: AUS-DB-012 - G:
1,000
AUS-DB-012 - E: AUS-DB-012 - HarddiskVolume6 AUS-DB-012 - D:
AUS-DB-012 - C: AUS-DB-012 - HarddiskVolume1
Read IOPs
500
0
16:15 21:03 1:51 6:39 11:27 16:15 21:03 1:51 6:39 11:27
20
0
16:15 21:03 1:51 6:39 11:27 16:15 21:03 1:51 6:39 11:27
TempDB
41
TempDB
42
OPTIMIZING TEMPDB
43
TEMPDB HOT??
• Move it
– Put on dedicated LUN with dedicated disks
44
PHYSICAL SQL Instance
VMKernel admittance (
VMKernel Disk.SchedNumReqOutstanding)
Per path queue depth
Adapter queue depth
47
STORAGE – ZONING
Dell
• MPIO EMC PowerPath
– Multi-Path IO
48
FURTHER READING
http://rusanu.com/2014/02/24/how-to-analyse-sql-server-performance/
49
SQL SERVER WITH ALL FLASH ARRAYS
50
STORAGE – RAID
TRADITIONAL STORAGE XTREMIO
Performance
51
IT’S NOT JUST ABOUT SPEED…
52
Dell EMC XtremIO
53
CONSISTENT SCALE-OUT PERFORMANCE
W/ INLINE DATA SERVICES XtremIO
Virtual Copies
ACTIVE-ACTIVE
SCALE-OUT
Fully Scalable Always On
Thin
Provisioning
Scale-out to architecture
As many copies as needed
Inline Data
Compression
Inline Data
Full Performance Deduplication
Data Protection
Inline Data
Predictable & consistent Encryption
performance
54
SQL SERVER DATA REDUCTION ON XTREMIO
THIN PROVISIONING, DEDUPLICATION, & COMPRESSION
Thin
• Global thin provisioning provide a maximum benefit
Provisioning
Dedupe • Copies & replicas are 100% space efficient upon creation
55
LINEAR PERFORMANCE AND DATA REDUCTION
• Performance
– Sub-millisecond latency
– Scale up or out on demand
• Automatic compression
56
ALWAYS ON AVAILABILITY GROUP
Asynchronous-commit mode
The primary replica commits transactions without waiting for acknowledgement that
an asynchronous-commit secondary replica has hardened the log
Synchronous-commit mode
The primary replica waits for a synchronous-commit secondary replica to
acknowledge that it has finished hardening the log. Sync mode requires nodes to be
local to each other (<5ms).
57
ALWAYSON AVAILABILITY GROUPS
• Traditional Challenges
– Deployment time
• Initial deployment requires lengthy backup / restore
– Storage cost
• Storage cost multiplies with the number of replicas
– Time to re-sync
• Slow re-sync after suspending a secondary replica
58
ENCRYPTION
59
• SQL 2012 http://download.microsoft.com/download/7/3/C/73CAD4E0-D0B5-4BE5-AB49-D5B886A5AE00/SQL_Server_2012_Licensing_Reference_Guide.pdf
60
© Copyright 2016 EMC Corporation. All rights reserved. 61