linux performance tool

最右边三个值分别表示系统1分钟,5分钟,15 分钟系统负载的移动的平均值.

linux performance tool

Dmesg | tail 命令显示最新的10个系统消息.

linux performance tool

如果没有vmstat命令,请安装sysstat

Vmstat 1 表示输出1s内的统计结果,vmstat的全称是virtual memory stat.

r:等待cpu的进程数,我的系统上cpu64个,如果这一列显示的数字大于64,说明cpu已经饱和

free:表示空闲的内存,这个用free –m 命令可以更清楚的显示.

Siso。表示是swap-insswap-outs的内存。如果不为零说明目前内存不足了.

Us:user time

Sy:system time

Id:idle time

Wa:wait IO

St:steal time

从这里可以知道,只要将uscs相加就可以知道cpu是否处于忙碌.本例中可以看到cpu基本都在等待IO.

linux performance tool

这个命令可以看到每个cpu使用的百分比。例如我这里有64cpu,基本都处于idle状态.

linux performance tool

Pidstat 类似于top。从本例中可以看到当前主要是kubelet占用cpu

linux performance tool

这个命令可以弄清楚快设备的状况,包括工资负载和处理能力

r/s,w/s,rkb/s,wkb/s:分别表示设备每秒读次数,写次数,读KB数,写的KB.

Avgqu-sz:分配给设备的平均请求数,如果大于1,说明这个设备已经饱和.

Util:设备的使用率

应用的io往往是异步和写缓冲的,所以被阻塞不一定有问题.

linux performance tool

这个命令能显示系统有内存的使用状况.

linux performance tool

这个命令可以坚持网络流量的工作负载:rxkB/s,txkB/s


linux performance tool

这个命令查询TCP指标的汇总

Actives/s :本地每秒创建的TCP的连接数

Passive/s:远程每秒创建TCP的连接数

Retrains/s:每秒TCP重传的次数.

linux performance tool

Iotop 类似于top。可以看到个个进程io的情况.

linux performance tool

Pstack 查看程序的进程栈





相关文章: