IBM Support

Negative Cache Hit Percent.

Troubleshooting


Problem

"Cache Hit Pct." variable shows a negative value (e.g -15%) when QUERY DB FORMAT=DETAILED

Cause

The variable "Total Buffer Latch Requests:" (in SHOW BUFS) shows an excessive value (e.g. 3845700982)

Resolving The Problem

Note: the use of the SHOW commands is unsupported. User to use on their discretion.

In some situations, running the query QUERY DB F=D shows the variable "Cache Hit Pct." as a negative value:

      Cache Hit Pct: -15.0
This issue does not cause the TSM server to stop. It will continue functioning.

When a negative "Cache Hit Pct" is observed, acquire the "Total Buffer Latch Requests" by running the SHOW BUFS command. The output is similar to the following:

    Database Buffer Pool Statistics:

    Total Buffer Latch Requests: 3845700982
    Times Scavenging Required: 58122188 1.51%
    Times Scavenging by Stealing: 58056652 1.51%
    Times Scavenging by Waiting: 0 0.00%
    Times Read Required: 57642282 1.50%

    Cache Hit Percentage: -13.18%
The SHOW BUFS output above shows the variable "Total Buffer Latch Requests:" with a excessive value of 3845700982.

This value is used in the calculation of the Cache Hit Pct., and since the value is huge, it overflows a 32 bit unsigned integer field, causing the negative result.

The resolution to this issue is to run the command: RESET BUFPOOL which will cause the buff pool statistics to be reset.

If the issue occurs again, then a schedule could be created to run this command frequently
depending on how often this issue occurs.

[{"Product":{"code":"SSGSG7","label":"Tivoli Storage Manager"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Server","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF012","label":"IBM i"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"All Versions","Edition":"All Editions","Line of Business":{"code":"LOB26","label":"Storage"}}]

Document Information

Modified date:
17 June 2018

UID

swg21268767