sysstat工具的制作和使用

 1、sar,iostat,pidstat等工具

1.1、下载路径

http://sebastien.godard.pagesperso-orange.fr/download.html

1.2、交叉编译

tar -xvf sysstat-11.4.10.tar.xz
cd sysstat-11.4.10/
CC=arm-linux-gcc ./configure --host=arm --cache-file=/home/dyh/sysstat-11.4.10/tmp/cache --prefix=/home/dyh/sysstat-11.4.10/tmp/out --exec-prefix=/home/dyh/sysstat-11.4.10/tmp/exe
#CC=/home/dyh/toolchain/bin/arm-linux-gcc 设置交叉编译工具(可以通过export设置环境变量缩短路径),这个必须放到./configure 之前,且CC=/home不能含有空格
#–host=arm 设置主机类型,这个必须设置,否则会出现configure 错误
#–cache-file=/home/dyh/sysstat-11.4.10/tmp/cache 设置缓存文件
#–prefix=/home/dyh/sysstat-11.4.10/tmp/out 设置输出文件目录,需使用绝对路径
#–exec-prefix=/home/dyh//sysstat-11.4.10/tmp/exe 设置可执行文件目录,需使用绝对路径
make
#需要是,需要su切换到root权限
make install

1.3、文件生成

在–prefix设置的tmp目录下

1.4、iostat的使用

1.5、pidstat使用过程中,在嵌入式环境中会无法输出结果信息

1.5.1、先查看/proc/<pid>/io节点是否存在

1.5.2、假如不存在,打开一下内核编译选项,重新编译内核

1.6、sysstat工具的详细使用

https://linux.cn/article-4028-1.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值