iperf: Upgrade to version 2.0.5
PATCH v2 1/1 iperf: Upgrade to version 2.0.5
* Upgrade to version 2.0.5.
* New version needed since it was observed to have lower CPU utilization which resulted in better throughput performance.
* Below patches used in version 2.0.4 are no longer needed:
004-svn-r43-ro.patch (already applied) 006-iperf-die-on-connect-fail.patch (already applied) 009-delayloop.patch (equivalent solution already exists)
* Patch 000-Iperf_Fix-CPU-Usage.diff has been updated to apply to version 2.0.5
Upstream status: Submitted to meta-oe (master)
---
Version 2 changes:
Add patches for iperf 2.0.4 from meta-oe.
Removed unneeded patches.
Massaged a patch that orginally didn't apply.
.../iperf/iperf-2.0.5/000-Iperf_Fix-CPU-Usage.diff | 45 +++++ .../001-cast-to-max_size_t-instead-of-int.patch | 14 ++ .../003-fix-hyphen-used-as-minus-sign.patch | 178 ++++++++++++++++++++ .../iperf-2.0.5/005-iperf-die-on-bind-fail.patch | 15 ++ .../iperf-2.0.5/007-iperf-reporter-deadlock.patch | 68 ++++++++ .../iperf/iperf-2.0.5/008-numofreport.patch | 15 ++ .../recipes-benchmark/iperf/iperf_2.0.5.bb | 41 +++++ 7 files changed, 376 insertions(+), 0 deletions(-) create mode 100644 meta-arago-extras/recipes-benchmark/iperf/iperf-2.0.5/000-Iperf_Fix-CPU-Usage.diff create mode 100644 meta-arago-extras/recipes-benchmark/iperf/iperf-2.0.5/001-cast-to-max_size_t-instead-of-int.patch create mode 100644 meta-arago-extras/recipes-benchmark/iperf/iperf-2.0.5/003-fix-hyphen-used-as-minus-sign.patch create mode 100644 meta-arago-extras/recipes-benchmark/iperf/iperf-2.0.5/005-iperf-die-on-bind-fail.patch create mode 100644 meta-arago-extras/recipes-benchmark/iperf/iperf-2.0.5/007-iperf-reporter-deadlock.patch create mode 100644 meta-arago-extras/recipes-benchmark/iperf/iperf-2.0.5/008-numofreport.patch create mode 100644 meta-arago-extras/recipes-benchmark/iperf/iperf_2.0.5.bb
meta-arago-extras/recipes-benchmark/iperf/iperf-2.0.5/000-Iperf_Fix-CPU-Usage.diff new file +45 -0
@@ -0,0 +1,45 @@ +From c7c18bc93441872e7ff2fa47a18a12ef319b7949 Mon Sep 17 00:00:00 2001 +From: Franklin S. Cooper Jr <[email protected]> +Date: Sat, 6 Oct 2012 12:32:29 -0500 +Subject: [PATCH] iperf: Fix CPU Usage + +* Updated the patch 000-Iperf_Fix-CPU-Usage.diff to apply to iperf v2.0.5 +* That patch was largely based on the patch: + http://marc.info/?l=linux-kernel&m=119088670113210&w=2 +* The majority of the changes from 000-Iperf_Fix-CPU-Usage.diff have been + incorporated into iperf v2.0.5. +* The two remaining thread_rest changes that 000-Iperf_Fix-CPU-Usage.diff + made have been added to this version of iperf v2.0.5 + +Upstream-Status: Inappropriate [not author] + +Signed-off-by: Franklin S. Cooper Jr <[email protected]> +--- + src/Reporter.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/Reporter.c b/src/Reporter.c +index 7d9263b..4fbb712 100644 +--- a/src/Reporter.c ++++ b/src/Reporter.c +@@ -391,7 +391,7 @@ void EndReport( ReportHeader *agent ) { + if ( agent != NULL ) { + int index = agent->reporterindex; + while ( index != -1 ) { +- thread_rest(); ++ Condition_Wait( &ReportDoneCond ); + index = agent->reporterindex; + } + agent->agentindex = -1; +@@ -412,7 +412,7 @@ void EndReport( ReportHeader *agent ) { + Transfer_Info *GetReport( ReportHeader *agent ) { + int index = agent->reporterindex; + while ( index != -1 ) { +- thread_rest(); ++ Condition_Wait( &ReportDoneCond ); + index = agent->reporterindex; + } + return &agent->report.info; +-- +1.7.0.4 +
meta-arago-extras/recipes-benchmark/iperf/iperf-2.0.5/001-cast-to-max_size_t-instead-of-int.patch new file +14 -0
@@ -0,0 +1,14 @@ +Import Debian patches and fix a lot of real bugs. + +Upstream-Status: Inappropriate [not author. Above message was get from oe.dev c10c33f86903c93611023197a7f812459c2dfe2d] +--- iperf-2.0.4.orig/src/Settings.cpp.orig 2008-04-08 04:37:54.000000000 +0200 ++++ iperf-2.0.4/src/Settings.cpp 2008-05-07 17:41:03.923942801 +0200 +@@ -458,7 +458,7 @@ + case 't': // seconds to write for + // time mode (instead of amount mode) + setModeTime( mExtSettings ); +- mExtSettings->mAmount = (int) (atof( optarg ) * 100.0); ++ mExtSettings->mAmount = (max_size_t) (atof( optarg ) * 100.0); + break; + + case 'u': // UDP instead of TCP
meta-arago-extras/recipes-benchmark/iperf/iperf-2.0.5/003-fix-hyphen-used-as-minus-sign.patch new file +178 -0
178 lines not on this page · raw message
meta-arago-extras/recipes-benchmark/iperf/iperf-2.0.5/005-iperf-die-on-bind-fail.patch new file +15 -0
@@ -0,0 +1,15 @@ +Import Debian patches and fix a lot of real bugs. + +Upstream-Status: Inappropriate [not author. Above message was get from oe.dev c10c33f86903c93611023197a7f812459c2dfe2d] + +--- iperf-2.0.4/src/Listener.cpp 2009-02-23 16:20:31.000000000 -0500 ++++ iperf-2.0.4-fixed/src/Listener.cpp 2009-02-23 16:20:40.000000000 -0500 +@@ -333,7 +333,7 @@ + #endif + { + rc = bind( mSettings->mSock, (sockaddr*) &mSettings->local, mSettings->size_local ); +- WARN_errno( rc == SOCKET_ERROR, "bind" ); ++ FAIL_errno( rc == SOCKET_ERROR, "bind", mSettings ); + } + // listen for connections (TCP only). + // default backlog traditionally 5
meta-arago-extras/recipes-benchmark/iperf/iperf-2.0.5/007-iperf-reporter-deadlock.patch new file +68 -0
68 lines not on this page · raw message
meta-arago-extras/recipes-benchmark/iperf/iperf-2.0.5/008-numofreport.patch new file +15 -0
@@ -0,0 +1,15 @@ +by Kirby Zhou < kirbyzhou \x40 sohu-rd.com > +increase the queue length to avoid thread racing + +Upstream-Status: Inappropriate [not author] +--- iperf-2.0.4.orig/include/Reporter.h 2008-04-08 04:37:54.000000000 +0200 ++++ iperf-2.0.4/include/Reporter.h 2009-07-06 11:53:58.700541554 +0200 +@@ -61,7 +61,7 @@ struct server_hdr; + + #include "Settings.hpp" + +-#define NUM_REPORT_STRUCTS 700 ++#define NUM_REPORT_STRUCTS 5700 + #define NUM_MULTI_SLOTS 5 + + #ifdef __cplusplus
meta-arago-extras/recipes-benchmark/iperf/iperf_2.0.5.bb new file +41 -0
41 lines not on this page · raw message
Signature · 1 line
1.7.0.4