pt-summary的使用

简介: pt-summary打印出来的信息包括:CPU、内存、硬盘、网卡等信息,还包括文件系统、磁盘调度和队列大小、LVM、RAID、网络链接信息、netstat 的统计,以及前10的负载占用信息和vmstat信息。

pt-summary

打印出来的信息包括:CPU、内存、硬盘、网卡等信息,还包括文件系统、磁盘调度和队列大小、LVM、RAID、网络链接信息、netstat 的统计,以及前10的负载占用信息和vmstat信息。

[root@781c38071bbd ~]# pt-summary
# Percona Toolkit System Summary Report ######################
        Date | 2022-06-23 02:22:52 UTC (local TZ: UTC +0000)
    Hostname | 781c38071bbd
      Uptime | 22 days, 57 min,  0 users,  load average: 0.43, 0.51, 0.41
    Platform | Linux
     Release | CentOS Linux release 7.9.2009 (Core)
      Kernel | 3.10.0-957.el7.x86_64
Architecture | CPU = 64-bit, OS = 64-bit
   Threading | NPTL 2.17
     SELinux | No SELinux detected
 Virtualized | VMWare
# Processor ##################################################
  Processors | physical = 1, cores = 4, virtual = 4, hyperthreading = no
      Speeds | 4x2199.998
      Models | 4xIntel Xeon Processor (Cascadelake)
      Caches | 4x16384 KB
# Memory #####################################################
       Total | 7.6G
        Free | 332.9M
        Used | physical = 2.3G, swap allocated = 0.0, swap used = 0.0, virtual = 2.3G
      Shared | 431.9M
     Buffers | 2.1M
      Caches | 5.0G
       Dirty | 96 kB
     UsedRSS | 878.1M
  Swappiness | 30
 DirtyPolicy | 30, 10
 DirtyStatus | 0, 0
# Mounted Filesystems ########################################
  Filesystem  Size Used Type    Opts                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Mountpoint
  /dev/vda1   144G  30% xfs     rw,relatime,attr2,inode64,noquota                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       /etc/hosts
  /dev/vda1   144G  30% xfs     rw,relatime,attr2,inode64,noquota                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       /etc/hosts
  /dev/vda1   144G  30% xfs     rw,relatime,attr2,inode64,noquota                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       /etc/hosts
  overlay     144G  30% overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/J37EJRKARBEGC4RMVSSJ43ETWS:/var/lib/docker/overlay2/l/43QMHPVUM2PBROJW2PWOE2DTDF:/var/lib/docker/overlay2/l/PIL3XSUUJKXAZH36DLCJVKUQ7L:/var/lib/docker/overlay2/l/4O6VBTAKMVPJOJFL6KX3WFD6ZL:/var/lib/docker/overlay2/l/4GMDX4S3VDI2DA7Q2MODQ7DFT4:/var/lib/docker/overlay2/l/X2AFR4LCW5UW3UHH2U6LBJOKZB:/var/lib/docker/overlay2/l/FEYMSNDBRKDTVOOEXO3I45YUJ4:/var/lib/docker/overlay2/l/2PASYDEURHFDKWWHZJWLH6I2SX:/var/lib/docker/overlay2/l/AGMAWV5J5Y2RBPGFIB2NFHYEYF:/var/lib/docker/overlay2/l/3KWTZVHNU65VRR3DAEGPL3YKCC:/var/lib/docker/overlay2/l/RLU4VOTHGGNDOM4ZPHO5DGUI6C:/var/lib/docker/overlay2/l/T5TUW6ZIXBMWTW27Z74LRCRBLE:/var/lib/docker/overlay2/l/QLPXHZ3KXSD2ZPID3AZPLAV7KH:/var/lib/docker/overlay2/l/6HI36M2NJJYQW3OKMAPWPKFHAO,upperdir=/var/lib/docker/overlay2/51583fc356a49c722764b36bbfa72b43f26d6c761b50e2f40713c41beca2eadf/diff,workdir=/var/lib/docker/overlay2/51583fc356a49c722764b36bbfa72b43f26d6c761b50e2f40713c41beca2eadf/work /
  shm          64M   0% tmpfs   rw,nosuid,nodev,noexec,relatime,size=65536k                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             /dev/shm
  tmpfs       3.9G   0% tmpfs   rw,nosuid,size=65536k,mode=755                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          /sys/fs/cgroup
  tmpfs       3.9G   0% tmpfs   rw,nosuid,nodev,mode=755                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                /sys/fs/cgroup
  tmpfs       3.9G   0% tmpfs   rw,nosuid,nodev,relatime,size=797300k,mode=700,uid=42,gid=42                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            /sys/fs/cgroup
  tmpfs       3.9G   0% tmpfs   ro,nosuid,nodev,noexec,mode=755                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         /sys/fs/cgroup
  tmpfs       3.9G   1% tmpfs   rw,nosuid,size=65536k,mode=755                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          /run
  tmpfs       3.9G   1% tmpfs   rw,nosuid,nodev,mode=755                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                /run
  tmpfs       3.9G   1% tmpfs   rw,nosuid,nodev,relatime,size=797300k,mode=700,uid=42,gid=42                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            /run
  tmpfs       3.9G   1% tmpfs   ro,nosuid,nodev,noexec,mode=755                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         /run
  tmpfs        64M   0% tmpfs   rw,nosuid,size=65536k,mode=755                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          /dev
  tmpfs        64M   0% tmpfs   rw,nosuid,nodev,mode=755                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                /dev
  tmpfs        64M   0% tmpfs   rw,nosuid,nodev,relatime,size=797300k,mode=700,uid=42,gid=42                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            /dev
  tmpfs        64M   0% tmpfs   ro,nosuid,nodev,noexec,mode=755                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         /dev
  tmpfs       779M   1% tmpfs   rw,nosuid,size=65536k,mode=755                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          /run/user/42
  tmpfs       779M   1% tmpfs   rw,nosuid,nodev,mode=755                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                /run/user/42
  tmpfs       779M   1% tmpfs   rw,nosuid,nodev,relatime,size=797300k,mode=700,uid=42,gid=42                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            /run/user/42
  tmpfs       779M   1% tmpfs   ro,nosuid,nodev,noexec,mode=755                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         /run/user/42
