Monitoring and Testing I/O

Slides:



Advertisements
Similar presentations
Copyright © 2006 Quest Software SQL 2005 Disk I/O Performance By Bryan Oliver SQL Server Domain Expert.
Advertisements

This picture has been released into the public domain by its author, ChiemseeMan at the German Wikipedia projectpublic domainChiemseeManGerman Wikipedia.
DAT 342 Advanced SQL Server Performance and Tuning Bren Newman Program Manager SQL Server Development Microsoft Corporation.
Measuring I/O Channel Performance on Windows and UNIX Systems Dr. Bill Pierce TeraCloud Corp
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Circling Back To Littles Law Now that we have tools to gather information.
Virtual Memory (Chapter 4.3)
RAC I/O Lab. 1. Run Database Load Script Your instructor will provide you with a directory containing database schema creation and data loading scripts.
Allocation Methods - Contiguous
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Chapter 14 Chapter 14: Server Monitoring and Optimization.
Chapter 11 Monitoring and Analyzing the Web Environment.
11 MONITORING MICROSOFT WINDOWS SERVER 2003 Chapter 3.
Microsoft SQL Server Administration for SAP SQL Server Architecture.
OS and Hardware Tuning. Tuning Considerations Hardware  Storage subsystem Configuring the disk array Using the controller cache  Components upgrades.
Iometer: Why, What, Where, and How? Presented By Sohail Sarwar Supervisor Dr. Raihan Ur Rasool 1.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
DISKS IS421. DISK  A disk consists of Read/write head, and arm  A platter is divided into Tracks and sector  The R/W heads can R/W at the same time.
Database Storage Considerations Adam Backman White Star Software DB-05:
Chapter 2: Designing Physical Storage MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
Key Perf considerations & bottlenecks Windows Azure VM characteristics Monitoring TroubleshootingBest practices.
11 SYSTEM PERFORMANCE IN WINDOWS XP Chapter 12. Chapter 12: System Performance in Windows XP2 SYSTEM PERFORMANCE IN WINDOWS XP  Optimize Microsoft Windows.
Profiling Grid Data Transfer Protocols and Servers George Kola, Tevfik Kosar and Miron Livny University of Wisconsin-Madison USA.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
© Wiley Inc All Rights Reserved. MCSE: Windows Server 2003 Active Directory Planning, Implementation, and Maintenance Study Guide, Second Edition.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Powered by 3PILLAR LABS HAILSTORM 4.0 TM PERFORMANCE REPORT.
Oracle Administration and Monitoring Tools for Windows Administering and Monitoring Oracle with Windows Tools.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
© Dennis Shasha, Alberto Lerner, Philippe Bonnet 2004 DBMS Performance Monitoring.
Block1 Wrapping Your Nugget Around Distributed Processing.
Monitoring Windows Server 2012
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
DBI313. MetricOLTPDWLog Read/Write mixMostly reads, smaller # of rows at a time Scan intensive, large portions of data at a time, bulk loading Mostly.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
SQLRX – SQL Server Administration – Tips From the Trenches SQL Server Administration – Tips From the Trenches Troubleshooting Reports of Sudden Slowdowns.
11 MANAGING PERFORMANCE Chapter 16. Chapter 16: MANAGING PERFORMANCE2 OVERVIEW  Optimize memory, disk, and CPU performance  Monitor system performance.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
T E S T I N G O P T I M I Z E D 1 Optimus Confidential Performance Testing with LoadRunner Case Study.
1EMC CONFIDENTIAL—INTERNAL USE ONLY FAST VP and Exchange Server 2010 Don Turner Consultant Systems Integration Engineer Microsoft TPM.
Oracle 10g Automatic Storage Management Overview of ASM as a Storage Option for Oracle 10g.
Windows Server 2003 系統效能監視 林寶森
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Total CapacityTotal Request RateTotal Bandwidth (Geo-redundant) Total Bandwidth (Locally Redundant) 500 TB20,000 / sec10 gb/sec Ingress 20 gb/sec.
Presented by Vishy Grandhi.  Lesson 1: AX Overview  Lesson 2: Role based security  Lesson 3: Monitoring  Troubleshooting.
Page 1 Mass Storage 성능 분석 강사 : 이 경근 대리 HPCS/SDO/MC.
Maximizing Performance – Why is the disk subsystem crucial to console performance and what’s the best disk configuration. Extending Performance – How.
Monitoring Servers Lesson 11. Skills Matrix Technology SkillObjective DomainObjective # Using the Reliability and Performance Console Monitor servers.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Indexing strategies and good physical designs for performance tuning Kenneth Ureña /SpanishPASSVC.
Dr Greg Low CEO and Principal Mentor SQL Down Under.
Monitoring Windows Server 2012
Query Performance Tuning: Start to Finish
Monitoring and Testing the Network
MONITORING MICROSOFT WINDOWS SERVER 2003
Installation and database instance essentials
Oracle Database Monitoring and beyond
Proving Hardware Bottlenecks &
Persistence: hard disk drive
Troubleshooting Techniques(*)
RAC Performance Lab.
Performance Evaluation
CS222/CS122C: Principles of Data Management UCI, Fall 2018 Notes #03 Row/Column Stores, Heap Files, Buffer Manager, Catalogs Instructor: Chen Li.
Presentation transcript:

