Professional Documents
Culture Documents
Agenda
Tuning Methodology Performance Analysis
What causes poor performance How to identify the causes How to fix the causes
Performance Analysis Tools Oracle Best Practices SQL Server Best Practices NetApp Controller Best Practices Examples Protocol Comparisons
2
Introduction
Tuning Methodology
Check for Known Hardware and Software Problems Consider the Whole System Measure and Reconfigure by Levels Change One Thing at a Time Put Tracking and Fallback Procedures in Place Before You Start Do Not Tune Just for the Sake of Tuning Remember the Law of Diminishing Returns
HP-UX NFS Performance with Oracle Database 10g Using NetApp Storage TR3557
Network (FC/Ethernet)
Storage CPU/Domain
SAS/FC Disks
SATA
20-260
20-80
Symptoms: High latency or inability to add more load on a particular volume Diagnosis: Use statit to monitor disk utilization Disk bottleneck - If disk utilization is >70% *and* high data transfer rates or transfers per disk
disk ut% xfers ureads--chain-usecs writes--chain-usecs /vol0/plex0/rg0: 0b.17 99 297.22 297.22 1.00 20034 0.00 .... 0b.18 99 292.55 292.55 1.00 19960 0.00 .... 0b.19 99 294.75 294.75 1.00 20180 0.00 .... 0b.20 99 294.15 294.15 1.00 19792 0.00 .... 0b.21 99 294.76 294.76 1.00 19632 0.00 .... 0b.22 99 293.70 293.70 1.00 20341 0.00 .... . . . . . .
Solutions:
Use flexible volumes with large aggregates Add more drives to the aggregate Redistribute load on to lightly loaded disks FlashCache
10
Bottleneck: Disk Loop has throughput limitations Each loop can support up to 2Gbit~180MB/s, 4Gbit = ~360MB/s Symptoms: High response times to requests on one or more volumes Inability to add more load to one or more volumes RAID reconstruction / scrub
11
ureads--chain-usecs writes--chain-usecs
0.02 66.90 67.05 66.98 67.04 10.00 31.54 31.49 31.54 31.48 5250 1774 1552 1472 1453 0.01 0.01 0.01 0.01 0.01 10.00 10.00 10.00 10.00 10.00 0 0 0 0 0
12
Solutions: Add more Disk loops Add Dual-path on single controller or Multipath HA on CFO(Requires ONTAP 7.1.1 or greater) Redistribute disks in a volume/raid group across loops
13
on 2P,
14
15
92% Utilization
16
17
Symptoms: Poor responsiveness to clients on a given network and inability to add more load to filer Diagnosis: Use statit or ifstat to monitor traffic on each port Look for the port limits, Ex. Gigabit Ethernet Interface
iface e0 e9a e9b e11a Network Interface Statistics (per second) side bytes packets multicasts errors collisions pkt drops recv 595.95 7.65 1.67 0.00 0.00 xmit 679.24 6.46 0.00 0.00 0.00 recv 473754.48 3536.66 2.24 0.00 0.00 xmit 121823577.22 40645.67 0.00 0.00 0.00 recv 471987.25 3523.48 2.24 0.00 0.00 xmit 60596317.35 40493.83 0.00 0.00 0.00 recv 477358.49 3563.57 2.24 0.00 0.00 xmit 61286194.79 40954.82 0.00 0.00 0.00
18
19
20
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0
0 0 0 0
Typically single thread of execution from the client (ex. cp and dd) Solutions: Application Tuning - More threads - Increase transfer size Tune client or target throttles in case of FCP
21
NVRAM
Provides data integrity in case of controller failure Only logs transactions before committing to disk NVRAM is not a write cache
22
Key Takeaways
Performance Monitoring
Adhere to performance monitoring methodology
Focus on latency monitoring Recognize performance trends
Performance Analysis
Identify common performance bottlenecks
Disk bottleneck FC-AL Loop bottleneck CPU/domain bottleneck Networking and target card limits Client side thread parallelism
DBTuna
24
Sizing Tools
Database Sizer
Statspak / AWR SQL Performance Analyzer Perfstat
Unified Sizer
25
Disk loops
IMT
Network Adapters FC Adapters
26
Before PAM-II
Disk I/O for 30 Disk SATA Aggregate
31
The First 30 minutes of operation PAM-II is delivering I/O the equivalent of: 1 Shelf 15K FC or 5 Shelves of SATA
32
Shelf setup is exactly the same as with SATA or SAS Add-on: DS4243-SL02-24A-QS-R5 Configured: DS4243-SL02-24A-R5-C Individual drives may be parts ordered (X441A-R5)
Formerly X442A-R5
Platforms:
Supported:
FAS/V3160, 3170, 6000 series, 3240, 3270, and 6200 series FAS/V2020, 2040, 2050, 3140, 3210, and all 3000 series
Not supported:
34 34
Performance - Sequential
Sequential I/O throughput per drive
120
100
60
40
20
HP-UX NFS Performance with Oracle Database 10g Using NetApp Storage TR3557
37
HP-UX NFS Performance with Oracle Database 10g Using NetApp Storage TR3557
HP-UX Server Tuning http://docs.hp.com/en/5992-4222ENW/5992-4222ENW.pdf Tune-N-Tools http://software.hp.com/portal/swdepot/displayProductInfo.do?prod uctNumber=Tune-N-Tools HP-UX TCP/IP Performance White Paper http://docs.hp.com/en/11890/perf-whitepaper-tcpip-v1_1.pdf
38
HP-UX NFS Performance with Oracle Database 10g Using NetApp Storage TR3557
39
40
41
42
43
44
Summary
NetApp Controller Host Network Database Settings
45