Torsten Schuessler
Sapere aude! (aka tosc)
Sapere aude! (aka tosc)
Estimating the number of I/Os required for a system is crucial when sizing one or multiple existing databases on a new I/O subsystem - i.e. SAN considerations - to SQL Server. Often in mixed environments (OLTP/RDW) I must take the blended approach for managing the I/O for our SQL Server and the recommondations of the I/O subsystem manufacturer.
...
| OLTP (Online Transaction Processing) | RDW (Relational Data Warehousing) |
|---|---|
|
|
Arranging the reads and the writes according to the proper mix of these environments defines the performance profile for the database system. So I take a closer look for a good balance between reporting and online transactions - i.e. the read/write ratio. After reading a couple of I/O Best Practices, I conclude this for my mixed environment(s):
| Database System Type | Read Percentage | Write Percentage |
|---|---|---|
| OLTP | 60% | 40% |
| RDW | 80% | 20% |
| Mixed | 70% | 30% |
I strongly recommended to read Microsoft SQL Server on SAN Best Practices by Mike Ruthruff, Mike is a member of the SQL Server Customer Advisory Team (SQL CAT).
The Best Practices includes the following:
Best practices
Additional Material in Appendix Section
Open the Diagnostics Section and Performance subsection.
I create a data collection manually.
Create the data logs (Performance counter).
I change the Sample interval to 5 seconds and add the performance counters.
Select the LogicalDisk and SQLServer:Databases counters for all my SQL server instances.
Physical disk counters:
For a well-tuned I/O subsystem, the read and write latency should be within 5 to 10 ms. If the latency is 20 ms, the system might be experiencing an I/O issue. Latency exceeding 30 ms is in the unacceptable range. As all values are relative, the effect of measured latency depends on the type of operations taking place on your storage system and what they mean to to you - you are the DBA.
SQLServer:Databases ( Yes, I select them all :-(
Review the performance counters.
Data will collect into the %systemdrive%\PerfLogs\Admin\… directory in a .BLG binary format.
Start the data collection.
Viewing the report for the 1. data collection
And now what - viewing the reports in Server Manager is amazing but I want to see and calculate “real” numbers. So I use Relog.exe (this is built into Win 7, 2008, 2008 R2) to convert the .BLG files into a CSV file type. The Relog Syntax could be found here.
By using Excel, you could open the CSV file and convert the Disk Read Bytes/sec. Divide it by 1,024 to get your reads into MB/sec. Then convert the Disk Write Bytes /sec. Divide by 1,024 to get writes into MB/sec. Also divide AVG. Disk Bytes/Transfer by 1,024 to get I/O size in KB …
But there is another way, so go to CodePlex and use SQL Performance Analyzer - this tool gave you an overview of lots of counters that are collected by using perfmon.
Now I have a initial situation for, …
To be continued …
I wish you a nice day,
tosc
| Print article | This entry was posted by Torsten Schuessler on 2012-04-10 at 14:56:00 . Follow any responses to this post through RSS 2.0. |
administration backup «best practices» books bug ctp «cumulative update» datetime dmv ebook humor index indexoptimize integrity kbfix links loginproperty maintenance «ms sql server 2008» performance php profiler «reporting services» reviews «ross mistry» rtm «service pack» «service pack 3» «service packs» sharepoint sp_msforeachdb «sql 2012» «sql pass» «sql server» «sql server 2005» «sql server 2008 r2» «sql server 2012» «sql server builds» sqlcat sqlpass «sqlpass franken» ssms ssmstoolspack t-sql technet «technical note» tempdb tools upgrade whitepapers