Monitoring and Testing I/O Using Perfmon, Oracle tools and IOMeter for monitoring and load testing the I/O Subsystem

Objectives At the end of this module the student will understand the following tasks and concepts. Monitoring the I/O Subsystem using Perfmon Monitoring the I/O Subsystem using Oracle Tools Load Testing the I/O Subsystem using TTCP

Oracle and I/O I/O performance is crucial to Oracle Performance Data buffers are sensitive to read I/O latency Log buffers are sensitive to write I/O latency Any slowdown in I/O performance can cause a significant performance loss for Oracle. Although Oracle uses Buffer Cache very effectively, all data must at some point be read into memory, andall transactions must be written out to the redo log files..

Oracle I/O Problems Performance Degradation Index lookup 10 I/Os 10 x 6 ms = 60 ms (not bad) 10 x 100 ms = 1 sec (noticeable) Table Scan 30,000 I/Os 30,000 x 6 ms = 90 sec (not bad for a Table Scan) 30,000 x 100 ms = 3,000 sec = 50 minutes You are getting phone calls and emails

Monitoring I/O Performance Perfmon General Tips Set the sample rate up 1 sec is too fast Not accurate on all counters Not enough time to see all the counters Way to fast for saving the data Heizenburg Uncertainty Principle Use both graph and report as appropriate Save data if possible

Monitoring I/O Performance Perfmon Logical Disk Counters Lists the Physical Disks by Drive Letter Good for monitoring file I/O Physical Disk Counters Lists the Physical Disks by Physical Disk Good for monitoring the LUNs or Volumes

Monitoring I/O Performance Perfmon Latencies IOPS (I/Os Per Second) Throughput I/O sizes

Monitoring I/O Performance Perfmon Latencies Avg. Disk sec/Read Provides Read Latency Statistics Avg. Disk sec/Write Provides Write Latency Statistics

Monitoring I/O Performance Latency

Monitoring I/O Performance Perfmon IOPS Disk Reads/sec Disk Transfers/sec Useful for total volume IOPS (remember RAID overhead) Disk Writes/sec

Monitoring I/O Performance IOPS

Monitoring I/O Performance Perfmon Throughput Disk Bytes/sec Total Throughput Disk Read Bytes/sec Disk Write Bytes/sec

Monitoring I/O Performance Throughput

Monitoring I/O Performance Perfmon I/O sizes Avg. Disk Bytes/Read Avg. Disk Bytes/Write These counters provide information that allows you to get a little bit of an idea of what Oracle is doing. When Oracle is doing index lookups or random reads and writes the standard block size of 8 KB will be used and you will see an 8 KB Avg. Disk Bytes/Read and an 8 KB Avg. Disk Bytes/Write. When Oracle is doing table scans the block size will be much larger. The maximum size is determined by the maximum I/O size allowable by the OS. In addition, the Oracle log writes are variable based on how much data is in the log buffer when the log writer thread is ready to write it out.

