免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7997 | 回复: 9
打印 上一主题 下一主题

[FastDFS] 求助,在测试FastDFS性能的时候遇到问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-10 15:38 |只看该作者 |倒序浏览
使用test文件夹下的测试代码,编译通过,运行测试的时候提示
file: test_upload.c, line: 328, getFileContent 5K fail, errno: 2, error info: No such file or directory
file: test_upload.c, line: 328, getFileContent 5K fail, errno: 2, error info: No such file or directory
file: test_upload.c, line: 328, getFileContent 5K fail, errno: 2, error info: No such file or directory
file: test_upload.c, line: 328, getFileContent 5K fail, errno: 2, error info: No such file or directory
file: test_upload.c, line: 328, getFileContent 5K fail, errno: 2, error info: No such file or directory
file: test_upload.c, line: 328, getFileContent 5K fail, errno: 2, error info: No such file or directory
file: test_upload.c, line: 328, getFileContent 5K fail, errno: 2, error info: No such file or directory
file: test_upload.c, line: 328, getFileContent 5K fail, errno: 2, error info: No such file or directory
file: test_upload.c, line: 328, getFileContent 5K fail, errno: 2, error info: No such file or directory
file: test_upload.c, line: 328, getFileContent 5K fail, errno: 2, error info: No such file or directory

请老大帮忙看看,是不是哪里的配置文件有问题

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
2 [报告]
发表于 2009-08-10 17:35 |只看该作者

回复 #1 chhxo 的帖子

本帖最后由 happy_fish100 于 2010-11-19 09:31 编辑

当初写测试脚本的主要目的就是自己用用。说实话,测试脚本比较难用。
使用步骤如下:

1. 修改文件 dfs_func.c,将代码行:
conf_filename = "/home/y/FastDFS/conf/storage.conf"
修改为正确的配置文件名

2. 生成待上传的文件,运行:
./gen_files

3. 运行测试脚本,例如:
./test_upload  <process index>
例如:
./test_upload  0
可以编写一个shell脚本来同时执行,比如同时执行10次。可以参阅现有shell脚本: test_upload.sh

4.  进入生成的测试报告目录:
上传的为upload,
下载的为download,
删除的为delete
执行:
./combine_result  <process num>
例如,同时启动了10个测试进程,执行:
cd upload
../combine_result  10

论坛徽章:
0
3 [报告]
发表于 2009-08-12 09:26 |只看该作者
感谢老大,搞定了,可以测试了

论坛徽章:
0
4 [报告]
发表于 2010-11-09 10:18 |只看该作者
当初写测试脚本的主要目的就是自己用用。说实话,测试脚本比较难用。
使用步骤如下:

1. 修改文件 dfs_ ...
happy_fish100 发表于 2009-08-10 17:35




    执行./test_upload时,提示如下
    stor11@ubuntu:~/FastDFS/test$ ./test_upload
    Usage: ./test_upload <process_index>
    请教fishman,这个process_index作何解释?是自行指定进程数,还是其他什么意思?

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
5 [报告]
发表于 2010-11-09 10:47 |只看该作者
回复 4# rxxluowei

指定进程索引号,基于0。目前需要手工来执行多个测试进程。test目录下有对应批量启动测试进程的shell,比如:test_upload.sh。

论坛徽章:
0
6 [报告]
发表于 2010-11-10 10:36 |只看该作者
chhxo测试结果如何?发上来分享下:)

论坛徽章:
0
7 [报告]
发表于 2010-11-10 10:46 |只看该作者
chhxo测试结果如何?发上来分享下:)
soartju 发表于 2010-11-10 10:36



    一年前的帖子,不知道LZ还能看到不。
我也在尝试用上面的方法,无奈虚拟机8G的空间太小,刚新建一个30GB的,却出现一些莫名其妙的错误,正愁无解呢


[2010-11-09 18:10:02] ERROR - file: tracker_proto.c, line: 48, server: 192.168.139.141:22122, response status 2 != 0
[2010-11-09 18:10:02] ERROR - file: tracker_proto.c, line: 48, server: 192.168.139.141:22122, response status 2 != 0
tracker_query_storage fail, error no: 2, error info: No such file or directory

论坛徽章:
0
8 [报告]
发表于 2013-10-21 16:44 |只看该作者
请问 我用20个进程测试上传的时候 为什么会提示如下错误
Invalid proccess index: 10
Invalid proccess index: 11
Invalid proccess index: 12
Invalid proccess index: 13
Invalid proccess index: 14
Invalid proccess index: 15
Invalid proccess index: 16
Invalid proccess index: 17
Invalid proccess index: 18
Invalid proccess index: 19

论坛徽章:
0
9 [报告]
发表于 2014-06-21 17:31 |只看该作者
回复 2# happy_fish100
combine_result  <process num>中的<process num>和test_upload.sh中的$i 有关系吗,是不是test_upload.sh中的$i==10,那么combine_result  <process num>中的<process num>就必须是10呢?麻烦版主有时间回复下,谢谢!

   

论坛徽章:
0
10 [报告]
发表于 2014-06-21 17:32 |只看该作者
happy_fish100 发表于 2009-08-10 17:35
当初写测试脚本的主要目的就是自己用用。说实话,测试脚本比较难用。
使用步骤如下:


combine_result  <process num>中的<process num>和test_upload.sh中的$i 有关系吗,是不是test_upload.sh中的$i==10,那么combine_result  <process num>中的<process num>就必须是10呢?麻烦版主有时间回复下,谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP