Skip to content

Commit

Permalink
remove nettest_ipv6.* from source distibutions and fix some bogosity …
Browse files Browse the repository at this point in the history
…when both intervals and demo mode were active at the same time
  • Loading branch information
raj committed Feb 8, 2007
1 parent 262bced commit 6380569
Show file tree
Hide file tree
Showing 13 changed files with 61 additions and 46 deletions.
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Fabrice Bacchella
Fixes for -DHISTOGRAM and -DUNIX on Mac OS X, updates to usage strings

Spencer Frink
Fixes and Cleanup for WIN32
Fixes and Cleanup for WIN32. Many over many years.

Nicholas Thomas
Fixes for DLPI on SVR4 Streams under Linux
Expand Down
20 changes: 15 additions & 5 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,23 @@ is what autosomethingorother wanted. It is based on what the HP Legal
Eagles gave me. I am not sure if the legalese is clear, but the intent
is to say "Here is a benchmark. Use it in good health. Pass it along,
port it, enhance it. You didn't pay for this tool, so don't expect it
to be perfect ;-)" The rest of it is there to keep the layers happy...
to be perfect ;-)" The rest of it is there to keep the layers happy...

Feel free to report results in public forums, but please be
While the copyright is pretty much in spirit an "open source" one, it
is not in letter - I never took the time to try to get it approved.
If you feel strongly about the license of the code you use and want
something under the GPL, consider netperf4:

http://www.netperf.org/svn/netperf4/trunk

Feel free to report netperf results in public forums, but please be
excruciatingly complete in your description of the test envorinment.
Better still, report results to the netperf database at
http://www.netperf.org/netperf/NetperfPage.html. However, the netperf
database is rather long in the tooth these days.
The old netperf database at:

http://www.netperf.org/netperf/NetperfPage.html

is no more - or rather the utilities for accessing it no longer run.
The data is still present in the tree, albeit _VERY_ old now.

There is an Internet mailing list devoted to netperf. It is called
netperf-talk and it is hosted on netperf.org. Subscription requests
Expand Down
9 changes: 9 additions & 0 deletions README.hpux
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ ratio of idle to total cycles to compute CPU util.
We will still calculate fractions for user, kernel and interrupt, and
report them in debug (-d) output, but with a warning for interrupt
time. See src/netcpu_pstatnew.c for all the details.

Up through HP-UX 11.23 (aka 11iV2) if you enable burst mode, and
happen to send sub-MSS requests and/or responses you _cannot_ assume
that the packet per second rate on the wire will match the transaction
per second rate reported by netperf, even if you set TCP_NODELAY with
the test-specific -D option. The HP-UX 11.X TCP stack likely will be
generating some immediate 'standalone' ACKnowledgements which may not
be generated by other stacks. This has been reported to the HP-UX TCP
folks, and an announcement will be made when that issue is resolved.
20 changes: 4 additions & 16 deletions README.osx
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
When compiling under MacOS X you may encounter problems with the
NetPerf and NetServer directories in src/. Seems that filenames can
be case insensitive in OSX and so there are conflicts with the netperf
and netserver binaries the makefile will try to create. Brilliant!

As NetPerf/ and NetServer/ are only for Windows compilation, you can
safely rename them to NetPerf.dir and NetServer.dir and the make will
be fat dumb and happy.

However, if you are using subversion to grab bits, it will become
rather cranky at commit or update time - it will miss NetPerf and
NetServer and will complain bitterly until you move them back again.

At some point it is hoped that those two directories can be renamed so
there is no case-insensitive conflict between them and the names of
the binaries.
If you are reading this, it suggests you are using a version of
netperf in which the issue of file/directory name case insensitivity
in OSX has been worked-around by renaming the NetPerf and NetServer
directories to NetPerfDir and NetServerDir respectively.
13 changes: 11 additions & 2 deletions README.solaris
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ tests use libsctp, the above no longer applies. It should all just be
automagic (although for SCTP you still must --enable-sctp at configure
time)

