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

数据库级性能指标

General Overview

图1 General Overview
表1 Calls字段解释

字段

说明

Queries per sec

每秒执行查询的次数。

Runtime per sec

每秒内执行查询的总耗时。

Avg runtime

查询的平均耗时。

表2 Blocks字段解释

字段

说明

Total shared buffers hit

命中共享缓冲区的数据量。

Total shared buffers miss

未命中共享缓冲区的数据量。

Database Objects

图2 Database Objects
表3 Access pattern字段解释

字段

说明

Index scans ratio

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

Index scans

每秒索引扫描次数。

Sequential scans

每秒顺序扫描次数。

表4 DML activity字段解释

字段

说明

Tuples inserted

每秒插入的行数。

Tuples updated

每秒更新的行数。

Tuples HOT updated

每秒更新(HOT)的行数。

Tuples deleted

每秒删除的行数。

表5 Vacuum activity字段解释

字段

说明

# Vacuum

每秒手动清理的次数。

# Autovacuum

每秒自动清理的次数。

# Analyze

每秒手动分析的次数。

# Autoanalyze

每秒自动分析的次数。

Details for all databases

图3 Details for all databases
表6 Details for all databases字段解释

字段

注释

Query

执行的SQL。

(Execution) #

执行该SQL次数。

(Execution) Time

执行该SQL总时间。

(Execution) Avg time

执行该SQL平均时间。

(I/O Time) Read

读I/O等待时间。

(I/O Time) Write

写I/O等待时间。

(Blocks) Read

磁盘读页面数。

(Blocks) Hit

共享缓冲区命中页面数。

(Blocks) Dirtied

脏页面数。

(Blocks) Written

磁盘写页面数。

(Temp blocks) Read

磁盘读临时页面数。

(Temp blocks) Write

磁盘写临时页面数。