[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]#

linux netperf,linux netperf的安装相关推荐

  1. linux 判断某个命令是否安装

    linux 判断某个命令是否安装 if ! [ -x "$(command -v git)" ]; thenecho 'Error: git is not installed.' ...

  2. linux学 java_[操作系统]Linux学习第二步(Java环境安装)

    [操作系统]Linux学习第二步(Java环境安装) 0 2017-05-19 00:02:21 jdk版本:jdk-8u131-linux-x64.rpm 注:以下操作在root用户或具有root权 ...

  3. Linux下Memcache服务器端的安装

    Linux下Memcache服务器端的安装 服务器端主要是安装memcache服务器端,目前的最新版本是 memcached-1.3.0 . 下载:http://www.danga.com/memca ...

  4. Linux redhat 5.4上安装MYDNS

    Linux redhat 5.4上安装MYDNS 一. 1,MYDNS 的简介: MyDNS是一个UNIX平台下的免费DNS服务器端软件.它被设计成直接从数据库中读取DNS记录软件,并且修改记录后也可 ...

  5. Linux磁盘挂载和docker安装

    本篇给大家介绍Linux磁盘挂载和docker安装的相关内容,Linux服务器的操作是一个手熟的过程,一些不常用的命令隔断时间就忘记了,熟话说好记性不如烂笔头,还需在平时的工作中多练习记录. 最近新申 ...

  6. Linux(ubuntu)下安装anaconda(64位)并配置jupyter notebook远程访问

    Linux(ubuntu)下安装anaconda(64位)并配置jupyter notebook远程访问 Anaconda指的是一个开源的Python发行版本,其包含了conda.Python等180 ...

  7. Linux/ubuntu server 18.04 安装远程桌面--vnc server

    此文首发于我的个人博客:Linux/ubuntu server 18.04 安装远程桌面–vnc server - zhang0peter的个人博客 想装桌面端在服务器上的原因是我在终端中开chrom ...

  8. Linux中的无人职守安装脚本kickstart

    Linux中的无人职守安装脚本kickstart 1 kickstart自动安装脚本的作用 2 实验环境 3 kickstart自动安装脚本的制作 3.1 通过模板生成kickstart文件 3.2用 ...

  9. linux校园网客户端,Ubuntu Linux环境下校园网客户端安装使用

    最近发现好多兄弟姐妹不用Linux原因是在我们学校大大环境下上校园网有点费劲,或者干脆就不会弄,亦或者根本就没想到上网^_^ 这里我写上这么一段简单的过程,为了大家能够顺利上网,大牛直接掠过,不要喷我 ...

  10. linux的软件包是独立的,Linux系统下软件包的安装

    (以下内容是云课堂Linux课程的笔记,个人纯手工记录,课程以RedHat系列为主) Linux系统下软件包的安装方式包括:源代码安装.本地二进制包安装(rpm命令手工安装).在线二进制包安装(yum ...

最新文章

  1. [swift 进阶]读书笔记-第十一章:互用性 C11P1 实践:封装 CommonMark
  2. flask连接不到mysql数据库,即使使用了python flask mysql,也无法将数据提交到数据库(使用python flask mysql)连接.提交()...
  3. 还能这样?把 Python 自动翻译成 C++
  4. 将太阳光聚集起来可以用来做饭!?
  5. 书评:JBoss AS 7:配置,部署和管理
  6. 《那些年啊,那些事——一个程序员的奋斗史》——78
  7. 加载一张照片,可选择是否另存为
  8. 上传本地项目到git
  9. 【Elasticsearch】在Elasticsearch中查询Term Vectors词条向量信息
  10. tomcat配置SSL加密网站
  11. PYTHON博客记录0602
  12. 归并排序的时间复杂度
  13. spark入门(1)
  14. SPSS描述性统计(图文+数据集)【SPSS 014期】
  15. mysql 5.6 默认密码_mysql5.6配置及修改密码
  16. xmind模板打包下载
  17. 数据仓库系列文章二:浅谈企业数据仓库总线矩阵
  18. pyecharts本地文件_pyecharts 模块的简单使用(可视化神器)
  19. 实用的网页模板(一)
  20. 区块链性能测试工具Hyperbench详解

热门文章

  1. python 中文转换 url 编码
  2. web前端笔试试题一(含答案)
  3. udp端口转发 Linux,Linux iptables 端口转发
  4. 汇川,H3U,plc程序模板和触摸屏程序模板,三个步进和三个伺服,三个伺服用的是canlink总线,适用于运动轴控制
  5. IT行业技术部门人员架构设计
  6. 使用SAXReader所需jar包
  7. FDDB数据集(人脸检测)
  8. 金南瓜 secs/gem协议 符合SEMI secs/gem协议 国际通讯协
  9. 提供2.4G单色、双色、RGB\RGBW\RGBCW调光LED灯方案
  10. 如何判断是pc端还是移动端