Percona-Tookit工具包之pt-summary
pt-summary //We can executed it without any parameter.
--read-samples //Generate the report from sepcific files.
--save-samples //Create a directory and put the collected information into different files in it.
--sleep //Specify the how long to sleep while collecting samples of vmstat.
--summarize-mounts //Report information of mounted filesystems and disk usage.
--summarize-network //Report information of network.
--summarize-processes //Report information of top processes and vmstat.
[root@zlm2 :: ~]
#pt-summary --save-samples=`date +%Y%m%d`
# Percona Toolkit System Summary Report ######################
Date | -- :: UTC (local TZ: CEST +)
Hostname | zlm2
Uptime | :, users, load average: 0.03, 0.03, 0.05
System | innotek GmbH; VirtualBox; v1. (Other)
Service Tag |
Platform | Linux
Release | CentOS Linux release 7.1. (Core)
Kernel | 3.10.-.el7.x86_64
Architecture | CPU = -bit, OS = -bit
Threading | NPTL 2.17
SELinux | Disabled
Virtualized | VirtualBox
# Processor ##################################################
Processors | physical = , cores = , virtual = , hyperthreading = no
Speeds | 1x2396.
Models | 1xIntel(R) Core(TM) i5-6200U CPU @ .30GHz
Caches | 1x3072 KB
# Memory #####################################################
Total | 993.6M
Free | 588.3M
Used | physical = 250.9M, swap allocated = 1016.0M, swap used = 0.0, virtual = 250.9M
Shared | 6.5M
Buffers | 154.5M
Caches | 606.5M
Dirty | kB
UsedRSS | 296.2M
Swappiness |
DirtyPolicy | ,
DirtyStatus | ,
Locator Size Speed Form Factor Type Type Detail
========= ======== ================= ============= ============= ===========
# Mounted Filesystems ########################################
Filesystem Size Used Type Opts Mountpoint
/dev/mapper/centos-root .4G % xfs rw,relatime,attr2,inode64,noquota /
/dev/sda1 497M % xfs rw,relatime,attr2,inode64,noquota /boot
devtmpfs 488M % devtmpfs rw,nosuid,size=499536k,nr_inodes=,mode= /dev
none 87G % vboxsf rw,nodev,relatime /vagrant
tmpfs 497M % tmpfs rw,nosuid,nodev /dev/shm
tmpfs 497M % tmpfs rw,nosuid,nodev,mode= /dev/shm
tmpfs 497M % tmpfs rw,nosuid,nodev,noexec,mode= /dev/shm
tmpfs 497M % tmpfs rw,nosuid,nodev /sys/fs/cgroup
tmpfs 497M % tmpfs rw,nosuid,nodev,mode= /sys/fs/cgroup
tmpfs 497M % tmpfs rw,nosuid,nodev,noexec,mode= /sys/fs/cgroup
tmpfs 497M % tmpfs rw,nosuid,nodev /run
tmpfs 497M % tmpfs rw,nosuid,nodev,mode= /run
tmpfs 497M % tmpfs rw,nosuid,nodev,noexec,mode= /run
# Disk Schedulers And Queue Size #############################
dm- |
dm- |
sda | [cfq]
sr0 | [cfq]
sr1 | [cfq]
# Disk Partioning ############################################
Device Type Start End Size
============ ==== ========== ========== ==================
/dev/dm- Disk
/dev/dm- Disk
/dev/sda Disk
/dev/sda1 Part
/dev/sda2 Part
# Kernel Inode State #########################################
dentry-state |
file-nr |
inode-nr |
# LVM Volumes ################################################
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root centos -wi-ao---- <.38g
swap centos -wi-ao---- 1016.00m
# LVM Volume Groups ##########################################
VG VSize VFree
centos .41g 40.00m
# RAID Controller ############################################
Controller | No RAID controller detected
# Network Config #############################################
Controller | Intel Corporation 82540EM Gigabit Ethernet Controller (rev )
Controller | Intel Corporation 82540EM Gigabit Ethernet Controller (rev )
FIN Timeout |
Port Range |
# Interface Statistics #######################################
interface rx_bytes rx_packets rx_errors tx_bytes tx_packets tx_errors
========= ========= ========== ========== ========== ========== ==========
lo
enp0s3
enp0s8
# Network Devices ############################################
Device Speed Duplex
========= ========= =========
enp0s3 1000Mb/s Full
enp0s8 1000Mb/s Full
# Network Connections ########################################
Connections from remote IP addresses
192.168.1.1
192.168.1.101
Connections to local IP addresses
192.168.1.101
Connections to top local ports States of connections
CLOSE_WAIT
ESTABLISHED
LISTEN
# Top Processes ##############################################
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
root S 0.0 0.4 :00.68 systemd
root S 0.0 0.0 :00.00 kthreadd
root S 0.0 0.0 :00.27 ksoftirqd/
root - S 0.0 0.0 :00.00 kworker/:0H
root S 0.0 0.0 :00.00 kworker/u2:
root rt S 0.0 0.0 :00.00 migration/
root S 0.0 0.0 :00.00 rcu_bh
root S 0.0 0.0 :00.00 rcuob/
root S 0.0 0.0 :01.07 rcu_sched
# Notable Processes ##########################################
PID OOM COMMAND
- 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 # Memory mamagement ##########################################
Transparent huge pages are enabled.
# The End #################################################### [root@zlm2 :: ~]
#ls -l
total
drwxr-xr-x root root Jul : //This is the newly created directory which contains individual information of system status.
-rw-------. root root Jul anaconda-ks.cfg
-rwxr-xr-x root root Jun : mysqld.sh
drwxr-xr-x root root Jul : sysbench-1.0 [root@zlm2 :: ~]
#cd / [root@zlm2 :: ~/]
#ls -l
total
-rw-r--r-- root root Jul : dmesg_file
-rw-r--r-- root root Jul : dmidecode
-rw-r--r-- root root Jul : ip
-rw-r--r-- root root Jul : lspci_file
-rw-r--r-- root root Jul : lvs
-rw-r--r-- root root Jul : memory
-rw-r--r-- root root Jul : mounted_fs
-rw-r--r-- root root Jul : netstat
-rw-r--r-- root root Jul : network_devices
-rw-r--r-- root root Jul : notable_procs
-rw-r--r-- root root Jul : partitioning
-rw-r--r-- root root Jul : proc_cpuinfo_copy
-rw-r--r-- root root Jul : processes
-rw-r--r-- root root Jul : summary
-rw-r--r-- root root Jul : sysctl
-rw-r--r-- root root Jul : uptime
-rw-r--r-- root root Jul : vgs
-rw-r--r-- root root Jul : vmstat [root@zlm2 :: ~/]
#cat memory //We can get detail information of memory usage in the collected file "memory".
total used free shared buff/cache available
Mem:
Swap:
MemTotal: kB
MemFree: kB
MemAvailable: kB
Buffers: kB
Cached: kB
SwapCached: kB
Active: kB
Inactive: kB
Active(anon): kB
Inactive(anon): kB
Active(file): kB
Inactive(file): kB
Unevictable: kB
Mlocked: kB
SwapTotal: kB
SwapFree: kB
Dirty: kB
Writeback: kB
AnonPages: kB
Mapped: kB
Shmem: kB
Slab: kB
SReclaimable: kB
SUnreclaim: kB
KernelStack: kB
PageTables: kB
NFS_Unstable: kB
Bounce: kB
WritebackTmp: kB
CommitLimit: kB
Committed_AS: kB
VmallocTotal: kB
VmallocUsed: kB
VmallocChunk: kB
HardwareCorrupted: kB
AnonHugePages: kB
HugePages_Total:
HugePages_Free:
HugePages_Rsvd:
HugePages_Surp:
Hugepagesize: kB
DirectMap4k: kB
DirectMap2M: kB
- pt-summary can work well in many Unix systems(based on the inside-command of collecting data) without any complex parameters.
- pt-summary is only a tool of generating reports of system information instead of tuning and diagnosing performance.
- We can deploy pt-summary in crontab and make it collecting data regularly as we need for future diagnosis.
Percona-Tookit工具包之pt-summary的更多相关文章
- [访问系统] Api_Win32_Mac类工具包 (转载)
点击下载 Api_Win32_Mac.zip using System; using System.Collections.Generic; using System.Linq; using Syst ...
- Linux后台开发工具箱
https://files-cdn.cnblogs.com/files/aquester/Linux后台开发工具箱.pdf 目录 目录 1 1. 前言 3 2. 脚本类工具 3 2.1. sed命令- ...
- Mysql: pt-table-checksum 和 pt-table-sync 检查主从一致性,实验过程
一.安装 percona 包 1.安装仓库的包 https://www.percona.com/doc/percona-repo-config/yum-repo.html sudo yum insta ...
- Linux后台开发工具箱-葵花宝典
Linux后台开发工具箱-葵花宝典 一见 2016/11/4 目录 目录 1 1. 前言 4 2. 脚本类工具 4 2.1. 双引号和单引号 4 2.2. 取脚本完整文件路径 5 2.3. 环境变量和 ...
- 推荐几款MySQL相关工具
前言: 随着互联网技术的不断发展, MySQL 相关生态也越来越完善,越来越多的工具涌现出来.一些公司或个人纷纷开源出一些不错的工具,本篇文章主要介绍几款 MySQL 相关实用工具.提醒下,这里并不介 ...
- 【C#】分享一个弹出容器层,像右键菜单那样召即来挥则去
适用于:.net2.0+ Winform项目 ------------------201508261813更新(源码有更新.Demo未更新)------------------ 重新绘制调整大小手柄( ...
- winApi
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.R ...
- C#中可直接调用WIN32的API函数--USER32.DLL
Win32的API函数可以直接在C#中直接调用,在做WinForm时还是很有帮助的.有时候直接调用Win32的API,可以很高效的实现想要的效果. using System; using System ...
- Winform API "user32.dll"中的函数
命名空间:System.Runtime.InteropServices /// <summary> /// 该函数检索一指定窗口的客户区域或整个屏幕的显示设备上下文环境的句柄,以后可以在G ...
- c# BlowFish 高速 对称加密
BlowFish 高速 对称加密 string key = "this is my key"; BlowFish algo = new BlowFish(key); string ...
随机推荐
- vue项目里的日期格式化(摘录)
export function formatDate (date, fmt) { if (/(y+)/.test(fmt)) { fmt = fmt.replace(RegExp.$1, (date. ...
- 二进制安装mysql5.6
安装依赖包 yum install -y libaio yum install -y perl perl-devel 解压 mkdir /opt/mysql mv mysql-5.6 ...
- CRSF在ASP.NET CORE MVC 的处理方式
https://www.cnblogs.com/catcher1994/p/6720212.html
- MYSQL 之SET GLOBAL innodb_buffer_pool_size =n
工作遇到一个情况是索引相同的情况下,mysql服务在linux上运行很快,在windows服务器上运行很慢,版本是V5.7以后得版本,同事查找了下说应该设置 SET GLOBAL innodb_buf ...
- 前端js限制上传文件类型及大小(1)
<html> <head> <meta http-equiv="Content-Type" content="text/html; char ...
- jQuery 效率提升建议
jQuery简洁通用的方法集把编码者从繁重的工作中解脱出来,也拉低了进入javascript的门槛,初学者对浏览器兼容性一无所知的情况下,几行代码就可以写出超炫的特效.网上有一篇文章转载比较泛滥,已经 ...
- 整个trick
数据输入方面:1.image pyramid 图像金字塔.目前代码里是先选取一个scale,然后在每个GPU上按照scale读图片,相应的gt也更改."scales":[440, ...
- C# 声明bool变量
与现实世界不同,在编程的世界中,每一件事情要么黑,要么白:要么对,要么错:要么是真的,要么是假的.例如,假定你创建一个名为x的整数变量,把值99赋给x,然后问:“x中包含了值99吗?”答案显然是肯定的 ...
- java基础 File与递归练习 使用文件过滤器筛选将指定文件夹下的小于200K的小文件获取并打印按层次打印(包括所有子文件夹的文件) 多层文件夹情况统计文件和文件夹的数量 统计已知类型的数量 未知类型的数量
package com.swift.kuozhan; import java.io.File; import java.io.FileFilter; /*使用文件过滤器筛选将指定文件夹下的小于200K ...
- JS实现Promise原理
promise是用来解决Js中的异步问题的,js中所有的异步可从callback → promise → generator + co = async + await 其实所有的都是callback的 ...