【openGauss服务器端工具的使用】
-
gs_checkperf
openGauss 不仅提供了gs_checkperf工具来帮助用户了解openGauss的负载情况。
- 使用数据库安装用户登录服务器,执行如下命令进行查看数据库性能:
简要信息展示:
详细信息展示[omm@opengauss03 ~]$ gs_checkperf -i PMK Cluster statistics information: Host CPU busy time ratio : 1.70 % MPPDB CPU time % in busy time : 91.66 % Shared Buffer Hit ratio : 99.80 % In-memory sort ratio : 0 Physical Reads : 431 Physical Writes : 455 DB size : 34 MB Total Physical writes : 455 Active SQL count : 4 Session count : 6
[omm@opengauss03 ~]$ gs_checkperf -i PMK --detail Cluster statistics information: Host CPU usage rate: Host total CPU time : 33179390.000 Jiffies Host CPU busy time : 568840.000 Jiffies Host CPU iowait time : 18830.000 Jiffies Host CPU busy time ratio : 1.71 % Host CPU iowait time ratio : .06 % MPPDB CPU usage rate: MPPDB CPU time % in busy time : 89.78 % MPPDB CPU time % in total time : 1.54 % Shared buffer hit rate: Shared Buffer Reads : 451 Shared Buffer Hits : 178772 Shared Buffer Hit ratio : 99.75 % In memory sort rate: In-memory sort count : 0 In-disk sort count : 0 In-memory sort ratio : 0 I/O usage: Number of files
- 使用数据库安装用户登录服务器,执行如下命令进行查看数据库性能: