All Products
Search
Document Center

PolarDB:Views of I/O statistics and I/O latency distribution

Last Updated:Mar 28, 2026

Use the polar_stat_io_info and polar_stat_io_latency views to diagnose I/O performance at the file level — including operation counts, throughput, and latency distributions broken down by file type and I/O kind.

Prerequisites

Before you begin, ensure that you have:

  • The polar_monitor extension installed in the database

To install the extension, run:

CREATE EXTENSION polar_monitor;

I/O statistics view

polar_stat_io_info answers the question: how much I/O is happening, and how long is it taking? Query this view to find which file type is generating the most read or write traffic, or which operation is accumulating the most latency.

ColumnTypeDescription
filetypetextThe file type, such as WAL, DATA, and LOG.
fileloctextThe local file.
open_countnumericNumber of file open operations.
open_latency_usdouble precisionTotal latency of file open operations, in microseconds.
close_countnumericNumber of file close operations.
read_countnumericNumber of file read operations.
write_countnumericNumber of file write operations.
read_throughputnumericTotal bytes read.
write_throughputnumericTotal bytes written.
read_latency_usdouble precisionTotal latency of read operations, in microseconds.
write_latency_usnumericTotal latency of write operations, in microseconds.
seek_countnumericNumber of file seek operations.
seek_latency_usdouble precisionTotal latency of seek operations, in microseconds.
creat_countnumericNumber of file create operations.
creat_latency_usdouble precisionTotal latency of file create operations, in microseconds.
fsync_countnumericNumber of fsync operations.
fsync_latency_usdouble precisionTotal latency of fsync operations, in microseconds.
falloc_countnumericNumber of falloc operations.
falloc_latency_usdouble precisionTotal latency of falloc operations, in microseconds.

I/O latency distribution view

polar_stat_io_latency answers the question: where does latency concentrate? Instead of an average, it shows how many operations completed within each latency bucket, making it easier to detect tail latency.

ColumnTypeDescription
iokindtextThe I/O operation type, such as OPEN, CREATE, READ, and WRITE.
num_lessthan200usnumericOperations that completed in less than 200 microseconds.
num_lessthan400usnumericOperations that completed in less than 400 microseconds.
num_lessthan600usnumericOperations that completed in less than 600 microseconds.
num_lessthan800usnumericOperations that completed in less than 800 microseconds.
num_lessthan1msnumericOperations that completed in less than 1 millisecond.
num_lessthan10msnumericOperations that completed in less than 10 milliseconds.
num_lessthan100msnumericOperations that completed in less than 100 milliseconds.
num_morethan100msnumericOperations that took longer than 100 milliseconds.