|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| doc/ | | 22-Nov-2023 | - | 19,020 | 16,068 |
| m4/m4/ | | 22-Nov-2023 | - | 249 | 240 |
| src/ | | 22-Nov-2023 | - | 61,413 | 41,509 |
| .git | D | 01-Jan-1970 | 0 | | |
| AUTHORS | D | 22-Nov-2023 | 8.6 KiB | 309 | 217 |
| Android.mk | D | 22-Nov-2023 | 1.5 KiB | 54 | 35 |
| COPYING | D | 22-Nov-2023 | 2 KiB | 44 | 33 |
| ChangeLog | D | 22-Nov-2023 | 27 | 1 | 1 |
| INSTALL | D | 22-Nov-2023 | 9 KiB | 230 | 175 |
| MODULE_LICENSE_HP | D | 22-Nov-2023 | 2 KiB | 44 | 33 |
| Makefile.am | D | 22-Nov-2023 | 120 | 5 | 3 |
| Makefile.in | D | 22-Nov-2023 | 22.8 KiB | 723 | 637 |
| NEWS | D | 22-Nov-2023 | 0 | | |
| NOTICE | D | 22-Nov-2023 | 2 KiB | 44 | 33 |
| README | D | 22-Nov-2023 | 2.1 KiB | 50 | 35 |
| README.aix | D | 22-Nov-2023 | 1.6 KiB | 39 | 29 |
| README.hpux | D | 22-Nov-2023 | 1.7 KiB | 32 | 27 |
| README.osx | D | 22-Nov-2023 | 258 | 5 | 4 |
| README.ovms | D | 22-Nov-2023 | 2.3 KiB | 67 | 51 |
| README.solaris | D | 22-Nov-2023 | 1.2 KiB | 30 | 22 |
| README.version | D | 22-Nov-2023 | 90 | 4 | 3 |
| README.vmware | D | 22-Nov-2023 | 720 | 16 | 13 |
| README.windows | D | 22-Nov-2023 | 4.2 KiB | 110 | 61 |
| Release_Notes | D | 22-Nov-2023 | 47.1 KiB | 1,090 | 821 |
| acinclude.m4 | D | 22-Nov-2023 | 13.7 KiB | 342 | 323 |
| aclocal.m4 | D | 22-Nov-2023 | 34.6 KiB | 986 | 883 |
| autogen.sh | D | 22-Nov-2023 | 95 | 6 | 3 |
| config.guess | D | 22-Nov-2023 | 42.5 KiB | 1,467 | 1,256 |
| config.h | D | 22-Nov-2023 | 11.2 KiB | 410 | 91 |
| config.h.in | D | 22-Nov-2023 | 10.5 KiB | 406 | 271 |
| config.sub | D | 22-Nov-2023 | 31 KiB | 1,580 | 1,438 |
| configure | D | 22-Nov-2023 | 233.7 KiB | 8,657 | 7,126 |
| configure.ac | D | 22-Nov-2023 | 15.3 KiB | 745 | 625 |
| depcomp | D | 22-Nov-2023 | 13.5 KiB | 480 | 304 |
| inet_ntop.c | D | 22-Nov-2023 | 30 | 1 | 1 |
| install-sh | D | 22-Nov-2023 | 13.3 KiB | 521 | 344 |
| missing | D | 22-Nov-2023 | 10 KiB | 337 | 263 |
| mkinstalldirs | D | 22-Nov-2023 | 1.9 KiB | 112 | 85 |
| netperf.spec.in | D | 22-Nov-2023 | 1.8 KiB | 74 | 55 |
README
1
2BE SURE TO READ THE MANUAL. EVEN THOUGH IT MAY BE OUTDATED.
3
4This is a brief readme file for the netperf TCP/UDP/sockets/etc
5performance benchmark. This is here mostly as a boot-strap. The real
6information is in the manual, which can be found in netperf.ps and
7online from http://www.netperf.org/netperf/NetperfPage.html. The
8sources, and a limited number of binaries, can be found from
9ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/ .
10
11BE SURE TO READ THE MANUAL. EVEN THOUGH IT MAY BE OUTDATED.
12
13There is a COPYRIGHT file included. It is called COPYING because that
14is what autosomethingorother wanted. It is based on what the HP Legal
15Eagles gave me. I am not sure if the legalese is clear, but the intent
16is to say "Here is a benchmark. Use it in good health. Pass it along,
17port it, enhance it. You didn't pay for this tool, so don't expect it
18to be perfect ;-)" The rest of it is there to keep the layers happy...
19
20While the copyright is pretty much in spirit an "open source" one, it
21is not in letter - I never took the time to try to get it approved.
22If you feel strongly about the license of the code you use and want
23something under the GPL, consider netperf4:
24
25http://www.netperf.org/svn/netperf4/trunk
26
27Feel free to report netperf results in public forums, but please be
28excruciatingly complete in your description of the test envorinment.
29The old netperf database at:
30
31 http://www.netperf.org/netperf/NetperfPage.html
32
33is no more - or rather the utilities for accessing it no longer run.
34The data is still present in the tree, albeit _VERY_ old now.
35
36There is an Internet mailing list devoted to netperf. It is called
37netperf-talk and it is hosted on netperf.org. Subscription requests
38should go to netperf-talk-request@netperf.org.
39
40Please DO NOT SEND subscription requests to netperf-talk!
41
42If you run into severe difficulties, or are just feeling chatty,
43please feel free to drop some email to me - Rick Jones
44<rick.jones2@hp.com>. Be sure to include a meaningful subject lines.
45
46happy benchmarking,
47rick jones
48
49BE SURE TO READ THE MANUAL. EVEN THOUGH IT MAY BE OUTDATED.
50
README.aix
1Pseudo-random things about netperf on AIX:
2
3While it _should_ not be necessary in the release bits, the rc bits
4for netperf 2.4.0 required:
5
6 configure _may_ need:
7
8 CFLAGS="-qcpluscmt -lperfstat"
9
10 until such time as Rick Jones can figure-out or be told how to
11 automagically add those using the configure script (hint hint :)
12
13The release bits should be OK without the above. Depending on the
14name used to invoke the compiler, the -qmumble option may be implicit.
15
16AIX include files have a VERY unfortuneate set of #define's in them
17for phrases network oriented programs are QUITE likely to have in
18their source - "rem_addr" and "rem_size" A "cousin" of the Netperf
19Contributing Editor reports this interferes with --enable-dlpi
20compilation and that it was also a problem for MySQL compiltion.
21While we await IBM's APAR with bated breath, netperf has been kludged
22to workaround this bug in IBM's include files. It has been reported
23that a "PMR" 34940,212,848 has been submitted to IBM in relation to
24this bug in their header files.
25
26Coutesy of Jan Krueger of TUI Infotec, Germany we have a pointer to
27a workaround for problems with compilation on AIX 6.1:
28
29https://www-304.ibm.com/support/docview.wss?uid=isg1IV01736
30
31when you get errors like:
32config.status: creating src/netperf_version.h
33 gcc -DHAVE_CONFIG_H -I. -I.. -MT netlib.o -MD -MP -MF .deps/netlib.Tpo -c -o netlib.o netlib.c
34In file included from /usr/include/sys/corral.h:25,
35 from /usr/include/libperfstat.h:28,
36 from netlib.h:679,
37 from netlib.c:166:
38/usr/include/netinet/in6_var.h:65: error: array type has incomplete element type
39
README.hpux
1A note about CPU utilization...
2
3For HP-UX 11.0 <= system < 11.23 the configure script will select the
4"pstat" CPU utilization mechanism. This mechanism is the familiar
5HP-UX idle counter mechanism (for all incense and porpoises) and
6requires calibration. See src/netcpu_pstat.c for all the details.
7
8For HP-UX 11.23 >= system, the configure script will select the
9"pstatnew" CPU utilization mechanism. 11.23 adds cycle counts for
10user, kernel and interrupt modes to the idle cycle counter. As such,
11it _should_ be possible to simply take the sum of the four and the
12fractions and know how much time was spent in each mode.
13HOWEVER... there is a bug in the accounting for interrupt cycles,
14where interrupt cycles go missing. SOOO, since there is an accurate
15way to know what the total number of cycles should have been over the
16interval, and we know (ass-u-me) that the idle cycle counter is good
17(since the pstat mechanism has tested that one OK), we will take the
18ratio of idle to total cycles to compute CPU util.
19
20We will still calculate fractions for user, kernel and interrupt, and
21report them in debug (-d) output, but with a warning for interrupt
22time. See src/netcpu_pstatnew.c for all the details.
23
24Up through HP-UX 11.23 (aka 11iV2) if you enable burst mode, and
25happen to send sub-MSS requests and/or responses you _cannot_ assume
26that the packet per second rate on the wire will match the transaction
27per second rate reported by netperf, even if you set TCP_NODELAY with
28the test-specific -D option. The HP-UX 11.X TCP stack likely will be
29generating some immediate 'standalone' ACKnowledgements which may not
30be generated by other stacks. This has been reported to the HP-UX TCP
31folks, and an announcement will be made when that issue is resolved.
32
README.osx
1If you are reading this, it suggests you are using a version of
2netperf in which the issue of file/directory name case insensitivity
3in OSX has been worked-around by renaming the NetPerf and NetServer
4directories to NetPerfDir and NetServerDir respectively.
5
README.ovms
1February 11, 2003
2
3At the time of the initial port, I was not aware of a make facility
4for OpenVMS. So, I would just compile and link the various files by
5hand:
6
7 $ cc netperf.c
8 $ cc netlib.c
9 $ cc netsh.c
10 $ cc nettest_bsd.c
11 $ cc netserver.c
12 $ link/exe=netperf netperf.obj,netsh.obj,netlib.obj,nettest_bsd.obj
13 $ link/exe=netserver netserver.obj,netsh.obj,netlib.obj,nettest_bsd.obj
14
15Installation for OpenVMS has a few differences from installation under
16say Unix. There is no inetd for VMS - however, there is the concept
17of an adding an auxilliary service that seems quite similar.
18
19To configure netperf for operation as an auxilliary service, you will
20need to edit/use the netserver_run.com file and alter the "path" to
21netserver accordingly. The version that ships is setup for where Rick
22Jones did his initial porting work and most likely is not apropriate
23for you :)
24
25 $ define sys$output sys$sysroot:[netperf]hello_service.log
26 $ define sys$error sys$sysroot:[netperf]hello_service.log
27 $ run sys$sysroot:[netperf]netserver.exe
28
29Then it will be necessary to "define" netperf (netserver) as an
30auxilliary service. This will need to be customized as apropriate for
31your system
32
33 $ tcpip set service netserver -
34 _$ /port=12865 -
35 _$ /protocol=tcp -
36 _$ /user=system -
37 _$ /limit=48 -
38 _$ /process_name=netserver -
39 _$ /file=sys$sysroot:[netperf]netserver_run.com
40
41And then it is necessary to enable the service:
42
43$ tcpip enable service netserver
44
45If you want to disable the service, you can issue the command
46
47$ tcpip set noservice netserver
48
49By default, OpenVMS is case-insensitive with commandlines, and will
50downshift everything to lower case. This does not interact well with
51netperf's use of command-line options like "-H" and "-h" with rather
52different meanings.
53
54To workaround that, the following defines are believed to be
55sufficient.
56
57$ define DECC$ARGV_PARSE_STYLE ENABLE
58$ define DECC$EFS_CASE_PRESERVE ENABLE
59$ define DECC$POSIX_SEEK_STREAM_FILE ENABLE
60$ define DECC$EFS_CHARSET ENABLE
61$ set process /parse_style=extended
62
63I do not know if this will be something one can also do for the
64netserver - presumeably one could put these things in the
65netserver_run.com file (guessing). At present though I've not tried
66that, and I'm also not sure that netserver has any upper-case options.
67
README.solaris
1Until the release bits the following was true:
2
3 Until such time as Rick Jones can figure-out or be told how to make it
4 automagic in the configure script, prior to configure on solaris, you
5 may need:
6
7 CFLAGS="-lsocket -lnsl -lkstat"
8
9 and if you are trying to compile the SCTP tests:
10
11 CFLAGS="-lxnet -lsocket -lnsl -lkstat -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
12
13as the release bits have a "smarter" configure script, and the SCTP
14tests use libsctp, the above no longer applies. It should all just be
15automagic (although for SCTP you still must --enable-sctp at configure
16time)
17
18Beware CPU util figures on anything before Solaris 10 that does not
19say 100%, and still be a triffle cautious with Solaris 10 CPU util
20reports. The CPU time accounting mechanisms either do not track time
21spent servicing interrupts, or do so in parallel with time spent in
22user/kernel/idle which means that some idle time isn't _really_ idle
23time.
24
25And beyond that, it is still not clear if the CPU utilization reported
26on systems with hardware threading support (eg UltraSPARC-T1) is
27really accurate even ignoring the issue with interrupt time. It is
28likely that to be truely accurate, it is necessary to know how much
29"real work" any one strand performed.
30
README.version
README.vmware
1Compiling for VMware is somewhat like compiling for Windows - there is
2a separate, standalone makefile one uses. In this case, it is
3src/Makefile.uw. So, to build the bits, cd to src/ and make -f
4Makefile.uw.
5
6At present, the makefile is setup to use a number of the "none" files
7- in particular netcpu_none.c. When/if we enable the "omni" tests
8we'll perhaps see the addition of a number of other "none" files as
9well.
10
11Also, seems the way things are "run" under VMware is enough different
12that the scripts, should you chose to use them, will need to be
13modified. The initial set of patches make some arbitrary changes that
14need to be re-worked with some "To run this under VMware uncomment
15this line" or somesuch.
16
README.windows
1It has been reported that versions of netperf have configured and
2compiled under Cygwin.
3
4It is also known that netperf has compiled using the Windows DDK.
5Here is a skeleton of the instructions to do so:
6
7Steps are:
8
9A) Install the Windows driver developer kit (if not already done).
10
11B) open a Cmd windows (i.e., a DOS box) for the target environment
12 (target OS version; free vs checked build; x86, AMD64, or IA64).
13 This is picked from the "Start\Developer Kits" path.
14
15C) enter the src\NetPerfDir directory
16
17D) Edit sources to enable any desired optional features (eg
18 -DWANT_HISTOGRAM) or to remove features which your version of
19 Windows might not support (eg -DHAVE_STRUCT_SOCKADDR_STORAGE)
20
21E) while still in the src\NetperfDir directory type "build /cD".
22
23F) Repeat steps C through E in src\NetServerDir
24
25G) the target files will be in a directory like:
26 NetPerfDir\objchk_wnet_IA64\IA64, NetServerDir\objchk_wnet_IA64\IA64
27 NetPerfDir\objfre_wnet_x86\i386, or NetPerfDir\objfre_wnet_AMD64\amd64
28
29NOTE: If any components of the path (ie the full names of the files,
30including parent directories) contain spaces (eg "My Documents"),
31build will charge off into the weeds.
32
33If you do not want the corresponding features, edit the sources files
34and remove the -Ds for WANT_DEMO, WANT_HISTOGRAM and/or WANT_INTERVALS
35
36And if that weren't enough, it is also known that netperf has been
37compiled using MS Visual Studio 2003. Here are the instructions from
38the person who made that work (See Authors):
39
401. Under the PROJECT tab, <project name> PROPERTIES, LINKER folder,
41Select COMMAND LINE and add WS2_32.lib in the whitespace labeled
42Additional Options:
43
44
452. Under the PROJECT tab, <project name> PROPERTIES, C/C++ foleder,
46Select Preprocessor, On the right, add DO_IPV6; at the end of the
47Preprocessor Definitions whitespace.
48
49
50He goes on to say:
51
52NOTE: WHEN COMPLING NETSERVER, it works, but I got issued the
53foillowing warnigns in my build:
54
55
56------ Rebuild All started: Project: netserver, Configuration: Debug Win32 ------
57
58Deleting intermediate files and output files for project 'netserver', configuration 'Debug|Win32'.
59
60Compiling...
61
62nettest_bsd.c
63
64g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(846) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
65
66g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(1303) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
67
68g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(2020) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
69
70g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(5080) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
71
72g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(5715) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
73
74g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(6591) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
75
76g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(8013) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
77
78g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(11123) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
79
80netsh.c
81
82netserver.c
83
84g:\Program Files\netperf\netperf-2.4.1rc1\src\netserver.c(457) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
85
86netlib.c
87
88g:\Program Files\netperf\netperf-2.4.1rc1\src\netlib.c(2470) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
89
90g:\Program Files\netperf\netperf-2.4.1rc1\src\netlib.c(2480) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
91
92netcpu_ntperf.c
93
94inet_ntop.c
95
96Generating Code...
97
98Linking...
99
100Build log was saved at "file://g:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\netserver\Debug\BuildLog.htm"
101
102netserver - 0 error(s), 11 warning(s)
103
104
105
106---------------------- Done ----------------------
107
108Rebuild All: 1 succeeded, 0 failed, 0 skipped
109
110