This section includes the following topics:

About the SmarTune tab

The SmarTune process detects performance deterioration by regularly analyzing SQL Server performance data, and identifying less than optimal behavior.

You can change the frequency of how often the processes are run and configure the process parameters in AdminPoint. See the Precise Administration Guide for details.

SmarTune displays performance findings that may indicate potential problems in the database. The list of problems includes the following:

  • list of statements that require tuning
  • list of objects displaying heavy activity or possessing an inefficient structure
  • instance events

This is the tab to begin with, if you want to start performance tuning on a database. In the SmarTune tab, you can examine the SmarTune findings, read expert knowledge regarding the area of deterioration, and obtain comprehensive advice on how to solve a specific problem and optimize performance. The Findings area lists the problematic statements, objects, and instance events that are causing poor performance. Relevant information regarding each problem listed in the Findings area is displayed in the right pane.

As part of the guidance provided, SmarTune includes Quick Links to launch to other tabs in context, so that you can easily continue your investigation. For example, you may be directed to the Activity tab to view the performance of an offending SQL statement. From there, you can launch to the SQL tab to examine the statement's execution plan and view a recommendation on a new index.

About accessing the SmarTune tab

You can access the SmarTune tab from the following locations:

  • From the Dashboard.
    Select the SmarTune icon in the Findings table, for a given instance.
    The SmarTune tab opens with the selected instance, displaying the findings for this instance, in the context of the selected instance and timeframe.
  • From the Activity tab.
    Click SmarTune on the Tab Selection bar.
    The SmarTune tab opens with the selected instance, displaying the findings for this instance, in the context of the selected instance and timeframe.
  • From the Current, Objects, or Maintenance tabs.
    Click SmarTune on the Tab Selection bar.
    The SmarTune tab opens with the selected instance, displaying the findings for this instance, in the context of the selected instance.

How the Precise for SQL Server SmarTune tab is structured

The SmarTune tab is divided into two areas—the Findings area and the Details area. The Findings area displays all findings returned by SmarTune for the selected time frame. The Details area provides detailed information regarding the selected finding.

About the Findings area in the SmarTune tab

The Findings area lists all the statements, collapsed statements, tables or instance events that were detected for a specific instance, within the selected time frame. All problems are ranked by severity. An Ignore icon, lets you decide if you want to remove a problem from the Findings table. This does not mean that SmarTune will stop checking these findings, rather that they will not be displayed in the Findings table. Clicking on an item in the Findings list refreshes the information displayed in the Details area.

The following table shows the information displayed in the Instance table.

Table 1 Findings table

ColumnDescription
Severity IconIndicates how severe the detected problem really is. Calculates the severity of the finding in relation to the entire instance.
Type

Indicates the type of finding. Can be one of the following:

  • Heavy statement
  • Heavily accessed object
  • Heavy collapsed statement
  • Instance event
Object

Depending on the type of finding, displays one of the following:

  • For a heavy statement: the statement ID
  • For a heavily accessed object: the table name
  • For a heavy collapsed statement: the collapsed statement ID
  • For an instance event: empty field
In MS-SQL

Depending on the type of finding, displays one of the following:

  • For a statement: total time spent In MS-SQL, during the selected time period.
  • For an object: total In MS-SQL contribution to the table, during the selected time period.
  • For a collapsed statement: total In MS-SQL time of all statements that are part of the collapsed statement.
  • For an instance event: the In MS-SQL time related to the event, when available.
DatabaseDisplays the name of the statement or object affected by the finding. The field is left empty in the case of an instance event finding.


User

Depending upon the type of finding, displays one of the following:

  • For a statement: parsing user
  • For an object: owner
  • For an instance event: empty field
Last DetectedDisplays the last time the finding was found.
Ignore IconClick to ignore a finding. The finding is added to an Ignore list and is no longer displayed in the Findings table. You can always redisplay a finding by turning off the Ignore list or by specifying which findings you want to restore in the Ignore list.

The following table shows the icons that signify the level of severity of a finding in the Findings table.

Table 2 About severity icons

Severity IconLevel of Severity
Low
Medium
High

About the Details area in the SmarTune tab

The Details area displays comprehensive information on the problem selected in the Findings area. A set of tabs lets you page through different views to gain additional information on the selected finding. The types of tabs, and the information displayed in them, changes according to the type of finding you chose to investigate in the Findings area.

The following table shows the information displayed for problematic statements.

