pt-summary

[root@vm1 mysql3306]# pt-summary --help
Usage: pt-summary

For more information, 'man pt-summary' or 'perldoc /usr/local/bin/pt-summary'.

Command line options:

  --config          Read this comma-separated list of config files.
  --help            Print help and exit.
  --read-samples    Create a report from the files in this directory.
  --save-samples    Save the collected data in this directory.
  --sleep           How long to sleep when gathering samples from vmstat.
  --summarize-mounts
                    Report on mounted filesystems and disk usage.
  --summarize-network
                    Report on network controllers and configuration.
  --summarize-processes
                    Report on top processes and C<vmstat> output.
  --version         Print tool's version and exit.

Options and values after processing arguments:

  --config                         (No value)
  --help                           TRUE
  --read-samples                   (No value)
  --save-samples                   (No value)
  --sleep                          5
  --summarize-mounts               TRUE
  --summarize-network              TRUE
  --summarize-processes            TRUE
  --version                        FALSE



[root@vm1 mysql3306]# pt-summary
# Percona Toolkit System Summary Report ######################
        Date | 2016-05-09 05:27:55 UTC (local TZ: CST +0800)
    Hostname | vm1
      Uptime | 24 days,  1:44,  3 users,  load average: 0.09, 0.09, 0.07
      System | innotek GmbH; VirtualBox; v1.2 (Other)
 Service Tag | 0
    Platform | Linux
     Release | CentOS release 6.5 (Final)
      Kernel | 2.6.32-573.22.1.el6.x86_64
Architecture | CPU = 64-bit, OS = 64-bit
   Threading | NPTL 2.12
    Compiler | GNU CC version 4.4.7 20120313 (Red Hat 4.4.7-16).
     SELinux | Disabled
 Virtualized | VirtualBox
# Processor ##################################################
  Processors | physical = 1, cores = 1, virtual = 1, hyperthreading = no
      Speeds | 1x3592.082
      Models | 1xIntel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz
      Caches | 1x6144 KB
# Memory #####################################################
       Total | 490.3M
        Free | 7.8M
        Used | physical = 482.5M, swap allocated = 1024.0M, swap used = 472.1M, virtual = 954.6M
     Buffers | 62.0M
      Caches | 58.1M
       Dirty | 2656 kB
     UsedRSS | 372.3M
  Swappiness | 60
 DirtyPolicy | 20, 10
 DirtyStatus | 0, 0
  Locator   Size     Speed             Form Factor   Type          Type Detail
  ========= ======== ================= ============= ============= ===========
# Mounted Filesystems ########################################
  Filesystem  Size Used Type  Opts Mountpoint
  /dev/sda1   190M  30% ext4  rw   /boot
  /dev/sda3    19G  65% ext4  rw   /
  tmpfs       246M   0% tmpfs rw   /dev/shm
# Disk Schedulers And Queue Size #############################
         sda | [cfq] 128
         sdb | [cfq] 128
         sr0 | [cfq] 128
# Disk Partioning ############################################
Device       Type      Start        End               Size
============ ==== ========== ========== ==================
/dev/sda     Disk                              21474836480
/dev/sda1    Part          1         26          205632000
/dev/sda2    Part         26        157         1077511680
/dev/sda3    Part        157       2611        20184837120
/dev/sdb     Disk                               1073741824
/dev/sdb1    Part          1        130         1061061120
# Kernel Inode State #########################################
dentry-state | 10698    4612    45      0       0       0
     file-nr | 1536     0       46805
    inode-nr | 15191    5244
# LVM Volumes ################################################
Unable to collect information
# LVM Volume Groups ##########################################
Unable to collect information
# RAID Controller ############################################
  Controller | No RAID controller detected
# Network Config #############################################
  Controller | Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
 FIN Timeout | 60
  Port Range | 61000
# Interface Statistics #######################################
  interface  rx_bytes rx_packets  rx_errors   tx_bytes tx_packets  tx_errors
  ========= ========= ========== ========== ========== ========== ==========
  lo       3000000000   15000000          0 3000000000   15000000          0
  eth0      300000000    2250000          0 1250000000   15000000          0
# Network Devices ############################################
  Device    Speed     Duplex
  ========= ========= =========
  eth0       1000Mb/s   Full      
# Network Connections ########################################
  Connections from remote IP addresses
    10.0.0.1            2
    10.0.0.11           4
  Connections to local IP addresses
    10.0.0.11           6
  Connections to top 10 local ports
    22                  2
    8649                4
  States of connections
    ESTABLISHED         2
    LISTEN             15
    TIME_WAIT           4
# Top Processes ##############################################
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  353 root      20   0     0    0    0 S  4.0  0.0  94:04.61 flush-8:0
    1 root      20   0 19356 1092  880 S  0.0  0.2   0:00.50 init
    2 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kthreadd
    3 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 migration/0
    4 root      20   0     0    0    0 S  0.0  0.0   0:24.94 ksoftirqd/0
    5 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 stopper/0
    6 root      RT   0     0    0    0 S  0.0  0.0   0:05.57 watchdog/0
    7 root      20   0     0    0    0 S  0.0  0.0  10:48.39 events/0
    8 root      20   0     0    0    0 S  0.0  0.0   0:00.00 events/0
# Notable Processes ##########################################
  PID    OOM    COMMAND
 1450    -17    sshd
# Simplified and fuzzy rounded vmstat (wait please) ##########
  procs  ---swap-- -----io---- ---system---- --------cpu--------
   r  b    si   so    bi    bo     ir     cs  us  sy  il  wa  st
   1  0     1    1    20   175     10      1   0   1  99   0   0
   0  0     0    0     0     0    350    800   6   9  85   0   0
   0  0     0    0     0     0    125     80   0   0 100   0   0
   0  0     0    0     0     0     50     80   0   0 100   0   0
   0  0     0    0     0     0     50     80   0   0 100   0   0
# The End ####################################################

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26735168/viewspace-2096336/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26735168/viewspace-2096336/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值