|
|
测试环境 : RH AS3 .. kernel 2.4.21
我是想测试一下本地硬盘的I/O性能 .. google了一下首选软件都说是iometer ..
下面是软件附带的安装文档.
* Decide which kernel you are using. 2.4.x or 2.6.x, then
cp Makefile-Linux2x Makefile (x = 4 or 6)
Note: make sure to do this for 2.6.x kernel. a "make -f Makefile-26" doesnot work
* Change KERNELSRC if need in Makefile
* If you cross compile it for 2.4.x kernel, you need to change CROSS_COMPILE
* Build kernel module (use root if compile for 2.6.x)
make
* Load kernel module as root
./load
* Build user space test program
make -f Makefile-user
* Run test program
./test
* run "dmesg" to check if reported data are same.
* Unload kernel module
./unload
Notes:
Currently it only supports IA32, IOP321, and IOP331.
Any comment, suggestion, error, please contact mingz at ele dot uri dot edu
我完全不懂交叉编译 .. google了一下找不到相关的解决文档 .. 劳烦各位帮忙看看 ...
[root@nas iomtr_kstat]# cp Makefile-Linux24 Makefile
[root@nas iomtr_kstat]# make KERNELSRC=/usr/src/linux-2.4.21-20.EL/
/opt/crosstool/arm-unknown-linux-gnu/gcc-3.3.1-glibc-2.3.2/bin/arm-unknown-linux-gnu-gcc -O2 -Wall -D__KERNEL__ -DMODULE -I/lib/modules/`uname -r`/build/include -c -o iomtr_kstat.o iomtr_kstat.c
/bin/sh: line 1: /opt/crosstool/arm-unknown-linux-gnu/gcc-3.3.1-glibc-2.3.2/bin/arm-unknown-linux-gnu-gcc: No such file or directory
make: *** [iomtr_kstat.o] Error 127
[root@nas iomtr_kstat]#
TMD都崩溃了 .... |
|