详解linux下使用IOMETER测试磁盘IO性能

上传人:公**** 文档编号:547690741 上传时间:2022-09-08 格式:DOCX 页数:9 大小:171.37KB
返回 下载 相关 举报
详解linux下使用IOMETER测试磁盘IO性能_第1页
第1页 / 共9页
详解linux下使用IOMETER测试磁盘IO性能_第2页
第2页 / 共9页
详解linux下使用IOMETER测试磁盘IO性能_第3页
第3页 / 共9页
详解linux下使用IOMETER测试磁盘IO性能_第4页
第4页 / 共9页
详解linux下使用IOMETER测试磁盘IO性能_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《详解linux下使用IOMETER测试磁盘IO性能》由会员分享,可在线阅读,更多相关《详解linux下使用IOMETER测试磁盘IO性能(9页珍藏版)》请在金锄头文库上搜索。

1、详解linux下使用IOMETER测试磁盘IO 性能2012年06月18日/ Linux平台/评论数5 /浏览:8587 Views前面有分享了 windows下如何使用IOMETER来测试网络磁盘的IO性能,今天分 享一下linux下如何使用IOMETER来测试网络磁盘的性能。在linux下和window 下工作模式有些区别:在linux上,iometer包括两部分:IOmeter主程序和执 行代理,你可以在windows上安装运行iometer主程序,在linux上安装运行 iometer执行代理,主程序就会把读写配置传递给执行代理来执行。首先:在linux下安装iomter,以我的red

2、hat 6.1 64位的操作系统为例,到 iometer 主页上下载版本:iometer-2008-06-22-rc2.src.tgz 上传到 linux 中进 行如下操作:1. rootDELL-1 tmp# tar zxvf iometer-2008-06-22-rc2.src.tgz 解压2. rootDELL-1 tmp# cd iometer-2008-06-22-rc2/src 进入 iometer src 文件下有多个 Makefile文件找到自己需要的文件版本3. rootDELL-1 src# make -f Makefile-Linux.x86_64 dynamo/我的系统

3、是 64 位所以选 择这个文件安装编译可能上面的安装编译会出现make: * Pulsar.o Error 1的错误,请进入linux 64 位编译 iometer 提示 make: * Pulsar.o Error 1错误的解决方 法查看解决方法。其次:在windows下安装IONETER主程序,注意版本要和linux下的一样,我用 的是:iometer-2008-06-22-rc2.win.x86_64.zip最后:如何在linux运行iometer?先在windows打开iometer主程序,再在linux下进入刚才的安装目录:cd /tmp/iometer-2008-06-22-rc2

4、/src/运行如下命令:1. rootDELL-1 src# ./dynamo -i 172.18.30.7 -m 172.18.30.17说明:-i后面用的是windows端的ip, -m后面使用的是linux的IP。 运行如上命令可以出现以下错误:1. rootDELL-1 src# ./dynamo -i 172.18.30.7 -m 172.18.30.172. = = = ERROR: Getting host name for DELL-1 failed.3. PortTCP:Create() in IOPortTCP.cpp line 2384. errno = 115. * C

5、ould not create a TCP/IP Port. exiting 原因:当网络环境没有使用DNS会造成hostname和IP无法对应上。解决方法:在linux下进入/etc配置hosts文件下的hostname如下:我的linux 命名为DELL-1所以在hosts文件的127.0.0.1后添加DELL-1。1. rootDELL-1 etc# cat hosts2. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 DELL1一切问题都解决了,正常情况如下:1. rootDEL

6、L-1 src# ./dynamo -i 172.18.30.7 -m 172.18.30.172. Fail to open kstat device file. You can ignore this warning3. unless you are running dynamo on XSCALE CPU.4.4. Command line parameter(s):5. Looking for Iometer on 172.18.30.77.6. Sending login request.7. DELL-18. 172.18.30.17 (port 38250)9. Successf

