PctPagesUsed (DB2_TSP)


Indicates the percentage of tablespace pages that are used. For DMS tablespaces, the parameter calculates the percentage of preallocated space that is used. For SMS tablespaces, the parameter calculates the percentage of space used by the tablespace containers on the filesystems. For DMS table spaces, this parameter calculates the percentage of the pre-allocated space that is used. Recovery action upon alarm is available.

For this parameter to be online, you need to set the monitor switch, DFT_MON_BUFPOOL to ON. Log on as the instance owner, and execute the following command:

db2 update dbm cfg using DFT_MON_BUFPOOL ON

DB2 instance must be restarted to take effect.

Note: This parameter will be offline for SMS tablespaces if the configured monitoring default account for the DB2 instance does not have read permissions to its tablespace container directories.

Parameter value calculation

For SMS Tablespace

Normal Tablespace:

PctPagesUsed = 100 * (Pages Used / (Usable Pages + (free space on the file system containing tablespace containers (in bytes) / Page Size))

For example: For the following tablespace snapshot output

Name

SYSCATSPACE

TopPages

12588

UsablePages

12588

UsedPages

12588

FreePages

0

PageSize

4096

Container

/db2/idb2d08/data/idb2d08/NODE0000/SQL00001/SQLT0000.0

And the following df-k UNIX output

Filesystem

/dev/idb2d08_lv

1024-blocks

1048576

Free

392100

%Used

63

Lused

1342

%Lused

2

Mounted on

/db2/idb2d08

PctPagesUsed = 100*(12588/(12588 + (392100/4096))) = 11.38%

For DMS Tablespace

Normal Tablespace

PctPagesUsed = 100 * (Pages Used / Usable Pages)

For example: for the following tablespace snapshot output

Name

USERSPACE1

TopPages

8192

UsablePages

8160

UsedPages

96

FreePages

0

PageSize

4096

Container

/data2/db2/sin900/NODE0000/SAMPLE/T0000002/C0000000.LRG

 PctPagesUsed = 100*(96(pages)/8160(pages)) = 1.17%

Auto-resize Tablespace with MAXSIZE:

PctPagesUsed = 100 * (Pages Used / N)

N is the lowest value between (MAXSIZE/Page Size) and

(Usable pages + (free space on the file system containing tablespace containers (in bytes)/ Page Size))

MAXSIZE is the maximum tablespace size in bytes. You can use the tablespace snapshot output to obtain this value.

Note: You can specify the MAXSIZE value while creating a DMS tablespace. This value is the maximum limit a DMS tablespace can grow to.

Auto-resize Tablespace without MAXSIZE:

PctPagesUsed = 100 * (Pages Used / (Usable Pages + (free space on the file system containing tablespace containers (in bytes)/ Page Size)))

Default parameter attributes

Attribute

Default value

Application class

DB2_TSP

Command type

not applicable

Platform

All

Active at installation

yes

Parameter type

Consumer

Icon style

Graph

Alarm 1 range

80-95 WARN

Alarm 2 range

95- 100 ALARM

Border range

0-100 OK

Unit

Percentage

Annotated?

Yes

Value set by

CollTablespace

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC PATROL for DB2 Universal Database 9.0