Table 3 Information displayed in the Details area when a statement is selected

TabInformation Displayed
Highlights

Offers a quick overview of the major finding details. The Text area displays the actual text of the statement.

The Statement Findings area presents an overview of all the findings detected within a time frame, for the selected statement.

  • Severity icon. Indicates how serious a problem is, in relation to the statement's activity.
  • Launch icon. Lets you launch, in context, to a different tab to continue your analysis. The tab you launch to depends upon SmarTune's recommendations.
  • Type. Shows a description of the finding.
  • Table Name. Displays the name of the table the finding is related to.
  • Potential Gain. Calculates the possible gain obtained if the suggested change is implemented.
  • Last Detected. Last time a problem was found for the specific finding.

The Details for Finding area points you in the direction of additional tuning and findings-related data. They direct you to other tabs that can supply additional information regarding the specific finding, or to additional views within the SmarTune tab, so that you can view additional information about the specific finding.

ObjectsDisplays the list of objects appearing in a statement, that are part of the performance finding. For example, Objects area can indicate if a table or index is part of the heavy operators finding, or if a table has missing indexes or statistics.
Over Time

Displays the following overtime graphs:

  • Statement In MS-SQL. Displays the amount of time a statement spent in MS-SQL, during the selected time period.
  • Statement Scalability. Displays the number of times a statement was executed, over the selected time period.
  • Avg. Duration vs. Schema Changes. Displays the types of changes made to the schema, during the selected time period, such as whether an entity was dropped, created, or changed. This enables you to analyze how a schema change affected resource consumption and system performance.

The following table shows the information displayed for problematic objects.

Table 4 Information displayed in the Details area when an object is selected

TabInformation Displayed
Highlights

Offers a quick overview of the major finding details, such as the table's details, and a description of the findings, including an estimate of the potential improvement to performance if you choose to make the suggested change.

  • Severity icon. Indicates how serious a problem is, in relation to the statement's activity.
  • Launch icon. Lets you launch, in context, to a different tab to continue your analysis. The tab you launch to depends upon SmarTune's recommendations.
  • Type. Shows a description of the finding.
  • Potential Gain. Calculates the possible gain obtained if the suggested change is implemented.
  • Last Detected. Last time a problem was found for the specific finding.

The Details for Finding area points you in the direction of additional tuning and findings-related data. They direct you to other tabs that can supply additional information regarding the specific finding, or to additional views within the SmarTune tab, so that you can view additional information about the specific finding.

StatementsDisplays a list of statements that accessed a table, during the selected time period.
Over Time

Displays the following overtime graphs:

  • Storage. Displays an object's space usage, during the selected time period.
  • Table In MS-SQL. Displays the MS-SQL contribution of the table, during the selected time period.

The following table shows the information displayed for problematic objects.

Table 5 Information displayed in the Details area when a collapsed statement is selected

TabInformation Displayed
Highlights

The Text area displays the actual text of the collapsed statement. The Collapsed Statement Findings area presents an overview of all the findings detected within a time frame, for the selected collapsed statement.

  • Severity icon. Indicates how serious a problem is, in relation to the collapsed statement's activity.
  • Launch icon. Lets you launch, in context, to a different tab to continue your analysis. The tab you launch to depends upon SmarTune's recommendations.
  • Type. Shows a description of the finding.
  • Table Name. Displays the name of the table the finding is related to.
  • Potential Gain. Calculates the possible gain obtained if the suggested change is implemented.
  • Last Detected. Last time a problem was found for the specific finding.

The Details for Finding area points you in the direction of additional tuning and findings-related data. They direct you to other tabs that can supply additional information regarding the specific finding, or to additional views within the SmarTune tab, so that you can view additional information about the specific finding.

StatementsDisplays the list of statements belonging to the same collapsed statement, that were executed during the selected time period.
Over Time

Displays the following overtime graphs:

  • Statement In MS-SQL. Displays the amount of time a statement spent in MS-SQL, during the selected time period.
  • Statement Scalability. Displays the number of times a statement was executed, over the selected time period.

The following table shows the information displayed on findings, at the instance level. Findings at the instance level check general behavior and statistics counters and give a general indication of the problems influencing instance performance.

Table 6 Information displayed in the Details area when an instance is selected

TabInformation Displayed
Highlights

Offers a quick overview of the major finding details. The text area describes the problem, displays thresholds and provides links to other tabs that can supply additional information regarding the specific finding, or to additional views within the SmarTune tab, so that you can view additional information about the specific finding.

