Space View (DB2 LUW Performance Analyst)
Go Up to IBM DB2 (W/U/L) Performance Analyst statistics
While DBAs focus on memory settings and tuning SQL, they often forget just how dangerous and insidious storage problems can be. This is not a good mindset because storage headaches can play a major role in wrecking an otherwise well-running database.
Storage problems generally take one of two forms:
- The "hit-the-wall" variety that can bring things to a complete standstill.
- The "performance vampire" kind that slowly drains the performance of a database over time.
Storage problems can quickly lead to performance problems, such as when a transaction log runs out of free space. But storage problems can also silently work behind the scenes to slowly but surely rob a database of its performance.
In addition to a Home page, the Space category of DB2 Performance Analyst includes the following tabbed pages:
- Usage tab
- Logging tab
- Bufferpools tab
- Objects tab
- Quiesce tab
- Rebalance tab
- Reorganization tab
- Rollforward tab
Contents
Home
The Home page of the Space performance category view displays statistics in the following categories:
- Tablespace Analysis Pane
- Bottleneck Analysis Pane
- SQL Analysis Pane
- Storage Analysis Pane
- Log Analysis Pane
Tablespace Analysis Pane
The Tablespace Analysis section includes a list of all of the tablespaces in the database. The following information is presented for each tablespace:
| Field | Description |
|---|---|
|
Tablespace Name |
Name of the tablespace. |
|
Type |
System managed (SMS) or database managed (DMS) tablespace |
|
State |
Describes the current state of the tablespace. |
|
Used Space |
The space currently in use on tablespace. |
|
Free Space |
The space currently free on the tablespace. (This is not applicable to SMS tablespaces). |
|
Content Type |
The type of data that can be stored on the tablespace. It can be one of the following:
|
|
Page Size |
Size of the pages used by the tablespace. |
|
Extent Size |
Number of pages that will be written to a container before writing to the next container on the tablespace. |
|
Prefetch Size |
Number of pages that will be read from the tablespace by the prefetchers in a single prefetch. |
|
Total Space |
Total space (Used + Free) used by the tablespace on the storage device(s). This will be the same as used space for SMS tables. |
|
High Watermark |
Highest amount of used space for the tablespace (This is not applicable to SMS tablespaces). |
Other statistics appearing in this section include:
| Field | Description |
|---|---|
|
Total Tablespaces |
The total tablespaces statistic is the total number of tablespaces in the database. |
|
SMS Tablespaces |
The SMS tablespaces statistic is the number of system managed (SMS) tablespaces in the database. |
|
DMS Tablespaces |
The DMS tablespaces statistic is the number of database managed (DMS) tablespaces in the database. |
Bottleneck Analysis Pane
Space shortfalls or inaccessible tablespaces can quickly bring a database to a halt. The space bottleneck analysis section provides an at a glance look at the items that may require your attention. You can drill down to the details pages to see further details of the various metrics.
The metrics presented here are:
The following statistics, available on this pane, are duplicates of statistics found on the Bottleneck Analysis Pane of the Home View (DB2 LUW Performance Analyst) page:
DMS Tablespaces at Utilization >80%
The DMS tablespaces at utilization greater than 80% metric gives the number of DMS tablespaces in the database where the used space on the tablespace is more than 80% of the total available space.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Home > Bottleneck Analysis Pane |
|
Metrics |
This metric is an indicator that some of the tablespaces in your database may be running out of space. You should drill down to the Space metrics to identify the tablespaces that may be at the critical utilization level. In tablespaces where there are little on no inserts after the initial data is loaded, little or no free space may have been left on purpose. In such cases, it is normal to see a high utilization |
|
Correction |
If this metric goes beyond the normal operational value for your database, consider creating additional space on the DMS tablespaces that are running out of space. You can do this by performing one or more one of the following tasks: Clean up unused space by deleting the tables/indexes that are no longer required. Resize or extend the existing containers in the tablespaces. Add new containers to the tablespaces. |
Inaccessible Tablespaces
The inaccessible tablespaces statistic is the number of tablespaces that are offline.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Home > Bottleneck Analysis Pane |
|
Metrics |
Sometimes a problem (such as inaccessible containers) will cause a tablespace to go offline. Even when the problem is corrected, such tablespaces are not accessible by any application and need to be brought online explicitly. |
|
Correction |
|
SQL Analysis Pane
The metrics presented here are:
- DDL Statements Executed
- Insert/Updates/Deletes Statements Executed
- Select Statements Executed
- Total SQL Executed
DDL Statements Executed
This metric indicates the number of SQL Data Definition Language (DDL) statements that have been executed.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Home > SQL Analysis Pane |
|
Metrics |
You can use this element to determine the level of database activity at the application or database level. DDL statements are expensive to run because of their impact on the system catalog tables. As a result, if the value of this element is high, you should determine the cause, and possibly restrict this activity from being performed. DDL statements can also impact:
|
Insert/Updates/Deletes Statements Executed
This is the number of SQL UPDATE, INSERT, and DELETE statements that were executed.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Home > SQL Analysis Pane |
|
Metrics |
You can use this element to determine the level of database activity at the application or database level. This information can be useful for analyzing application activity and throughput. |
Select Statements Executed
This statistic is the number of SQL SELECT statements that were executed.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Home > SQL Analysis Pane |
|
Metrics |
You can use this element to determine the level of database activity at the application or database level. This information can be useful for analyzing application activity and throughput. |
Total SQL Executed
You can use this element to calculate the total number of SQL statements at the database level.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Home > SQL Analysis Pane |
|
Metrics |
This element can also help you in determine reasons for poor performance. Failed statements mean time wasted by the database manager, and as a result, lower throughput for the database. You can use this element in conjunction with the other SQL metrics to understand the portion of SQL activity that can be attributed to various statement types. |
Storage Analysis Pane
While DBAs focus on memory settings and tuning SQL, they frequently forget how dangerous and insidious storage problems can be. This is not a good mindset because storage headaches can play a major role in wrecking an otherwise well-running database. Storage problems generally take one of two forms:
- The ‘hit-the-wall’ variety that can bring things to a complete standstill.
- The ‘performance vampire’ kind that slowly drains the performance of a database over time.
Storage problems have the capability to bring the curtain down on a database very quickly, as in the case of a transaction log running out of free space. But storage problems can also silently work behind the scenes to slowly, but surely rob a database of its performance. For example, a hub table in a busy database might be accessed very quickly when an application is first given life, but over time, if it develops a heavy forwarded row problem, it can cause things to run very differently.
The Storage Analysis section of the Performance Analyst Home page displays the total used and free space of all DMS tablespaces in the database. It also provides the total and available log space for the database.
The following ratios succinctly communicate the general overall performance levels of the datasource:
The following statistics, available on this pane, duplicate statistics available on the Storage Analysis Pane of the Home page:
Log Analysis Pane
The Log Analysis section gives you at-a-glance information about all your log configuration parameters and the high watermarks for the log space usage. You can use this information to quickly determine the logging mechanism in place for your database and if the high watermarks are getting too close to the maximum allocations for the log space.
The metrics presented here are:
Log Configuration
The log configuration metric gives a list of space related log configuration parameters for your database. The values of these parameters determine how the logger uses storage space on the database:
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Home > Log Analysis Pane |
High Watermarks
The high watermarks statistic shows the maximum total and secondary log space used by the database.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Home > Log Analysis Pane |
|
Metrics |
The total log space used high watermark in conjunction with the total log space allocated, helps you determine if applications have come close to using the total log space available to your database. The total secondary log space used high watermark in conjunction with total log space used high watermark helps you determine your current dependency on secondary logs. |
|
Correction |
High values of either high watermarks can indicate that you either need to increase the log space on the database or that the applications using the database need to perform more frequent COMMITS. You can increase the overall log space available by adjusting one or more of the following database configuration parameters: logfilsiz, logprimary, logsecond, and logretain. |
Usage tab
The Space Detail Usage tab section shows you the list of tablespaces for the database. The following information is presented for each tablespace:
Tablespace Details
Container Details
This section shows the list of containers for the selected tablespace. The information presented here includes:
| Field | Description |
|---|---|
|
ID |
A value that uniquely identifies the container within the tablespace. |
|
Name |
The name of the container. Typically this is the full path of the file/directory/device where the container exists. |
|
Type |
The type of container. An SMS Container will be a directory. A DMS Containers will be a raw device/file/stripped disk/ or stripped file. Together with Container name, and partition, this metric identifies the physical location of the container. |
|
DB Partition |
The database partition where the container exists. |
|
Usage Pages |
(DMS tablespaces only). Usable pages in the container. |
|
Total Pages |
Total pages in the container. |
|
Stripe Set |
The stripe set that a container belongs to. |
|
Accessible |
This element describes if a container is accessible. |
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Usage tab |
|
Metrics |
This section can be used to get a better understanding of the physical layout of a tablespace. Also, it lets you quickly identify if any containers are inaccessible. |
Logging tab
The Logging tab of the Space Detail view displays Logging Space statistics:
Log Read/Writes
This section shows the level of read/write activity being performed by the logger. The information presented here is:
| Field | Description |
|---|---|
|
Log Reads |
The number of log pages read from the disk by the logger per second. |
|
Log Writes |
The number of log pages written to the disk by the logger. |
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Logging tab |
|
Metrics |
You can use this page with the operating system level I/O metrics, to quantify the amount of I/O on a device that is attributable to database activity. |
Indoubt Transactions
This section shows the number of outstanding indoubt transactions in the database.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Logging tab |
|
Metrics |
Indoubt transactions hold log space for uncommitted transactions, which can cause the logs to become full. When the logs are full, further transactions cannot be completed. The resolution of this problem involves a manual process of heuristically resolving the indoubt transactions. This monitor element provides a count of the number of currently outstanding indoubt transactions that must be heuristically resolved. |
Log Usage
This section shows the following log usage details:
| Field | Description |
|---|---|
|
Total Used Space |
Total space used by log files. |
|
Total Free Space |
Total space still available to the logger. |
|
Total Used Space Highwatermark |
The maximum amount of total log space used. |
|
Secondary Space Used High Watermark |
The maximum amount of secondary log space used. |
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Logging tab |
|
Metrics |
Use these metrics to check your current log space usage and the highest amount of space used by the logger. If the usage is high and the high watermarks are also near the total available space, you may need to increase the amount of log space or end/commit/rollback the oldest transaction. |
|
Correction |
You can use the following database configuration parameters to change the amount of log space available: logfilsiz, logprimary, and logsecond. You can end (force) a connection with a long running transaction using the DBArtisan database monitor. |
Secondary Logs
This section shows the secondary logs allocations by the database over the monitoring period.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Logging tab |
|
Metrics |
When the primary log files become full, the secondary log files are allocated one at a time as needed, up to a maximum number as controlled by the logsecond database configuration parameter. Secondary log files are useful in preventing occasional log fill ups but they may not be as efficient as primary log and they also increase the recovery time. If you see a constant reliance on secondary log files, it may indicate infrequent commits by database applications or insufficient primary log space. |
|
Correction |
First examine the database applications to see if secondary log files are due to long running transactions and whether these transactions can be shortened. If the transactions cannot be shortened or you still see a very frequent use of secondary logs after transaction tuning, increase the primary log size (logprimary,logfilsiz Database configuration parameters) to reduce the dependence on secondary logs. If there is an occasional long running transaction, and you see your see transaction log full (SQL0964C) error messages, you can either increase the number of secondary log files (logsecond database configuration parameter) or set the number to -1 (no limit on number of secondary log files). |
Bufferpools tab
The Bufferpools tab of the Space Detail View shows the list of tablespaces, with the current bufferpool associated with each tablespace and also the bufferpool used by the database at next startup
Objects tab
The Objects tab of the Space Detail View shows the following statistics:
Tablespace Object Summary
This section shows information about how tablespaces are being used on the database. The information presented here includes:
| Field | Description |
|---|---|
|
Tablespace |
Name of the tablespace. |
|
Table Count |
Number of tables on the tablespace. |
|
Page Size |
Tablespace page size. |
|
Index Count |
Number of indexes on the tablespace. |
|
Table Space |
Space used by tables on the tablespace. |
|
Index Space |
Space used by indexes on the tablespace. |
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Bufferpools tab |
Tablespace Object Details
This section shows the details of the objects on the tablespaces shown in the Tablespace Object summary section. The user can toggle between the list of tables and indexes for the tablespace.
The information presented here for tables includes:
| Field | Description |
|---|---|
|
Table Schema |
Schema name of the table. |
|
Table Name |
Name of the tables. |
|
Avg Row Length |
Approximate length of the table row. |
|
#Rows |
Table Cardinality. |
|
#Pages Allocated |
Number of pages allocated to the table. |
|
Table Size |
Total space used by the rows on the table. |
|
Available |
Total available space on the table. |
|
Total |
Total space used by the table pages. |
Note: The information presented here is based on the table/index statistics and if the statistics haven’t been collected /updated, this information may be out of date.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Bufferpools tab |
Quiesce tab
The Quiesce tab of the Space Detail view shows displays the following information:
Quiesced Tablespaces
This section shows a list of quiesced tablespaces. A quiesce is a persistent lock. Its benefit is that it persists across transaction failures, connection failures, and even across system failures (such as power failure, or reboot).
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Quiesce tab |
|
Metrics |
A quiesce is owned by a connection. If the connection is lost, the quiesce remains, but it has no owner, and is called a phantom quiesce. For example, if a power outage caused a load operation to be interrupted during the delete phase, the tablespaces for the loaded table would be left in delete pending, quiesce exclusive state. With a database restart, this quiesce would be an unowned (or phantom) quiesce. The removal of a phantom quiesce requires a connection with the same user ID used when the quiesce mode was set. This section is useful in identifying the tablespaces that are in a quiesced state. |
|
Correction |
To remove a phantom quiesce:
|
Quiescer Details
This section shows the list of quiescers for the selected quiesced table.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Quiesce tab |
|
Metrics |
Any quiescers whose agent IDs not listed under Users Detail > Attributes are phantom. |
|
Correction |
To remove a phantom quiesce:
|
Rebalance tab
The Rebalance tab of the Space Detail page displays the following information:
The following statistic, available on this pane, are duplicates of statistics on the Space View (DBArtisan - DB2 LUW Performance Analyst) Usage tab.
Rebalance Status
This section shows a graph of the percentage of extents that have been processed and the percentage that remains incomplete for the selected tablespace.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Rebalance tab |
Reorganization tab
The Reorganization tab of the Space Details View displays the following statistics:
Table Details
This section shows the details of all the tables on which reorganization has been attempted since the start of monitoring. It also shows the status of tables that are presently undergoing reorganization. The information presented in this includes:
| Field | Description |
|---|---|
|
Table Schema |
Table Schema of the table on which reorganization is being/was performed. |
|
Table Name |
Table Name of the table on which reorganization is being/was performed. |
|
Tablespace |
Tablespace of the table on which reorganization is being/was performed. |
|
Start |
Start time of the reorganization. |
|
End |
End Time of the reorganization. |
|
Phase Start |
Start time of a phase of reorganization. |
|
Current Counter |
Percentage of reorganization operation completed (0 if the reorganization status is complete). |
|
Max Phase |
The maximum number of reorganization phases that will occur during reorganization processing. This applies to classic (offline) reorganizations only. |
|
Status |
The status of an in-place (online) table reorganization. This is not applicable to classic (offline) table reorganizations. An in-place table reorganization can be in one of the following states:
|
|
Completion |
Table reorganize success indicator. |
|
Phase |
Table reorganize phase. This applies to classic (offline) table reorganizations only). For classic table reorganization, the following phases are possible:
|
|
% Complete |
Shows the completion status of the reorganization jobs. |
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Reorganization tab |
Reorganization Status
Shows a graphical status view of the currently selected reorganization.
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Reorganization tab |
Reorganization Attributes
This section shows the reorganization attributes of the currently selected reorganization. The attributes include:
- Allow Write Access
- Allow Read Access
- Allow No Access
- Recluster Via Index Scan
- Reorg Long Field LOB Data
- No Table Truncation
- Reclustering
- Reclaiming
- Inplace Table Reorg
- Table Reorg
- Recluster Via Table Scan
- Reorg Data Only
| Topic | Description |
|---|---|
|
Location |
IBM DB2 (W/U/L) Performance Analyst statistics > Space View (DBArtisan - DB2 LUW Performance Analyst) > Reorganization tab |
Rollforward tab
Recovering database changes is time-consuming. You can use the database system monitor to monitor the progression of a recovery. This section provides the following elements to help you monitor the status of rollforwards:
| Fields | Description |
|---|---|
|
Timestamp |
Timestamp of the log being processed. This is an indicator of the data changes that will be recovered. |
|
Tablespace |
Tablespace being rolled forward. This element identifies the tablespaces involved in the rollforward. |
|
Type |
An indicator of whether the recovery is happening at a database or tablespace level. |
|
Log# |
The log being currently processed. This identifies the log involved in the rollforward. |
|
Status |
The status of rollforward recovery. This metric indicates if the recovery is in an undo (rollback) or redo (rollforward) phase. |
|
Tablespaces |
Number of tablespaces involved in the rollforward. |
|
Node |
Indicates the database partition number for the rollforward operation. |