dstat linux性能测试
一、安装
1.在centos下 可以 yum -y instatll dstat
ubuntu sudo apt-get install dstat
二、使用
1.执行 dstat 命令的时候,默认他会 收集-cpu-、-disk-、-net-、-paging-、-system-的数据,一秒钟收集一次。默认输入 dstat 等于输入了dstat -cdngy 1或dstat -a 1;
如果我们执行 dstat 3 命令的话,他就是3秒收集一次信息。
2.同样的 dstat 也可以收集指定的性能资源。使用 dstat -h 可以看到相应的参数。
Dstat options:
-c, --cpu 显示CPU情况
-C 0,3,total include cpu0, cpu3 and total
-d, --disk 显示磁盘情况
-D total,hda include hda and total
-g, --page enable page stats
-i, --int enable interrupt stats
-I 5,eth2 include int5 and interrupt used by eth2
-l, --load enable load stats
-m, --mem 显示内存情况
-n, --net 显示网络情况
-N eth1,total 可以指定网络接口
-p, --proc enable process stats
-s, --swap 显示swap情况
-S swap1,total 可以指定多个swap
-t, --time enable time counter
-y, --sys enable system stats
--ipc 报告IPC消息队列和信号量的使用情况
--lock enable lock stats
--raw enable raw stats
--tcp enable tcp stats
--udp enable udp stats
--unix enable unix stats
-M stat1,stat2 enable external stats
--mods stat1,stat2
-a, --all 使用-cdngy 缺省的就是这样显示
-f, --full 使用 -C, -D, -I, -N and -S 显示
-v, --vmstat 使用-pmgdsc -D 显示
--integer show integer values
--nocolor disable colors (implies --noupdate)
--noheaders 只显示一次表头以后就不显示了,使用重定向写入文件时很有用
--noupdate disable intermediate updates
--output file 写入到CVS文件中
dstat -cdlmnpsy
在1024×768的屏幕上正好全部显示出来
别名 alias dstat='dstat -cdlmnpsy'
相关推荐
linux C 实现文件誊抄 -main文件
MySQL Community Server 8.0.29(mysql-8.0.29-linux-glibc2.12-x86_64.tar.xz),适用于Linux - Generic (glibc 2.12) (x86, 64-bit), Compressed TAR Archive。
linux ov5640驱动 目录为 linux/drivers/media/i2c/ov5640.c v4l2框架
jdk-8u202-linux-arm64-vfp-hflt.tar.gz适用...Java Development Kit 简称JDK,是一款Java 语言的软件开发工具包。JAVA JDK软件是整个Java的核心,不仅操作很简单,而且JAVA JDK有着实用、稳定、安全、高效的特色功能。
SysLinux is a powerful boot loader and is compatible with a variety of media. Its purpose is to simplify the time to install Linux for the first time and to set up a boot disk for repair or other ...
Linux系统安全学习
inux-LVM管理.doc
linux-airplay-桌面 通过 Airplay 无线共享您的 linux 桌面。 ... 要求 你应该有 : 一个有效的 Java 运行时环境 (jre) ... avahi-browse命令行二进制文件 ...只需在发布页面下载一个二进制文件。...只需运行./airplay.phar ,...
linux 驱动编程参考书 注意是英文的
inux系统 测试CPU 性能shell 脚本 使用了 cat 命令、grep 命令、wc 命令和 sysbench 命令来测试 CPU 的各项指标
linux GDB调试详细用法 以及调试技巧
1inux-turnkeylamp-13.0 nsVpx-10.5.54.9009nxosv9k-7.0.3.I5.2 opene-7.0 openwrt-latest paloalto-6.1.0 pfsense-2.3.3timos-12.0.R6 titanium-NX-0SV.7.3.0.D1.1 usg-6000 Veos-4.14.5F Vfw-1000 vios-15.5.3M ...
linux中连接oracle数据库的客户端相关文件,不需要安装,只需要解压文件将文件路径添加到系统路径中即可。版本号为inux.x64-11.2.0.4.0。
linux环境 nginx-1.18.0 ,目录/root下解压 使用,无需编译代码 #tar -zxvf nginx-green-1.18.0.tar.gz #chmod 777 nginx/* #cd nginx/sbin #./nginx 如果提示无权限,可以手工先创建相关文件和目录
1inux操作系统中互斥与同步控制.pdf
apache1.6.8a,Linux下安装包,完全版,.tar.gz格式,方便部署apache服务器与mysql数据库
1.将此文件解压后,找到build文件下的inux-arm-default/bin下的libgo.so库文件拷贝到开发板存放lib目录下即可; 2.将inux-arm-default/bin下的goahead执行文件 拷贝到开发板自己想放的目录, 如/var/goahead/ 3.将go...
简单好用的烧写工具。