The graph presents information that is relevant to the specific finding or instance event.

Activities

For: Locked Instance

  • Table displaying information on top 10 blocked statements
  • Instance activity overtime graph

For: Tempdb bottleneck

  • Table displaying information on top 10 problematic statements
  • Tempdb files I/O requests pie chart
  • Tempdb I/O requests vs. other files I/O requests
  • Tempdb storage
Statistics

For: The transaction log bottleneck

  • Table displaying information on top 10 statements suffering from transaction log bottlenecks. Click on a database in the table to launch it, in context, in the Statistics tab.
  • Table displaying top 10 statements waiting for log.

For: Buffer cache is too small

  • Page life expectancy graph. Indicates the average number of seconds a page stays in cache. If this value falls below the threshold set in AdminPoint, this can indicate that SQL Server may need more memory to boost performance.
  • Lazy writes/sec graph. Tracks how many times a second that the Lazy Writer process moves dirty pages from the buffer to disk to free up buffer space and make them available to user processes. Should be close to zero.
  • Page faults/sec graph. Indicates the overall rate at which the processor handles both hard and soft page faults.

For Tempdb bottleneck, three graphs showing tempdb statistics:

  • Temp tables creation rate
  • Temp tables for destruction
  • Active temp tables

About Statement findings

SmarTune displays the top statements occurring in a time slice. A SmarTune time slice is updated on an hourly basis. Top statements are the statements that have the highest In MS-SQL time, computed without lock time and remote wait time, that were running more than a specified number of minutes, during the time slice.

You can configure these parameters (how long they should be running to be considered top statements) in AdminPoint. You decide how many top statements to display.

The following table shows the statement behavior displayed on findings.

Table 7 Statement behavior displayed on findings

Statement BehaviorDescription
Heavy Statement

The statement is a major consumer of MS-SQL resources. By tuning the statement, you can free resources needed by other statements and processes.

Major Statement in Batch

The statement consumed more than 50% of MS-SQL batch resources. By tuning the statement, you can free resources needed by other statements and processes.

Heavy Operators

The statement or batch has an operator that accesses the object and shows a high cost percentage.

Missing Indexes

During SQL Server optimization, missing indexes were identified for one or more statements or batch. This means there can be one or more indexes, but they are not used because of a mismatch of column types. The SQL Server optimizer recommended creating indexes to improve the performance of the statement or batch. Detailed information regarding the index recommendation for this statement or batch can be found in the Recommend tab of the SQL tab.

Missing Statistics

The Missing Statistics warning was issued by the SQL Server optimizer when the access plan was created. This means that the SQL Server optimizer recommends creating and updating the statistics on objects accessed by a specific statement or batch. Detailed information on missing statistics for this statement or batch can be found in the Recommend tab in the SQL tab.

Table Schema Change May Increase Its Accessing Time

The average In MS-SQL time increased after an object change. Check the changes and how they affected the statement or batch execution time.

Statement Is Not Scalable

Statement resource consumption was increased by n% as a result of an increase in its executions.

Table Growth May Increase Its Accessing Time

The average In MS-SQL time of the statement increased following a major change in table size.

Increase In Resource Consumption

The SQL Server resources consumed by the statement increased by n%.

Statement Was Locked

Much of the statement or batch time was spent waiting for a lock. Regular locks can be categorized as follows:

  • During the blocker session, a locked statement or batch ran for a short period of time. Afterwards the session was idle or continued running other statements or batches. In this case, it is possible to identify the blocker session, but not necessarily the blocker statement or batch.
  • During the blocker session, a locked statement or batch ran for a long period of time. Identifying the blocker statement or batch is easier in this case.
Statement Activity Consistently High

Total In MS-SQL time of the statement was consistently high and reached the thresholds of the top statements.

About Collapsed Statement Findings

A collapsed statement includes several statements that use the same text, but not the same constants.

Heavy Collapsed Statement

A set of collapsed statements constitute a major consumer of MS-SQL resources.

Statement Is Not Scalable

Statement resource consumption was increased by n% as a result of an increase in its executions.

About Object findings

Object findings are checked for top objects. The parameters determining what is considered to be a top object can be configured in AdminPoint.

The following table shows the object behavior displayed on findings.

Table 8 Object behavior displayed on findings

Object BehaviorDescription
Heavily Access Object

Object is a major consumer of MS-SQL resources. By tuning the object, you can free resources needed by other statements and processes.

