LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1412|回复: 2

安装IOmeter遇见的问题.

[复制链接]
发表于 2005-11-11 18:42:10 | 显示全部楼层 |阅读模式
测试环境 : 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都崩溃了 ....
发表于 2005-11-12 06:13:00 | 显示全部楼层
If you cross compile it for 2.4.x kernel, you need to change CROSS_COMPILE

你是cross compile?如果不是,为什么你的gcc是用  /opt/crosstool/arm-unknown-linux-gnu/gcc-3.3.1-glibc-2.3.2/bin/arm-unknown-linux-gnu-gcc?
回复 支持 反对

使用道具 举报

发表于 2005-12-20 18:02:20 | 显示全部楼层
那要怎么才能安装呢?我也想知道
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表