# Disk Schedulers And Queue Size #############################
         sr0 | [deadline] 128
         sr1 | [deadline] 128
         sr2 | [deadline] 128
         vda | [mq-deadline] 256
# Disk Partioning ############################################
Device       Type      Start        End               Size
============ ==== ========== ========== ==================
/dev/vda1    Part   12584960  314572766       154617756672
# Kernel Inode State #########################################
dentry-state | 148098   110976  45      0       0       0
     file-nr | 11200    0       786252
    inode-nr | 85372    8153
# LVM Volumes ################################################
Unable to collect information
# LVM Volume Groups ##########################################
Unable to collect information
# RAID Controller ############################################
  Controller | No RAID controller detected
# Network Config #############################################
# Interface Statistics #######################################
  interface  rx_bytes rx_packets  rx_errors   tx_bytes tx_packets  tx_errors
  ========= ========= ========== ========== ========== ========== ==========
  lo       2000000000    1750000          0 2000000000    1750000          0
  eth0@if14  100000000      70000          0  150000000      60000          0
# Network Connections ########################################
  Connections from remote IP addresses
    172.17.0.3          1
  Connections to local IP addresses
    172.17.0.2          1
  Connections to top 10 local ports
    3306                1
  States of connections
    ESTABLISHED         1
    LISTEN              5
# Top Processes ##############################################
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 12155 root      20   0  161968   2084   1540 R   6.7  0.0   0:00.01 top
     1 root      20   0  190948   3816   2484 S   0.0  0.0   0:13.28 systemd
    20 root      20   0   39192   6560   6116 S   0.0  0.1   0:05.81 systemd-j+
    32 root      20   0   43892   1960   1300 S   0.0  0.0   0:00.90 systemd-u+
    55 rtkit     21   1  198784   1792   1428 S   0.0  0.0   0:22.58 rtkit-dae+
    56 root      20   0  292692   6032   3196 S   0.0  0.1   0:00.74 accounts-+
    57 dbus      20   0   58908   3028   1832 S   0.0  0.0   0:03.80 dbus-daem+
    63 root      20   0  370544   8084   6252 S   0.0  0.1   0:35.30 NetworkMa+
    64 root      20   0  523460   6640   5048 S   0.0  0.1   0:04.17 udisksd
# Notable Processes ##########################################
  PID    OOM    COMMAND
  147    -17    sshd
# Memory mamagement ##########################################
Transparent huge pages are enabled.
# The End ####################################################
相关文章
|
2月前
|
机器学习/深度学习 分布式计算 Hadoop
summary.typeQuotaInfos.typeQuotaInfo[3].type
summary.typeQuotaInfos.typeQuotaInfo[3].type
36 0
|
JavaScript 前端开发 API
正方项目—— summary
正方项目—— summary
54 0
|
网络安全 Python
pwnable passcode 10pt
题目在 ssh passcode@pwnable.kr -p2222 (pw:guest) 先看passcode.c: #include #include void login(){ int ...
889 0
|
监控 关系型数据库 MySQL
pt-ioprofile
pt-ioprofile是属于percona-toolkit中的一个工具,用strace和lsof来查监视进程的IO情况并打印表文件和活动IO,默认监视mysqld进程30秒 警告和风险: pt-ioprofile可能会冻结服务,crash进程,是进程变得更糟糕,或者使进程休眠。
1739 0
|
前端开发
|
JavaScript 前端开发 Ruby
|
JavaScript Ruby 前端开发
|
前端开发 Ruby
|
JavaScript 前端开发 Ruby