免费注册 查看新帖 |

Chinaunix

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

porting netperf to 0015 target board [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-06 16:10 |只看该作者 |倒序浏览

porting netperf to 0015 target board
System Development Department
By Edwin Rong
Last update: May. 6, 2008
1.       About netperf
Netperf is a benchmark that can be use to measure various aspect of networking performance. The primary foci are bulk (aka unidirectional) data transfer and request/response performance using either TCP or UDP and the Berkeley Sockets interface. As of this writing, the tests available either unconditionally or conditionally include:
TCP and UDP unidirectional transfer and request/response over IPv4 and IPv6 using the Sockets interface.
TCP and UDP unidirectional transfer and request/response over IPv4 using the XTI interface.
Link-level unidirectional transfer and request/response using the DLPI interface.
Unix domain sockets
SCTP unidirectional transfer and request/response over IPv4 and IPv6 using the sockets interface.
—netperf offical site
2.       Download netperf
google “netperf-2.4.0.tar.gz” on the Internet.
3.       Cross compile netperf-2.4.0.tar.gz
./configure CC=arm-linux-gcc --includedir=/opt/montavista/pro/devkit/arm/v5t_le/include/ --libdir=/opt/montavista/pro/devkit/arm/v5t_le/lib/ --host=arm-linux --prefix=/work/nfs_filesystem/target/work/tools/netperf_install

Error:
checking whether setpgrp takes no argument... configure: error: cannot check setpgrp when cross compiling

Solve it:
vim configure
line: 6091   ignore  exit(1)
      
/configure CC=arm-linux-gcc --includedir=/opt/montavista/pro/devkit/arm/v5t_le/include/ --libdir=/opt/montavista/pro/devkit/arm/v5t_le/lib/ --host=arm-linux --prefix=/work/nfs_filesystem/target/work/tools/netperf_install
make
make install

then, netperf and netserver are installed under directory “/work/tools/netperf_install” on the target filesystem.

4.       Profiling networking performance.
4.1 with loopback
root@192.168.167.133:/work/tools/netperf_install/bin#./netserver   //boot netperf server daemon
Starting netserver at port 12865
set_up_server could not establish a listen endpoint for  port 12865 with family AF_UNSPEC

root@192.168.167.133:/work/tools/netperf_install/bin#./netperf
Starting netserver at port 12865
set_up_server could not establish a listen endpoint for  port 12865 with family AF_UNSPEC
root@192.168.167.133:/work/tools/netperf_install/bin# ./netperf
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to localhost.localdomain (127.0.0.1) port 0 AF_INET
Recv   Send    Send
Socket Socket  Message  Elapsed
Size   Size    Size     Time     Throughput
bytes  bytes   bytes    secs.    10^6bits/sec

87380  16384  16384    10.01      85.69

4.2 without lookback
Subsequently, profile the performace of transmission through TCP, the following command will transmit TCP packages to remotehost 192.168.167.131 for 10 seconds.
./netperf -H 192.168.167.131
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.167.131 (192.168.167.131) port 0 AF_INET
Recv   Send    Send
Socket Socket  Message  Elapsed
Size   Size    Size     Time     Throughput
bytes  bytes   bytes    secs.    10^6bits/sec

87380  16384  16384    10.02       7.60


Make measurement for UDP Stream transmition performance
./netperf -H 192.168.167.131 -t UDP_STREAM -- -m 1024
UDP UNIDIRECTIONAL SEND TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.167.131 (192.168.167.131) port 0 AF_INET
Socket  Message  Elapsed      Messages
Size    Size     Time         Okay Errors   Throughput
bytes   bytes    secs            #      #   10^6bits/sec

103424    1024   10.01       11514      0       9.42
110592           10.01       11514              9.42

note:
netperf tool must be setup on the host:192.168.167.131 in advace.


Reference:
[1] http://pccluster.nchc.org.tw/xoops/modules/newbb/viewtopic.php?topic_id=846&forum
=1



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/43047/showart_677862.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP