[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. mysql被拖垮_说几个拖垮系统的小细节!
  2. China SAFe DAY 2020中国规模化敏捷大会圆满落幕
  3. 我学UML建模系列之核心元素 -------- 参与者
  4. java curator_[java,zk]在 linux 上快速搭建 zookeeper curator 开发环境
  5. 分库分表:TIDB,你是来抢生意的?不讲码德?
  6. wechat-app-mall — 微信小程序商城,微信小程序微店
  7. python报错ValueError: invalid literal for int() with base 10解决方法
  8. linux紧急救援模式,如何在 Ubuntu 18.04 中启动到救援模式或紧急模式
  9. 解决CentOS出现“No package redis available“提示问题
  10. 【读书笔记】Java基础学习之目录
  11. segue 分析小结
  12. Clickhouse优点 缺点 / Doris 优点 缺点
  13. Android:LiveData postValue导致数据丢失问题,及其原因
  14. win10 屏幕保护时间到了不触发_你真的了解Win10么?网友教你玩转Win10!
  15. 超级表格的高级使用者都在用视图做些什么?
  16. PTA:输出较大或较小值(c++,函数模板)
  17. Java实现QQ邮箱验证
  18. Solidworks机构运动仿真
  19. 【软件工程实践】Hive研究-Blog7
  20. vue搜索关键字高亮

热门文章

  1. 质量管理五大工具、七大手法知识点总结
  2. Mdict to macOS Dictionary转换笔记
  3. php生产环境性能瓶颈分析,使用XHProf分析PHP性能瓶颈(一)
  4. 小米手机便签怎么批量导出到另一个手机
  5. 基于WEKA实现时间序列的预测
  6. Java暴力破解Wifi
  7. Windows11 WSL Ubuntu1804 配置指南
  8. 单个dcm文件含有多帧数据,如何拆分成多个dcm文件
  9. 详解蓝牙空中升级(BLE OTA)原理与步骤
  10. 光孝寺招聘员工!月薪15000,早九晚五,免费饭菜,有证者优先,工作六根清净,而且.......