|
 |
|
SQL Server Tips by Burleson |
Database Workload Analysis
SQL Server, unlike SQL Server, is a shared environment in which many
databases compete for memory and background process (lazy writer,
etc.) attention. This being the case, it is smart to identify if any
databases are using the lion’s share of resources. Pinpointing these
workload hogs can help direct the DBA to the root cause of any
sluggishness exhibited by SQL Server.
For databases, the process begins by a review of overall resource
consumption and activity. In this process, the DBA is looking for
any databases that seem to stand out from the others in terms of
overall usage and dynamics. On the resource usage front, a good
query to use for this process is the dbusage_overview.sql query:
* dbusage_overview.sql
-- Script is available in the Online Code Depot
The query does a nice job of showing which databases are currently
responsible for the most resource usage.
After performing the above query, the DBA can then try to get a
handle on the types of activities that have gone on in each database
by issuing the dbactivity_overview query:
* dbactivity_overview
-- Script is available in the Online Code Depot
This query helps the DBA understand which databases are seeing
transaction log extends, and which ones are experiencing the most
transactions, etc. Once armed with usage and activity information,
applications and databases responsible for the primary workload on
SQL Server become more apparent.
The above book excerpt is from:
High-Performance SQL Server DBA
Tuning & Optimization Secrets
ISBN:
0-9761573-6-5
Robin Schumacher
http://www.rampant-books.com/book_2005_2_sql_server_dba.htm |