netperfのオプション設定方法

 24, 2012 22:44
netperfによる通信負荷テストで速度が出ないなぁと思っていたのですが、オプションをつけたら速度が出るようになりました。

C:\>netperf-2.1pl1.exe ?
getopt: illegal option: ?

Usage: netperf [global options] -- [test options]

TCP/UDP BSD Sockets Test Options:
-D [L][,R] Set TCP_NODELAY locally and/or remotely (TCP_*)
-h Display this text
-m bytes Set the send size (TCP_STREAM, UDP_STREAM)
-M bytes Set the recv size (TCP_STREAM, UDP_STREAM)
-p min[,max] Set the min/max port numbers for TCP_CRR, TCP_TRR
-r bytes Set request size (TCP_RR, UDP_RR)
-R bytes Set response size (TCP_RR, UDP_RR)
-s send[,recv] Set local socket send/recv buffer sizes
-S send[,recv] Set remote socket send/recv buffer sizes

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.


C:\>netperf-2.1pl1.exe -H 192.168.254.10 -- -r 2048000 -s 2048000 -m 2048000
TCP STREAM TEST to 192.168.254.10
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec

8192 2048000 2048000 10.00 735.61


test optionsの場合は -- をつけた後に -rとか記述すればいいんですね。
ちょっと分かり難かったです。

COMMENT 0


WHAT'S NEW?