Monitoring I/O Performance I/O Sizes

Monitoring I/O Performance Perfmon Miscellaneous Current Disk Queue Length The current disk queue length could give you an indication that there are performance problems with the I/O subsystem. With SAN storage the disk queue length should not be over 1 or 2. If this number is very high you should investigate further. This is not as good of an indication of a slowdown as the latency counters.

Monitoring I/O Performance Oracle Tools OEM Performance Page Instance Disk I/O Instance Throughput

Monitoring I/O Performance Oracle Tools Oracle Counters for Windows Performance Monitor Add Oracle Data Files counter physreads/sec Physwrites/se Choose data files to monitor Shows I/O for database files

Monitoring I/O Performance Oracle Tools STATSPACK Reports Tablespace IO Stats Data File IO Stats ------------------------------------------------------------- Tablespace IO Stats for DB: DSSA Instance: dssa4 Snaps: 1 -2 ->ordered by IOs (Reads + Writes) desc Tablespace ------------------------------ Av Av Av Av Buffer Av Buf Reads Reads/s Rd(ms) Blks/Rd Writes Writes/s Waits Wt(ms) -------------- ------- ------ ------- ------------ -------- ---------- ------ UNDOTBS4 0 0 0.0 3,587 2 1 0.0 USERS 96 0 0.6 3.4 1,961 1 0 0.0 TEMP 952 0 1.7 15.0 952 0 0 0.0 TOOLS 0 0 0.0 1,080 1 0 0.0 SYSTEM 30 0 6.0 1.0 453 0 0 0.0 File IO Stats for DB: DSSA Instance: dssa4 Snaps: 1 -2 ->ordered by Tablespace, File Tablespace Filename ------------------------ ---------------------------------------------------- SYSTEM /u11/dssa/system01.dbf 30 0 6.0 1.0 453 0 0 TEMP /u11/dssa/temp01.dbf 952 0 1.7 15.0 952 0 0 TOOLS /u11/dssa/tools01.dbf 0 0 1,080 1 0 UNDOTBS4 /u11/dssa/undotbs04.dbf 0 0 3,587 2 1 0.0 USERS /u11/dssa/users01.dbf 96 0 0.6 3.4 1,961 1 0

Load Testing I/O Used to determine I/O problems in a controlled and scientific manner Used to identify the upper limits of the storage subsystem Used to prove or disprove hypothesis or theories

Load Testing I/O IOMeter IOMeter is a public domain utility Available at http://www.sourceforge.net Generates I/O based on your specifications Provides accurate results Is repeatable

Load Testing I/O IOMeter Made up of two major components GUI Used for configuration and results Dynamo Used to generate the load

Load Testing I/O IOMeter Configuring IOMeter Disk Targets Network Targets Access Specifications Results Display Test Setup

Load Testing I/O Disk Targets Maximum Disk Size For random I/Os this must be sufficiently large # of Outstanding I/Os Defines concurrency of I/Os If set to one there will only be one I/O issued at a time and IOPS = 1 / latency The maximum disk size should be sufficiently large to cause seeking on the disk drives. In some cases, this must be very large. A maximum disk size that is too small will skew your results. The number of outstanding I/Os must be sufficiently high to simulate Oracle asynchronous I/O. If you leave it at the default of 1, only one I/O will be outstanding at time, thus resulting in no queueing.

Load Testing I/O Network Targets Used for network I/O testing

Load Testing I/O Access Specifications Specifies the type of I/O Block Size Read/Write ratio Sequential/Random Ratio Create new spec for Oracle

Load Testing I/O Test Setup Used to set up automated tests Run time Ramp up Number of workers Etc.

Load Testing I/O Results Display View the performance during the test IOPS Throughput Latency CPU Utilization

Review What type of I/O problem causes the biggest problem with Oracle Data Files ? Name some Perfmon counters to monitor for I/O? What counter does the Oracle Counters for Windows Performance Monitor add to Perfmon that measures Oracle I/O? What are the two components of IOMeter?

Summary Monitoring the I/O Subsystem using Perfmon Monitoring the I/O Subsystem using Oracle Tools Load Testing the I/O Subsystem using TTCP