Re: [bmwg] Mean vs Median

Marius Georgescu <liviumarius-g@is.naist.jp> Thu, 12 November 2015 08:02 UTC

Return-Path: <liviumarius-g@is.naist.jp>
X-Original-To: bmwg@ietfa.amsl.com
Delivered-To: bmwg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 390301A8A11 for <bmwg@ietfa.amsl.com>; Thu, 12 Nov 2015 00:02:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.598
X-Spam-Level:
X-Spam-Status: No, score=0.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_JP=1.244, HOST_EQ_JP=1.265, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NNV-kF_RMnMj for <bmwg@ietfa.amsl.com>; Thu, 12 Nov 2015 00:02:09 -0800 (PST)
Received: from mailrelay21.naist.jp (mailrelay21.naist.jp [IPv6:2001:200:16a:50::71]) by ietfa.amsl.com (Postfix) with ESMTP id 7F23D1A06E9 for <bmwg@ietf.org>; Thu, 12 Nov 2015 00:02:09 -0800 (PST)
Received: from mailpost21.naist.jp (mailscan21.naist.jp [163.221.80.58]) by mailrelay21.naist.jp (Postfix) with ESMTP id 0BB0E41D for <bmwg@ietf.org>; Thu, 12 Nov 2015 17:02:08 +0900 (JST)
Received: from naist-wavenet124-207.naist.jp (naist-wavenet124-207.naist.jp [163.221.124.207]) by mailpost21.naist.jp (Postfix) with ESMTPSA id E5F3341C for <bmwg@ietf.org>; Thu, 12 Nov 2015 17:02:07 +0900 (JST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
From: Marius Georgescu <liviumarius-g@is.naist.jp>
In-Reply-To: <56434C78.6090502@net.in.tum.de>
Date: Thu, 12 Nov 2015 17:01:43 +0900
Content-Transfer-Encoding: quoted-printable
Message-Id: <3DADD86E-055F-4535-93B8-041B12574690@is.naist.jp>
References: <6b20c5aba195.56384250@naist.jp> <6a608b65b1c2.56384525@naist.jp> <6a60d6ebaa6a.56384561@naist.jp> <6a80d3baddd6.5638459e@naist.jp> <6aa08a52c1ca.563845da@naist.jp> <6aa09799f4a7.563846ca@naist.jp> <6b60a07c9bbf.56384707@naist.jp> <6c109c80bfc2.56384743@naist.jp> <6a60e1ff9170.56384780@naist.jp> <6a60f4388bab.563847bc@naist.jp> <6bd0f10697e2.563847f8@naist.jp> <6a409179ad4a.56384835@naist.jp> <6a80cfd8c72d.56384871@naist.jp> <6c30b15ad280.563848ae@naist.jp> <6c30f0e98215.563848ea@naist.jp> <6c10c39aeff9.56384926@naist.jp> <6ab08659b996.56384963@naist.jp> <6ab0ea4dfdd6.563849a0@naist.jp> <6ab0be62e098.563849dc@naist.jp> <6aa0abb5b14b.56384a19@naist.jp> <6aa0e679a9c8.56384a55@naist.jp> <6b60e1babb96.56384a93@naist.jp> <6b60fdd88897.56384acf@naist.jp> <6a509431f711.56384c39@naist.jp> <6a50aab7bf13.5638cb72@naist.jp> <CAPrseCo-E82O+tSvRC=4x-yXYTMEHUW6UjeQK6HBRZwXey=sKg@mail.gmail.com> <5640DA91.30502@net.in.tum.de> <9C1BEDBD-2338-4E1B-8C98-E9479FE01423@is.naist.jp> <56434C78. 6090502@net.in.tum.de>
To: bmwg@ietf.org
X-Mailer: Apple Mail (2.2104)
X-TM-AS-MML: No
X-TM-AS-Product-Ver: IMSS-7.1.0.1392-8.0.0.1202-21936.005
X-TM-AS-Result: No--20.234-5.0-31-10
X-imss-scan-details: No--20.234-5.0-31-10
X-TMASE-MatchedRID: pLrzZ2yoINWPvrMjLFD6eB5+URxv1WlBGcfGM6EiL4aqvcIF1TcLYI+1 bntEYE/17s3FANKtoAU3k9vPJrLE1EvkxiiQwWfUEmjYWS3nO0BUENBIMyKD0ab7TFVIyVJxc4i QIJxbfRqzR95c6Z6RoWk5x2oaTnVU3MzeZlPGORfmAId+2bAQwhmPWPgE2ntcSI7wNf2EvtGZH2 M7wjLTUahPDwZeB+AQ2O1Vni8l2n1vGnp4kZisNVoS15Sc+1wzyeUl7aCTy8h9WQH9y/pSXWMaK H8MJgnxCwRMSHqwyKYbMASrqYe3nKXErPkdLnD0kRs1fAcYNHHRm6N++KG8MIfAYSb4KlgZg6lO f436GBb6mysCVme9L8fkM9QvJzhOj2hRzH1UwuCDGx/OQ1GV8h6Un1N+U48NeeFAQHoVNZJvFzy vAB/ijt0H8LFZNFG7JQhrLH5KSJ0=
Archived-At: <http://mailarchive.ietf.org/arch/msg/bmwg/jo7F3MqqzOlCDTZ2BnWNQs2Wg4o>
Subject: Re: [bmwg] Mean vs Median
X-BeenThere: bmwg@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Benchmarking Methodology Working Group <bmwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/bmwg>, <mailto:bmwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/bmwg/>
List-Post: <mailto:bmwg@ietf.org>
List-Help: <mailto:bmwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/bmwg>, <mailto:bmwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Nov 2015 08:02:11 -0000

Hi Paul,


> On Nov 11, 2015, at 23:11, Paul Emmerich <emmericp@net.in.tum.de> wrote:
> 
> Hi,
> 
> On 10.11.15 02:18, Marius Georgescu wrote:
> > Can you give us more context (test setup; physical/virtualized tester/DUT; one tester/sender_receiver tester ... ) on these measurements?
> 
> Example 1: forwarding UDP packets with a userspace application at 20% of the maximum possible load between two ports (unidirectional, MoonGen as packet generator externally)
> 
> Median latency: 42 us, 99th perc: 45 us, 99.9th perc: 71 us
> 
> I then moved the same setup into a KVM VM connected via Open vSwitch and a VirtIO vNIC and the latency distribution changed (at 20% of the maximum load of the new setup). The traffic still came from an external host.
> 
> Median latency: 205 us, 99th perc: 341 us, 99.9th perc: 3030 us
> Example 2: see my other email from earlier today. The long tail there isn't quite as long because it uses a "proper" packet forwarder instead of a userspace application. But the only reason it isn't as bad there is because there was no other load on the system.
> 

Thanks for sharing the results. They are indeed quite relevant. I would like to see the rest of the draft, if possible. 

> Example 3: interesting things happen once other stuff runs on the same hypervisor. Note that this is a typical scenario for fancy NFV setups where you just deploy your VM whereever. The other VMs compete for resources and this can lead to excessive delays. There is an interesting paper by Whiteaker et al. which looks at latencies with Xen and Linux-VServer virtualization [1].
> 
> 
> > I think we should keep practicality in mind here. If we follow RFC2544.latency measurement, the frame stream has to be 2 min long. 2000 min ~ 33h  of testing for just one test sounds unreasonable to me. I would agree to have a lower bound for the sample size as RFC2544 actually recommends (n > 20).
> 
> Is there a good reason why this can't be changed to something more modern for a new standard? For example, I usually aim for 1000 timestamped packets per second in my tests which works just fine.

I don’t think it would be a problem to have n>1000, as long as the test time would be 120s (or something more reasonable than 33h).  

> 
> 
> Paul
> 
> [1] http://ccr.sigcomm.org/online/files/p39-v41n1f2-whiteakerPS.pdf