DEV Community

mmllllzcn
mmllllzcn

Posted on

GBase Database: Understanding CKPT REQ vs CKPT INP in onstat Output

A small but important detail in GBase Database(GBase 8s) monitoring: checkpoint flags at the end of onstat - output have two different meanings.

Consider this example:

onstat -
# gbase01: On-Line -- Up 3 days 06:13:19 -- 165364 Kbytes (CKPT REQ)
💬 ชาวเน็ตแห่แชร์: mmllllzcn/gbase database understanding ckpt req vs ckpt inp in onstat output d - Kapook Update 2025 💬 ชาวเน็ตแห่แชร์: mmllllzcn/gbase database understanding ckpt req vs ckpt inp in onstat output d - Kapook Update 2025

There are two checkpoint status indicators worth remembering:

  • (CKPT REQ): A checkpoint has been requested.
  • (CKPT INP): A checkpoint is currently in progress.

Neither indicator is automatically an error. They describe the checkpoint state, not a confirmed database problem.

For DBAs monitoring GBase Database, understanding this distinction helps prevent false alarms during routine health checks.

1. What Do CKPT REQ and CKPT INP Mean?

Checkpoints are part of database operations that help synchronize modified data with disk storage.

GBase Database displays the checkpoint status directly in the onstat - output, allowing administrators to identify the current checkpoint phase without immediately searching through logs.

The distinction is straightforward:

Indicator Meaning Initial interpretation
(CKPT REQ) Checkpoint requested A request is pending
(CKPT INP) Checkpoint in progress A checkpoint is executing

A single occurrence of either indicator should not trigger an immediate alarm.

The important question is whether the status persists and whether other performance indicators support further investigation.

2. When Should You Investigate CKPT REQ?

A persistent (CKPT REQ) deserves attention.

It may indicate that checkpoint requests are waiting to be processed. In this situation, checking checkpoint-related statistics is a reasonable next step.

Run:

onstat -p
💬 ชาวเน็ตแห่แชร์: mmllllzcn/gbase database understanding ckpt req vs ckpt inp in onstat output d - Kapook Update 2025 💬 ชาวเน็ตแห่แชร์: mmllllzcn/gbase database understanding ckpt req vs ckpt inp in onstat output d - Kapook Update 2025

Pay particular attention to:

ckpwaits
💬 ชาวเน็ตแห่แชร์: mmllllzcn/gbase database understanding ckpt req vs ckpt inp in onstat output d - Kapook Update 2025 💬 ชาวเน็ตแห่แชร์: mmllllzcn/gbase database understanding ckpt req vs ckpt inp in onstat output d - Kapook Update 2025

This statistic helps identify checkpoint-related waits.

However, remember that ckpwaits is a cumulative counter since the statistics were last reset. A single value does not tell you exactly when the waits occurred.

For meaningful GBase Database performance monitoring, compare values over a defined observation interval rather than interpreting the cumulative count in isolation.

3. Read Checkpoint Status Together with Uptime

Another useful detail is the Up field in onstat -.

For example:

On-Line -- Up 00:00:15 -- 165364 Kbytes (CKPT INP)
💬 ชาวเน็ตแห่แชร์: mmllllzcn/gbase database understanding ckpt req vs ckpt inp in onstat output d - Kapook Update 2025 💬 ชาวเน็ตแห่แชร์: mmllllzcn/gbase database understanding ckpt req vs ckpt inp in onstat output d - Kapook Update 2025

A checkpoint in progress shortly after startup can be part of normal initialization activity.

By contrast, a persistent (CKPT REQ) after a long uptime may justify additional investigation, especially when checkpoint-related waits are also increasing.

This is why reading checkpoint status together with uptime provides more context than looking at the flag alone.

4. Understand the Difference Between Checkpoint State and Statistics

One common troubleshooting mistake is treating (CKPT REQ) and ckpwaits as interchangeable indicators.

They are not.

  • Checkpoint flag: Describes the current checkpoint state shown by onstat -.
  • ckpwaits: A cumulative statistic reported by onstat -p.

The checkpoint flag tells you what phase is currently indicated. The cumulative counter provides historical information about checkpoint-related waits.

For example:

  • (CKPT REQ) alone does not prove that checkpoints are running slowly.
  • Increasing ckpwaits over an observation interval deserves investigation, even if no checkpoint flag is currently displayed.
  • A completed checkpoint does not erase previously accumulated wait statistics.

Separating runtime status from cumulative performance statistics is an essential skill when interpreting GBase Database monitoring output.

5. A Practical Checkpoint Monitoring Routine

For routine GBase Database health checks, keep these three steps in mind:

  1. Run onstat - and identify whether the instance reports CKPT REQ or CKPT INP.
  2. Check the Up value to understand the instance's runtime context.
  3. If a checkpoint request persists, inspect ckpwaits in onstat -p and compare its values over time.

Also remember that onstat - reads instance status information from shared memory without taking a locking operation, making it suitable for repeated status checks in production environments.

Conclusion

Checkpoint indicators are easy to misread when monitoring a production database.

In GBase Database(GBase 8s), (CKPT REQ) means a checkpoint has been requested, while (CKPT INP) means a checkpoint is in progress. Neither should automatically be classified as an error.

The key is to interpret these indicators alongside uptime and cumulative checkpoint statistics.

A good DBA does not just recognize monitoring fields. They understand what each field measures, what it cannot prove, and when additional investigation is necessary.

What other onstat fields have you seen misinterpreted during routine database health checks?

Top comments (0)