netperf(1)
β¨ netperf β¨
okay so bestie, welcome to netperf(1), straight out of the General Commands Manual π this is the page for netperf, the network performance benchmark, and we're gonna go through every single flag together because you deserve to know all of them, no cap π«Ά
πΈ NAME πΈ
netperf β a network performance benchmark
π SYNOPSIS π
netperf [global options] -- [test specific options]
π DESCRIPTION π
So netperf is a benchmark you use to measure all sorts of different aspects of networking performance. Right now its main character energy is focused on bulk data transfer and request/response performance, using either TCP or UDP, over the Berkeley Sockets interface. On top of that, tests for DLPI and Unix Domain Sockets, plus tests for IPv6, may be conditionally compiled-in. iykyk π«
π GLOBAL OPTIONS π
-4β UseAF_INET(aka IPv4) addressing for the control connection and possibly the data connections too.-6β UseAF_INET6(aka IPv6) addressing for the control connection and possibly the data connections too.-asizespec β Change the send and receive buffer alignments on the local system. This defaults to8bytes.-Asizespec β Same as-a, but for the remote system.-Bbrandstr β Add brandstr to the output of a test with banners disabled.-c[rate] β Request CPU utilization and service demand calculations for the local system. If you also pass the optional rate parameter, netperf will use that instead of calculating the rate itself.-C[rate] β Same as-c, but for the remote system.-dβ Increase the quantity of debugging output displayed during a test (and possibly at the expense of performance, oop π).-D[secs,units] () β Display interim results at least every *secs seconds, using units as the initial guess for units per second. Heads up bestie: this is only available when netperf has been configured with--enable-demo.-fGMKgmk β Change the units of measure for*_STREAMtests. Capital letters are powers of two, lowercase are powers of ten. π-Ffill_file β Pre-fill the send buffers with data from the named file. The whole point of this is to give you a way to avoid buffers filled with data that's trivially easy to compress. A good choice for a file that should be present on any system is this manpage βnetperf.man. Other files may be provided as part of the distribution.-hβ Display a usage string, and exit. bye π-Hname|ip,family (*) β Set the hostname (or IP address) and address family to use to establish the control connection to the remote system. If you pass a single name with no comma, it'll only setremote_hostand will leave selection of the address family for the control connection to the stack, or to a-4 -r -6command line option.-imax,min β Set the maximum and minimum number of iterations when trying to reach certain confidence levels.-jβ Tell netperf to calculate additional statistics on timing when running an omni test. Whether those stats actually show up depends on whether the corresponding output selectors are present in the output selection. Those selectors areMIN_LATENCY,MAX_LATENCY,P50_LATENCY,P90_LATENCY,P99_LATENCY,MEAN_LATENCYandSTDDEV_LATENCY.-Ilvl,[,intvl] β Specify the confidence level (either95or99β99is the default) and the width of the confidence interval as a percentage (default10).-ltestlen β Specify the length of the test (default10seconds). A negative value sets the number of request/response transactions, or the number of bytes for a stream test.-Lname|ip,fam (*) β Set the local name|IP and/or address family for the socket used for the control connection to the remote netserver.-nnumcpus β Specify the number of CPUs in the system, for those systems where netperf has no way to find the number of CPUs programatically.-Nβ This one tells netperf to not establish a control connection to a remote netserver. Instead it'll try to establish a data connection directly, using only the information supplied by the command line parameters and/or internal defaults. Unless other ports are provided on the command line, by default the data connection goes to the"discard"port for a"STREAM"or"SENDFILE"test, the"echo"port for an"RR"test, or the"chargen"port for a"MAERTS"test.-osizespec β Set an offset from the alignment specified with-a.-Osizespec β Same as-o, but for the remote system.-pportnum,locport (*) β Direct the control connection to a netserver listening on the specified port, rather than using a"netperf"entry in/etc/servicesor the internal default (port12865). If,locportis specified, the control connection will be established from that local port number. Specifying a single port number with no comma will specify only the remote netserver port number and will leave local port number selection to the stack.-P0|1β Show (1) or suppress (0) the test banner.-Sβ This option causes an attempt to setSO_KEEPALIVEon the ends of the data connection for tests using BSD Sockets. It'll be done on the netperf side of classic tests, and on both the netperf and netserver side of an omni or migrated test.-sseconds β Makes netperf sleep seconds seconds before transferring data over the data connection. lil nap π΄-ttestname β Specify the test to perform. Valid testnames include, but are not limited to, nor always compiled-in:
TCP_STREAM
TCP_SENDFILE
TCP_MAERTS
TCP_RR
TCP_CRR
UDP_STREAM
UDP_RR
DLCO_STREAM
DLCO_RR
DLCL_STREAM
DLCL_RR
STREAM_STREAM
STREAM_RR
DG_STREAM
DG_RR
SCTP_STREAM
SCTP_STREAM_MANY
SCTP_RR
SCTP_RR_MANY
LOC_CPU
REM_CPU
-Tlcpu,remcpu β Request that netperf be bound to CPU lcpu and/or netserver be bound to CPU rcpu.-vverbosity β Set the verbosity level for the test (only with-P).-Vβ Display the netperf version and exit. slay, version check π«
π¦ TEST SPECIFIC OPTIONS π¦
-hβ Display a usage string based on the test name set with-t, and exit.
Please consult the netperf manual Care and Feeding of Netperf 2.5.X (doc/netperf.[pdf|html|txt]) for more information. Or you can join and send email to netperf-talk@netperf.org. π¬
π NOTE π
okay this part is important, listen up π«Ά
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. And if you want to set each parm to unique values, specify both of them and separate them with a comma.
* For these options taking two parms, specifying one value with no comma will only set the first parm 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.
π BUGS π
ngl there are bound to be bugs. If you think you've found a bug, please mention it in netperf-talk@netperf.org. List membership is required to send email to the list. See http://www.netperf.org/cgi-bin/mailman/listinfo/netperf-talk. And if all else fails, send email to netperf-feedback@netperf.org. π
π SEE ALSO π
netserver(1)- Care and Feeding of Netperf 2.5.X
http://www.netperf.org/
π AUTHORS π
- HP Information Networks Division - Networking Performance Team.
- Rick Jones
<rick.jones2@hp.com> - Karen Choy β HP IND
- Dave Shield
<daves@csc.liv.ac.uk>(man pages) - Others too numerous to mention here - see the
AUTHORSfile
and that's the whole thing bestie, we ate π this page signs off as netperf(1) from the General Commands Manual, section 1, and that footer line is literally just netperf(1) β no version bump, no date drama, just the name holding it down. periodt π
β¨
π¦ where this page comes from
- debian trixie: netperf 2.7.0+git20210121.3bc455b+ds-3 Β· MIT
- epel 10: netperf 2.7.0-12.20210803git3bc455b.el10_1 Β· MIT AND BSD-3-Clause AND BSD-4-Clause
- epel 9: netperf 2.7.0-2.20210803git3bc455b.el9 Β· MIT and BSD
- fedora 43: netperf 2.7.0-13.20210803git3bc455b.fc43 Β· MIT AND BSD-3-Clause AND BSD-4-Clause
- fedora 44: netperf 2.7.0-14.20210803git3bc455b.fc44 Β· MIT AND BSD-3-Clause AND BSD-4-Clause
- nixos 26.05: netperf 20210121
- nixpkgs unstable: netperf 20210121
- ubuntu questing: netperf 2.7.0+git20210121.3bc455b+ds-3
- ubuntu resolute: netperf 2.7.0+git20210121.3bc455b+ds-5 Β· MIT
- ubuntu stonking: netperf 2.7.0+git20210121.3bc455b+ds-5 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms