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工具的详细使用