V$OB_FUNCTION_IO_STAT

2026-02-05 05:53:38  Updated

Note

This view was introduced in OceanBase Database V4.3.4.

Purpose

This view displays the I/O statistics at the function level for the current tenant on the current OBServer node. If the resource group corresponding to the background task at the function level does not have a resource management plan enabled, the displayed I/O information is only for reference and the corresponding resources cannot be limited.

Columns

Column Type Nullable? Description
SVR_IP varchar(46) NO The IP address of the server.
SVR_PORT bigint(20) NO The port of the server.
TENANT_ID bigint(20) NO The ID of the tenant.
FUNCTION_NAME varchar(32) NO The name of the background task corresponding to the function:
  • COMPACTION_HIGH: mini merge and DDL KV merge tasks
  • HA_HIGH: high-priority high-reliability tasks such as replication, rebuild, and recovery
  • COMPACTION_MID: minor merge tasks
  • HA_MID: medium-priority high-reliability tasks such as migration tasks
  • COMPACTION_LOW: major merge tasks
  • HA_LOW: backup and backup cleanup tasks of low priority
  • DDL: tasks in scenarios such as unique index verification and column deletion and data restoration
  • DDL_HIGH: tasks for dumping DDL MemTables
  • CLOG_LOW: physical standby and CDC read tasks
  • CLOG_MID: follower read shared storage, log archiving read local disk, and other tasks
  • CLOG_HIGH: clog write to local disk, clog file upload to shared storage, and follower read local disk tasks
  • GC_MACRO_BLOCK: macroblock recycling and reuse tasks
  • OPT_STATS: statistics collection tasks
  • IMPORT: import tasks
  • SQL_AUDIT: SQL audit log write tasks
  • DEFAULT_FUNCTION: other background tasks other than those defined above
MODE varchar(32) NO The read/write mode of I/O (remote requests in shared storage and local requests in other types of requests):
  • LOCAL READ: local read
  • LOCAL WRITE: local write
  • REMOTE READ: remote read
  • REMOTE WRITE: remote write
SIZE bigint(20) NO The average I/O size.
REAL_IOPS bigint(20) NO The actual IOPS.
REAL_MBPS bigint(20) NO The actual bandwidth in MB/s.
SCHEDULE_US bigint(20) NO The average time consumed for I/O scheduling in us.
IO_DELAY_US bigint(20) NO The average execution time of disk I/O in us.
TOTAL_US bigint(20) NO The overall average execution time of I/O in us.

Sample query

The following example shows how to query the I/O statistics at the function level for the current tenant on the current OBServer node.

obclient [SYS]> SELECT * FROM SYS.V$OB_FUNCTION_IO_STAT WHERE ROWNUM >= 5;

The query result is as follows:

+----------------+----------+-----------+------------------+--------------+------+-----------+-----------+-------------+-------------+----------+
| SVR_IP         | SVR_PORT | TENANT_ID | FUNCTION_NAME    | MODE         | SIZE | REAL_IOPS | REAL_MBPS | SCHEDULE_US | IO_DELAY_US | TOTAL_US |
+----------------+----------+-----------+------------------+--------------+------+-----------+-----------+-------------+-------------+----------+
| 172.xx.xxx.xxx |     2882 |         0 | DEFAULT_FUNCTION | LOCAL READ   |    0 |         0 |         0 |           0 |           0 |        0 |
| 172.xx.xxx.xxx |     2882 |         0 | DEFAULT_FUNCTION | LOCAL WRITE  | 4096 |         2 |         0 |          20 |         142 |      178 |
| 172.xx.xxx.xxx |     2882 |         0 | DEFAULT_FUNCTION | REMOTE READ  |    0 |         0 |         0 |          20 |         142 |      178 |
| 172.xx.xxx.xxx |     2882 |         0 | DEFAULT_FUNCTION | REMOTE WRITE |    0 |         0 |         0 |          20 |         142 |      178 |
| 172.xx.xxx.xxx |     2882 |         0 | COMPACTION_HIGH  | LOCAL READ   |    0 |         0 |         0 |          20 |         142 |      178 |
+----------------+----------+-----------+------------------+--------------+------+-----------+-----------+-------------+-------------+----------+
5 rows in set

References

Contact Us