更新时间:2023-07-18 GMT+08:00

实例级性能指标

General Overview

图1 General Overview性能指标
表1 Query runtime per second (all databases)字段解释

字段

说明

Queries per sec

每秒执行查询的次数。

Runtime per sec

每秒执行的查询的总持续时间。

Avg runtime

平均查询时长。

表2 Block access in Bps字段解释

字段

说明

Total hit

在共享缓冲区中找到的数据量。

Total read

在操作系统缓存中找到或从磁盘读取的数据量。

Background Writer

图2 Background Writer性能指标
表3 Checkpointer scheduling字段解释

字段

说明

of requested checkpoints

已执行的请求检查点数。

of scheduled checkpoints

已执行的预定检查点数。

表4 Checkpointer activity字段解释

字段

说明

Buffers alloc

分配的缓冲区数。

Sync time

文件同步到磁盘的检查点处理部分所花费的总时间(单位 : 毫秒)。

Write time

在将文件写入磁盘的检查点处理部分中花费的总时间(单位 : 毫秒)。

表5 Background writer字段解释

字段

说明

Maxwritten clean

后台编写器因写入过多缓冲区而停止清理扫描的次数。

Buffers clean

后台写入器写入的缓冲区数。

表6 Backends字段解释

字段

说明

Buffers backend fsync

后端必须执行自己的 fsync 调用的次数。

Buffers backend

后端直接写入的缓冲区数。

Database Objects

图3 Database Objects性能指标
表7 Access pattern字段解释

字段

说明

Index scans ratio

索引扫描/序列扫描的比率。

Index scans

每秒索引扫描次数。

Sequential scans

每秒顺序扫描次数。

表8 DML activity字段解释

字段

说明

Tuples inserted

每秒插入的行数。

Tuples updated

每秒更新的行数。

Tuples HOT updated

每秒更新(HOT)。

Tuples deleted

每秒删除的行数。

表9 Vacuum activity字段解释

字段

说明

# Vacuum

每秒手动清理的次数。

# Autovacuum

每秒自动清理的次数。

# Analyze

每秒手动分析的次数。

# Autoanalyze

每秒自动分析的次数。

Details for all databases

图4 Details for all databases性能指标
表10

字段

注释

Database

数据库名称。

#Calls

执行SQL总数。

Runtime

执行SQL总耗时。

Avg runtime

执行SQL平均耗时。

Blocks read

磁盘读取的页面数。

Blocks hit

共享缓冲区命中的页面数。

Blocks dirtied

脏页数。

Blocks written

磁盘写页面数。

Temp Blocks written

磁盘写临时页面数。

I/O time

I/O等待时间。