beware CPU util figures on anything before Solaris 10 that does not
Beware CPU util figures on anything before Solaris 10 that does not
say 100%, and still be a triffle cautious with Solaris 10 CPU util
reports.
reports. The CPU time accounting mechanisms either do not track time
spent servicing interrupts, or do so in parallel with time spent in
user/kernel/idle which means that some idle time isn't _really_ idle
time.

And beyond that, it is still not clear if the CPU utilization reported
on systems with hardware threading support (eg UltraSPARC-T1) is
really accurate even ignoring the issue with interrupt time. It is
likely that to be truely accurate, it is necessary to know how much
"real work" any one strand performed.
13 changes: 12 additions & 1 deletion Release_Notes
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
These are the Release Notes leading-up to Revision 2.4.3 of netperf:
These are the Release Notes for Revision 2.4.3 of netperf:

Things changed in this release:

*) Eliminate a bogus fprintf from the signal catching routine which
was being executed when both intervals and demo mode were active at
the same time.

*) The nettest_ipv6.* files are no longer included in the source
tar/zip file. IPv6 functionality has been subsumed into the
nettest_bsd.* files for some time now. Paranoia keeps the Netperf
Contributing Editor from removing it from the top of trunk of the
source repository until after he can do a bit more reading about
subversion :)

*) Use a higher resolution "time" source for HISTOGRAM support under
Windows, courtesy of Spencer Frink. Prior to this it had no better
than 10ms granularity which could lead to some rather strange
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AM_CFLAGS = $(NETPERF_CFLAGS)

USE_CPU_SOURCE=netcpu_@NETCPU_SOURCE@.c

