[netperf-dev] netperf2 commit notice r85 - trunk/src
raj at netperf.org
raj at netperf.org
Tue Dec 12 15:25:41 PST 2006
Author: raj
Date: 2006-12-12 15:25:39 -0800 (Tue, 12 Dec 2006)
New Revision: 85
Modified:
trunk/src/netcpu_kstat10.c
trunk/src/nettest_bsd.c
Log:
fix reporting of send_size for TCP_MAERTS
Modified: trunk/src/netcpu_kstat10.c
===================================================================
--- trunk/src/netcpu_kstat10.c 2006-11-03 22:52:01 UTC (rev 84)
+++ trunk/src/netcpu_kstat10.c 2006-12-12 23:25:39 UTC (rev 85)
@@ -413,6 +413,14 @@
"calc_cpu_util_internal: more interrupt time than others combined!\n");
fprintf(where,
"\tso CPU util cannot be estimated\n");
+ fprintf(where,
+ "\t delta[%d].interrupt %llu\n",i,delta_cpu_counters[i].interrupt);
+ fprintf(where,
+ "\t delta[%d].idle %llu\n",i,delta_cpu_counters[i].idle);
+ fprintf(where,
+ "\t delta[%d].user %llu\n",i,delta_cpu_counters[i].user);
+ fprintf(where,
+ "\t delta[%d].kernel %llu\n",i,delta_cpu_counters[i].kernel);
fflush(where);
lib_local_cpu_util = -1.0;
Modified: trunk/src/nettest_bsd.c
===================================================================
--- trunk/src/nettest_bsd.c 2006-11-03 22:52:01 UTC (rev 84)
+++ trunk/src/nettest_bsd.c 2006-12-12 23:25:39 UTC (rev 85)
@@ -2074,7 +2074,7 @@
/* will indicate to the remote that no changes beyond the system's */
/* default should be used. Alignment is the exception, it will */
/* default to 1, which will be no alignment alterations. */
-
+
netperf_request.content.request_type = DO_TCP_MAERTS;
tcp_maerts_request->send_buf_size = rss_size_req;
tcp_maerts_request->recv_buf_size = rsr_size_req;
@@ -2331,7 +2331,7 @@
bytes_sent = ntohd(tcp_maerts_result->bytes_sent);
thruput = calc_thruput(bytes_sent);
-
+
if (local_cpu_usage || remote_cpu_usage) {
/* We must now do a little math for service demand and cpu */
/* utilization for the system(s) */
@@ -2376,7 +2376,7 @@
/* at this point, we want to calculate the confidence information. */
/* if debugging is on, calculate_confidence will print-out the */
/* parameters we pass it */
-
+
calculate_confidence(confidence_iteration,
elapsed_time,
thruput,
@@ -2457,7 +2457,7 @@
cpu_fmt_1, /* the format string */
rsr_size, /* remote recvbuf size */
lss_size, /* local sendbuf size */
- recv_size, /* how large were the recvs */
+ send_size, /* how large were the recvs */
elapsed_time, /* how long was the test */
thruput, /* what was the xfer rate */
local_cpu_utilization, /* local cpu */
@@ -11759,6 +11759,15 @@
arg1[BUFSIZ], /* argument holders */
arg2[BUFSIZ];
+ if (debug) {
+ int i;
+ printf("%s called with the following argument vector\n",
+ __func__);
+ for (i = 0; i< argc; i++) {
+ printf("%s ",argv[i]);
+ }
+ printf("\n");
+ }
strncpy(local_data_port,"0",sizeof(local_data_port));
strncpy(remote_data_port,"0",sizeof(remote_data_port));
More information about the netperf-dev
mailing list