linux netperf的安装
[root@server2 opt]#wget ftp://ftp.netperf.org/netperf/netperf-2.4.5.tar.gz
[root@server2 opt]# tar xzvf netperf-2.4.5.tar.gz
[root@server2 opt]# make && make install
按照以上方法分别在两台linux服务器上安装;
分为服务端和客户端
服务端启动如下:
[root@server2 opt]#netserver
Starting netserver at port 12865
Starting netserver at hostname 0.0.0.0 port 12865 and family AF_UNSPEC
[root@server2 opt]#
在客户端使用如下命令测试
[root@server1 etc]# netperf -H 10.10.10.131 -l 60
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.131 (10.10.10.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 60.01 291.03
[root@server1 etc]# netperf -H 10.10.10.131
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.131 (10.10.10.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.00 289.18
[root@server1 etc]# netperf -H 10.10.10.131 -c
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.131 (10.10.10.131) port 0 AF_INET
Recv Send Send Utilization Service Demand
Socket Socket Message Elapsed Send Recv Send Recv
Size Size Size Time Throughput local remote local remote
bytes bytes bytes secs. 10^6bits/s % S % U us/KB us/KB
87380 16384 16384 10.00 294.17 99.60 -1.00 27.737 -1.000
[root@server1 etc]# netperf -H 10.10.10.131 -C
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.131 (10.10.10.131) port 0 AF_INET
Recv Send Send Utilization Service Demand
Socket Socket Message Elapsed Send Recv Send Recv
Size Size Size Time Throughput local remote local remote
bytes bytes bytes secs. 10^6bits/s % U % S us/KB us/KB
87380 16384 16384 10.00 261.73 -1.00 78.08 -1.000 24.438
[root@server1 etc]# netperf --help
Usage: netperf [global options] -- [test options]
Global options:
-a send,recv Set the local send,recv buffer alignment
-A send,recv Set the remote send,recv buffer alignment
-B brandstr Specify a string to be emitted with brief output
-c [cpu_rate] Report local CPU usage
-C [cpu_rate] Report remote CPU usage
-d Increase debugging output
-D [secs,units] * Display interim results at least every secs seconds
using units as the initial guess for units per second
-f G|M|K|g|m|k Set the output units
-F fill_file Pre-fill buffers with data from fill_file
-h Display this text
-H name|ip,fam * Specify the target machine and/or local ip and family
-i max,min Specify the max and min number of iterations (15,1)
-I lvl[,intvl] Specify confidence level (95 or 99) (99)
and confidence interval in percentage (10)
-l testlen Specify test duration (>0 secs) (<0 bytes|trans)
-L name|ip,fam * Specify the local ip|name and address family
-o send,recv Set the local send,recv buffer offsets
-O send,recv Set the remote send,recv buffer offset
-n numcpu Set the number of processors for CPU util
-N Establish no control connection, do 'send' side only
-p port,lport* Specify netserver port number and/or local port
-P 0|1 Don't/Do display test headers
-r Allow confidence to be hit on result only
-t testname Specify test to perform
-T lcpu,rcpu Request netperf/netserver be bound to local/remote cpu
-v verbosity Specify the verbosity level
-W send,recv Set the number of send,recv buffers
-v level Set the verbosity level (default 1, min 0)
-V Display the netperf version and exit
For those options taking two parms, at least one must be specified;
specifying one value without a comma will set both parms to that
value, specifying a value with a leading comma will set just the second
parm, a value with a trailing comma will set just the first. To set
each parm to unique values, specify both and separate them with a
comma.
* For these options taking two parms, specifying one value with no comma
will only set the first parms and will leave the second at the default
value. To set the second value it must be preceded with a comma or be a
comma-separated pair. This is to retain previous netperf behaviour.
[root@server1 etc]# netperf -H 10.10.10.131 -- -M 1024
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.131 (10.10.10.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.21 275.12
[root@server1 etc]# netperf -H 10.10.10.131 -- -m 1024
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.131 (10.10.10.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 1024 10.00 207.06
[root@server1 etc]# netperf -t UDP_STREAM -H 10.10.10.131 -- -m 1024
UDP UNIDIRECTIONAL SEND TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.131 (10.10.10.131) port 0 AF_INET
Socket Message Elapsed Messages
Size Size Time Okay Errors Throughput
bytes bytes secs # # 10^6bits/sec
109568 1024 10.00 269057 0 220.38
109568 10.00 246213 201.67
[root@server1 etc]# netperf -t TCP_RR -H 10.10.10.131 -- -m 1024
TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.131 (10.10.10.131) port 0 AF_INET
Local /Remote
Socket Size Request Resp. Elapsed Trans.
Send Recv Size Size Time Rate
bytes Bytes bytes bytes secs. per sec
16384 87380 1 1 10.00 1531.09
16384 87380
[root@server1 etc]# netperf -t TCP_RR -H 10.10.10.131
TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.131 (10.10.10.131) port 0 AF_INET
send_tcp_rr: data recv error: Connection reset by peer
[root@server1 etc]# netperf -t TCP_RR -H 10.10.10.131 -- -m 10000
TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.131 (10.10.10.131) port 0 AF_INET
Local /Remote
Socket Size Request Resp. Elapsed Trans.
Send Recv Size Size Time Rate
bytes Bytes bytes bytes secs. per sec
16384 87380 1 1 10.00 1526.16
16384 87380
[root@server1 etc]# netperf -t UDP_RR -H 10.10.10.131 -- -m 10000
UDP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.131 (10.10.10.131) port 0 AF_INET
Local /Remote
Socket Size Request Resp. Elapsed Trans.
Send Recv Size Size Time Rate
bytes Bytes bytes bytes secs. per sec
109568 109568 1 1 10.00 1598.88
109568 109568
[root@server1 etc]#
转载于:https://blog.51cto.com/gaizaoren/184907
linux netperf的安装相关推荐
- mysql在linux下的安装
mysql在linux下的安装 安装环境:系统是 centos6.5 1.下载 下载地址:http://dev.mysql.com/downloads/mysql/5.6.html#downloads ...
- 关于内网linux系统如果安装nodejs,npm,express,mongodb,forever等
内网的linux系统要安装nodejs以及express等系列的框架,因为系统是局域网和互联网是物理隔离的,所以,没法像官网的安装教程那样直接install了,只能手动安装,这里已经我们自己的linu ...
- centos6.5 php5.2,Linux中PHP安装与配置(CentOS-6.5:php-5.2.13)
1 PHP简介 PHP(PHP: Hypertext Preprocessor的缩写,中文名:"超文本预处理器")是一种通用开源脚本语言.语法吸收了C语言.Java和Per ...
- linux源码安装浏览器,Linux系统手动安装Firefox浏览器
大多数Linux发行版都以Firefox作为默认的浏览器,并可以轻松地从软件库中安装.例如: Debian/Ubuntu: sudo apt-get install firefox Fedora: s ...
- linux查看msf安装目录,linux系统安装msf的过程详解
还是自己写下安装过程吧! 我的服务器系统是 Aliyun linux 可能报错:Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-Metasploit 是 ...
- Linux环境Nginx安装多版本PHP
关于Linux环境Nginx安装与调试以及PHP安装参考此文即可:http://blog.csdn.net/unix21/article/details/8544922 linux版本:64位Cent ...
- 关于一些Linux SVN的安装使用
关于一些Linux SVN的安装使用 SVN简介 The goal of the Subversion project is to build a version control system tha ...
- Linux环境HBase安装配置及使用
Linux环境HBase安装配置及使用 1. 认识HBase (1) HBase介绍 HBase = Hadoop database,Hadoop数据库 开源数据库 官网:hbase.apache.o ...
- Linux软件的安装,更新与卸载
linux软件的安装,更新与卸载 Linux常见的安装为tar,zip,gz,rpm,deb,bin等.我们可以简单的分为三类. 第一:打包或压缩文件tar,zip,gz等,一般解压后即可,或者解压后 ...
最新文章
- poj 3321 Apple Tree
- 黄金矿工-收益最大化
- 代码重构中的几个概念
- what???现在的研究生和导师普遍都没有真正理解科研的本质
- 强大的德国教育如何锻造孩子的健全人格
- 在Entity Framework 4.0中使用 Repository 和 Unit of Work 模式
- ctrl c 失效了_[安卓+PC双端]超C女仆无馬中字
- 《大道至简》的幕后故事(2):“愚公移山记”人物篇
- Linux常用解压文件
- PIP(Python包管理工具)-Mac环境下安装
- 字模提取软件怎么放大_图片无损放大软件 Topaz Gigapixel AI
- Neo4j数据导入与可视化
- WPS 破解宏 安装VBA VBA for WPS
- TOM企业邮箱,2021“重心出发”,聚焦企业邮箱安全办公!
- Android简单实现比较两张涂鸦相似度
- 解决Ubuntu 20.04 播放视频,因缺少编解码器无法处理音频/视频流,以及解决‘因没有公钥,无法验证下列签名’问题
- tensorflow及keras安装(cpu版,python3.7版)
- 有效使用二维码进行APP推广
- MIT麻省理工最新研究揭示GAN生成数据可视化分析
- Momentum and NAG
热门文章
- React Router V6 新特性
- 介绍全新的 JSX 转换
- 对比原生Node封装的Express路由 和 express框架路由
- hub设备_ORICO|DIY玩家需要一款高性能的HUB,犹如王者需要一把利器一样
- mysql_real_connect段错误,mysql的多线程安全问题:在mysql_real_connect时出现段错误。...
- java.util.zip 用法,Java压缩文件工具类ZipUtil使用方法代码示例
- SOT23-6封装随机数发生芯片,串行接口
- 【转载】美国煤层气发展史
- rpm常用命令集合2
- nginx与IIS服务器搭建集群实现负载均衡(三)