Heavy Operators

One or more statements access this object using heavy operators. Statement has major access plan operators for this object that scan a great deal of data and show a high cost percentage.

Missing Indexes

During SQL Server optimization, missing indexes were identified for one or more statements. This means that the SQL Server optimizer recommended creating and updating the statistics on objects accessed by a specific statement or batch. Detailed information regarding the index recommendation for this statement can be found in the Recommend tab of the Objects tab.

Missing Statistics

The Missing Statistics warning was issued by the SQL Server optimizer when the access plan was created. This means that the SQL Server optimizer recommends creating and updating the statistics on the object. Detailed information on missing statistics for this object can be found in the Recommend tab in the Object tab.

Table Schema Change May Increase Its Accessing TimeThe total In MS-SQL time of the object increased after changes were made to the schema.
Object Is Not ScalableThe total In MS-SQL contribution of the object increased when the number of statements executions changed.
Table Growth May Increase Its Accessing TimeThe total In MS-SQL time of the object increased following a major change in the table size.
Increase in Resource ConsumptionThe total In MS-SQL time of the object has increased.
Locked Object

Much of the In MS-SQL time was spent waiting for a lock on the table. Regular locks can be categorized as follows:

  • During the blocker session, a locked statement ran for a short period of time. Afterwards the session was idle or continued running other statements. In this case, it is possible to identify the blocker session, but not necessarily the blocker statement.
  • During the blocker session, a locked statement ran for a long period of time. Identifying the blocker statement is easier in this case.
Index OverheadMost of the activity on the index is due to the fetching of index pages from the disk, reflect5ng changes made by INSERT, DELETE, and UPDATE statements.

About Instance findings

SmarTune checks to which extent a finding affects an instance.

The following table shows the instance behavior displayed on findings.

Table 9 Instance behavior displayed on findings

Instance BehaviorDescription
Locked Instance

x% of the In MS-SQL time was spent waiting for locks. Regular locks can be categorized as follows:

  • During the blocker session, a locked statement or batch ran for a short period of time. Afterwards the session was idle or continued running other statements or batches. In this case, it is possible to identify the blocker session, but not necessarily the blocker statement or batch.
  • During the blocker session, a locked statement or batch ran for a long period of time. Identifying the blocker statement or batch is easier in this case.
Tempdb Bottleneck

The instance is experiencing a bottleneck of the tempdb database. x% of the In MS SQL time was spent waiting for tempdb.The tempdb database is used for temporary storage for sorting, joining, and, in SQL Server 2005, for row versioning.

Buffer Cache Is Too Small

A SQL Server instance is configured to work with a small buffer cache. Your applications are experiencing x% of the In MS-SQL time for I/O wait. The application’s overall performance is therefore not optimal.

Other Applications Influence SQL Server (Memory)

A SQL Server instance experienced many page faults and lack of memory, while other processes on the same server did not experience any page faults problem.

Other Applications Influence SQL Server (CPU)

A SQL Server instance experienced CPU shortage, as a result of other processes running on the server.

The Transaction Log Bottleneck

Some of the databases suffer from transaction log bottleneck. Log wait consumes x% of the In MS-SQL time.

Extensive Internal Wait

The SQL Server instance has spent much of its time waiting for Internal Wait.

Configuring Findings settings

You determine the maximum number of findings to display in the Findings area.

Findings are added to the Findings table as they are detected by the SmarTune process. You can choose to ignore a finding by selecting the finding and clicking its ignore icon. Findings which you have decided to ignore can be returned to the Findings display by configuring the SmarTune settings.

The SmarTune settings control the findings displayed in both the Dashboard and SmarTune tabs.

To determine the maximum number of findings to display

  1. On the Settings menu, click SmarTune Settings.
  2. In the SmarTune Settings dialog box, in the Maximum number of findings to display, select the number of findings you want to display.
  3. Click OK.

To restore the display of a finding to the Findings table in the SmarTune tab

  1. On the Settings menu, click SmarTune Settings.
  2. In the SmarTune Settings dialog box, check the Ignore check box located next to the finding you want to ignore.
  3. Check the Enable Ignore List check box.
  4. Click OK.

To restore all findings detected by the SmarTune process to the Findings table in the SmarTune tab

  1. On the Settings menu, click SmarTune Settings.
  2. In the SmarTune Settings dialog box, clear the Activate Ignore List check box.
  3. Click OK.


  • No labels