From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2.tohojo.dk (mail2.tohojo.dk [77.235.48.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by huchra.bufferbloat.net (Postfix) with ESMTPS id 64F6921F4FE for ; Fri, 16 Oct 2015 01:52:53 -0700 (PDT) X-Virus-Scanned: amavisd-new at mail2.tohojo.dk DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=201310; t=1444985569; bh=7m8jL6JTkV1tAzWfwIU527glF517u5ZLqe0pjuXJZLU=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=d92qdcoJTg7L7qsfX6OJZzWns/wUFh4fqiGirkkw8FjAz3bVPj2SEMjHFG5YoecOE D+V/rp8sJUeN4e8VqCuRln9turSvdCM+i6y00m+s1m51yWb+S9r0HWr8bbUhBEXu5S /YsbKXC0nYlsJafAxQRivi6NF/TdAE+obSqS1FQ0= Sender: toke@toke.dk Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 6E1B448BA9; Fri, 16 Oct 2015 10:52:48 +0200 (CEST) From: =?utf-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen?= To: "Bob \(Robert\) McMahon" References: Date: Fri, 16 Oct 2015 10:52:48 +0200 In-Reply-To: (Bob McMahon's message of "Fri, 16 Oct 2015 04:19:56 +0000") X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87wpunyz33.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "make-wifi-fast@lists.bufferbloat.net" Subject: Re: [Make-wifi-fast] iperf enhancements in 2.0.8 X-BeenThere: make-wifi-fast@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2015 08:53:15 -0000 "Bob (Robert) McMahon" writes: > Just an FYI for those who might be interested. We added RTT and CWND > samples in iperf 2.0.8 for the TCP transmitter (iperf client) as well > as UDP mean/min/max/stdev in the iperf server (assumes the clocks are > synched.) Also, much faster sampling is supported. These may be > helpful to those trying to improve wi-fi performance. To get the > output one needs to use the =E2=80=93e option. Also, RTT/CWND is linux on= ly. > Apple is evaluating the change set and *may* ship it with future > phones and Mac OS X systems. Hi Bob Any chance of getting the below patch into Iperf? Or in general, getting sub-second resolution on the timestamps output in CSV mode? Would make it easier to integrate Iperf into Flent tests (where the timestamps are used to match the output with other simultaneous test tools). -Toke --- a/src/ReportCSV.c 2007-08-29 23:57:27.000000000 +0200 +++ b/src/ReportCSV.c 2012-10-17 15:54:46.516986280 +0200 @@ -149,9 +149,8 @@ } =20 void CSV_timestamp( char *timestamp, int length ) { - time_t times; - struct tm *timest; - times =3D time( NULL ); - timest =3D localtime( × ); - strftime( timestamp, length,"%Y%m%d%H%M%S", timest ); + struct timeval tv; + gettimeofday(&tv, NULL); + snprintf(timestamp, length, "%lu.%06lu", + (unsigned long)tv.tv_sec, (unsigned long)tv.tv_usec); }