EXTRA_DIST = netcpu_none.c netcpu_looper.c netcpu_pstat.c netcpu_pstatnew.c netcpu_perfstat.c netcpu_procstat.c netcpu_kstat.c netcpu_kstat10.c netcpu_sysctl.c netcpu_ntperf.c netcpu_osx.c nettest_ipv6.c nettest_ipv6.h missing/* dirs NetPerfDir/* NetServerDir/*
EXTRA_DIST = netcpu_none.c netcpu_looper.c netcpu_pstat.c netcpu_pstatnew.c netcpu_perfstat.c netcpu_procstat.c netcpu_kstat.c netcpu_kstat10.c netcpu_sysctl.c netcpu_ntperf.c netcpu_osx.c missing/* dirs NetPerfDir/* NetServerDir/*

COMMON_SRC = hist.h netlib.c netlib.h netcpu.h netsh.c netsh.h nettest_bsd.c nettest_bsd.h nettest_dlpi.c nettest_dlpi.h nettest_dns.c nettest_dns.h nettest_unix.c nettest_unix.h nettest_xti.c nettest_xti.h nettest_sctp.c nettest_sctp.h

Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ AM_CFLAGS = $(NETPERF_CFLAGS)

USE_CPU_SOURCE = netcpu_@NETCPU_SOURCE@.c

EXTRA_DIST = netcpu_none.c netcpu_looper.c netcpu_pstat.c netcpu_pstatnew.c netcpu_perfstat.c netcpu_procstat.c netcpu_kstat.c netcpu_kstat10.c netcpu_sysctl.c netcpu_ntperf.c netcpu_osx.c nettest_ipv6.c nettest_ipv6.h missing/* dirs NetPerfDir/* NetServerDir/*
EXTRA_DIST = netcpu_none.c netcpu_looper.c netcpu_pstat.c netcpu_pstatnew.c netcpu_perfstat.c netcpu_procstat.c netcpu_kstat.c netcpu_kstat10.c netcpu_sysctl.c netcpu_ntperf.c netcpu_osx.c missing/* dirs NetPerfDir/* NetServerDir/*

COMMON_SRC = hist.h netlib.c netlib.h netcpu.h netsh.c netsh.h nettest_bsd.c nettest_bsd.h nettest_dlpi.c nettest_dlpi.h nettest_dns.c nettest_dns.h nettest_unix.c nettest_unix.h nettest_xti.c nettest_xti.h nettest_sctp.c nettest_sctp.h

Expand Down
1 change: 0 additions & 1 deletion src/NetPerfDir/sources
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ SOURCES= \
..\netlib.c \
..\netsh.c \
..\nettest_bsd.c \
..\nettest_ipv6.c \
inet_ntop.c \
..\netperf.c

Expand Down
1 change: 0 additions & 1 deletion src/NetServerDir/sources
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ SOURCES= \
..\netlib.c \
..\netsh.c \
..\nettest_bsd.c \
..\nettest_ipv6.c \
inet_ntop.c \
..\netserver.c

14 changes: 2 additions & 12 deletions src/netlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ stop_itimer()
new_interval.it_value.tv_usec = 0;
if (setitimer(ITIMER_REAL,&new_interval,&old_interval) != 0) {
/* there was a problem arming the interval timer */
perror("clusterperf: cluster_root: setitimer");
perror("netperf: setitimer");
exit(1);
}
return;
Expand Down Expand Up @@ -785,16 +785,6 @@ catcher(int sig)
scp->sc_syscall_action = SIG_RESTART;
}
#endif /* __hpux */
if (demo_mode) {
/* spit-out what the performance was in units/s. based on our */
/* knowledge of the interval length we do not need to call */
/* gettimeofday() raj 2/95 */
fprintf(where,"%g\n",(units_this_tick *
(double) 1000000 /
(double) usec_per_itvl));
fflush(where);
units_this_tick = (double) 0.0;
}
#else /* WANT_INTERVALS */
fprintf(where,
"catcher: interval timer running unexpectedly!\n");
Expand Down Expand Up @@ -1046,7 +1036,7 @@ start_itimer( interval_len_msec )
new_interval.it_value.tv_usec = usec_per_itvl % 1000000;
if (setitimer(ITIMER_REAL,&new_interval,&old_interval) != 0) {
/* there was a problem arming the interval timer */
perror("clusterperf: cluster_root: setitimer");
perror("netperf: setitimer");
exit(1);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/nettest_bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ sigset_t signal_set;
if ((interval_burst) && (--interval_count == 0)) { \
/* call sigsuspend and wait for the interval timer to get us \
out */ \
if (debug) { \
if (debug > 1) { \
fprintf(where,"about to suspend\n"); \
fflush(where); \
} \
Expand Down Expand Up @@ -280,7 +280,7 @@ static struct timeval *temp_intvl_ptr = &intvl_one;
if ((interval_burst) && (--interval_count == 0)) { \
/* call sigsuspend and wait for the interval timer to get us \
out */ \
if (debug) { \
if (debug > 1) { \
fprintf(where,"about to spin suspend\n"); \
fflush(where); \
} \
Expand Down
6 changes: 3 additions & 3 deletions src/nettest_sctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ Size (bytes)\n\
if ((interval_burst) && (--interval_count == 0)) {
/* call sigsuspend and wait for the interval timer to get us */
/* out */
if (debug) {
if (debug > 1) {
fprintf(where,"about to suspend\n");
fflush(where);
}
Expand Down Expand Up @@ -1898,7 +1898,7 @@ Size (bytes)\n\
if ((interval_burst) && (--interval_count == 0)) {
/* call sigsuspend and wait for the interval timer to get us */
/* out */
if (debug) {
if (debug > 1) {
fprintf(where,"about to suspend\n");
fflush(where);
}
Expand Down Expand Up @@ -2981,7 +2981,7 @@ Send Recv Send Recv\n\
if ((interval_burst) && (--interval_count == 0)) {
/* call sigsuspend and wait for the interval timer to get us */
/* out */
if (debug) {
if (debug > ) {
fprintf(where,"about to suspend\n");
fflush(where);
}
Expand Down

0 comments on commit 6380569

Please sign in to comment.