7、ul PortTCP:Connect10. - port name: 172.18.30.713.11. * If dynamo and iometer hangs here, please make sure12. * you use a correct -m that13. * can ping from iometer machine. use IP if need.14. Login accepted.15. Reporting drive information.16. Set_Sizes: Open on /sys/iobw.tst failed (error No such fi

8、le or directory).17. Set_Sizes: Open on /proc/sys/fs/binfmt_misc/iobw.tst failed (error Permission denied).18. Set_Sizes: Open on /var/lib/nfs/rpc_pipefs/iobw.tst failed (error Permission denied).19. Physical drives (raw devices).20. Reporting TCP network information.21. done.还有一个问题要注意的是先要在windows下打

9、开iometer主程序,再在linux 下运行上面的命令,否则可能出现问题。最后可以在windows上的iometer看到 DELL-1的所有磁盘映射如下图:这样就可以直接在windows下对linux磁盘进行测试,测试方法和windows方法 一致见手把手教你如何使用IOMETER测试工具测试存储。详解linux下使用IOMETER测试磁盘IO性能2012年06月18日/ Linux平台/评论数5 /浏览:8588 Views前面有分享了 windows下如何使用IOMETER来测试网络磁盘的IO性能,今天分 享一下linux下如何使用IOMETER来测试网络磁盘的性能。在linux下和wi

10、ndow 下工作模式有些区别:在linux上,iometer包括两部分:IOmeter主程序和执 行代理,你可以在windows上安装运行iometer主程序,在linux上安装运行 iometer执行代理,主程序就会把读写配置传递给执行代理来执行。首先:在linux下安装iomter,以我的redhat 6.1 64位的操作系统为例,到 iometer 主页上下载版本:iometer-2008-06-22-rc2.src.tgz 上传到 linux 中进 行如下操作:1. rootDELL-1 tmp# tar zxvf iometer-2008-06-22-rc2.src.tgz 解压2.

11、 rootDELL-1 tmp# cd iometer-2008-06-22-rc2/src 进入 iometer src 文件下有多个 Makefile文件找到自己需要的文件版本3. rootDELL-1 src# make -f Makefile-Linux.x86_64 dynamo/我的系统是 64 位所以选 择这个文件安装编译可能上面的安装编译会出现make: * Pulsar.o Error 1的错误,请进入linux 64 位编译 iometer 提示 make: * Pulsar.o Error 1错误的解决方 法查看解决方法。其次:在windows下安装IONETER主程序,

12、注意版本要和linux下的一样,我用 的是:iometer-2008-06-22-rc2.win.x86_64.zip最后:如何在linux运行iometer?先在windows打开iometer主程序,再在linux下进入刚才的安装目录:cd /tmp/iometer-2008-06-22-rc2/src/运行如下命令:1. rootDELL-1 src# ./dynamo -i 172.18.30.7 -m 172.18.30.17说明:-i后面用的是windows端的ip, -m后面使用的是linux的IP。 运行如上命令可以出现以下错误:1. rootDELL-1 src# ./dyn

13、amo -i 172.18.30.7 -m 172.18.30.172. = = = ERROR: Getting host name for DELL-1 failed.3. PortTCP:Create() in IOPortTCP.cpp line 2384. errno = 115. * Could not create a TCP/IP Port. exiting原因:当网络环境没有使用DNS会造成hostname和IP无法对应上。解决方法:在linux下进入/etc配置hosts文件下的hostname如下:我的linux 命名为DELL-1所以在hosts文件的127.0.0.1

14、后添加DELL-1。1. rootDELL-1 etc# cat hosts2. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 DELL1一切问题都解决了,正常情况如下:1. rootDELL-1 src# ./dynamo -i 172.18.30.7 -m 172.18.30.172. Fail to open kstat device file. You can ignore this warning3. unless you are running dynamo on XSCAL

15、E CPU.4.4. Command line parameter(s):5. Looking for Iometer on 172.18.30.77.6. Sending login request.7. DELL-18. 172.18.30.17 (port 38250)9. Successful PortTCP:Connect10. - port name: 172.18.30.713.11. * If dynamo and iometer hangs here, please make sure12. * you use a correct -m that13. * can ping from iometer machine. use IP if need.14. Login accepted.15. Reporting drive information.16. Set_Sizes: Open on /sys/iobw.tst failed (err

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 学术论文 > 其它学术论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号