(DBA 211) - Berry DBA 211 - 2014
(DBA 211) - Berry DBA 211 - 2014
Subsystem Performance
Glenn Berry, Principal Consultant o DBA-211
SQLskills.com
Please silence
cell phones
Session Evaluations
Free SQL Server and BI Web Events Free 1-day Training Events Regional Event
1. Latency (ms)
2. Input/output operations per second (IOPS)
3. Sequential throughput (MB/sec or GB/sec)
• These three measurements are all related, so you can’t just look at one of them in
isolation, without knowing the others
• Storage vendors tend to show their best-case numbers in isolation
Latency
Latency
• The time it takes for an I/O to complete
• Sometimes called response time or service time
Measurement starts when the OS sends a request the drive or controller
and ends when the drive finishes processing the request
• Reads are complete when the operating system receives the data
• Writes are complete when the drive informs the OS is has received the data
• The data may still be in a DRAM cache on the drive or controller
• Write-back caching vs. write-through caching
• Write-back caching is faster, but requires a battery backup for the cache
Input/Output Operations per Second
• SQLIO does not require or use SQL Server for its testing
• It simply allows you to stress your I/O system in a fairly controlled manner
• SQLIO has many configuration options
• Can be time consuming and resource consuming to run full suite of tests
• You can use an old style command prompt or PowerShell to run your tests
• Reference:
• SQLIO, PowerShell and storage performance: measuring IOPs, throughput and latency for both
local disks and SMB file shares
• http://bit.ly/1n7jm0M
Using DiskSpd To Test Your Storage
Windows 8.1 SMB 3.02 SMB 3.0 SMB 2.1 SMB 2.0 SMB 1.0
WS 2012 R2
Windows 8.0 SMB 3.0 SMB 3.0 SMB 2.1 SMB 2.0 SMB 1.0
WS 2012
Windows 7 SMB 2.1 SMB 2.1 SMB 2.1 SMB 2.0 SMB 1.0
WS 2008 R2
Windows Vista SMB 2.0 SMB 2.0 SMB 2.0 SMB 2.0 SMB 1.0
WS 2008
Previous Versions SMB 1.0 SMB 1.0 SMB 1.0 SMB 1.0 SMB 1.0
Considering Your Workload for Storage
• Use a RAID calculator to ensure you have more than enough space
• Keep in mind the performance advantages of “short-stroking”
• Flash-based storage also benefits from ample free space
• After you have enough space, concentrate on performance
• Don’t negotiate with yourself! Ask for flash-based storage, ask for RAID 10
• Consider your workload as you make budget-driven compromises
• Suggested I/O performance goals
• 5,000-10,000 or more IOPS on all LUNs
• 1 GB/sec or more of sequential throughput on all LUNs
Magnetic Storage vs. Flash-Based Storage