From owner-freebsd-current@freebsd.org Tue Sep 27 00:10:27 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED126BEB9F1 for ; Tue, 27 Sep 2016 00:10:27 +0000 (UTC) (envelope-from ricera10@gmail.com) Received: from mail-yb0-x22e.google.com (mail-yb0-x22e.google.com [IPv6:2607:f8b0:4002:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AAB6DC13 for ; Tue, 27 Sep 2016 00:10:27 +0000 (UTC) (envelope-from ricera10@gmail.com) Received: by mail-yb0-x22e.google.com with SMTP id z8so1918209ybh.3 for ; Mon, 26 Sep 2016 17:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=a2AsKYkppPKoPt9a7VDbdCSsBnzQdQ0DDl82B/ZqoR0=; b=VLnKMTfAw2yQfY4ibq4HRpBWzl6/zJoGhNhVkH7bSWRWo0K5+tg0lSUx0oESIVJotP vA7sBae+6VACvEJdcQ3w9KoGIxhRd+54SsdlIijjMHnILbCzBRYKd0GM0XmO5wBV5dcn vU0CMHYWplqg2kY9J4KPRuiyQzz0Pmqh0FFRwcn3KG9KAhzLgI9bJqJOci+4AvkE9P/s zUfZLghBQs7X782uBBV/giZ47RFmHwLXTz0F4YDH76UZWLsIUaWbqvSxu+GHeTHTZBZ5 iNYnP3bglBRnLj33wh6XX94emK6uCnBUwi0iHHtymebDSSZCq8dVPGozc2ae60+lMJyO HiCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=a2AsKYkppPKoPt9a7VDbdCSsBnzQdQ0DDl82B/ZqoR0=; b=MwpNdyeGscFwOhWNqtxJqT7ZR7CMl0iQ93DCDUermpdm/bWRSg3M0ONmpuohJ/Vbyf HuyBKmmNUm1CxIYGNNs9beim/G3+JOl3DnRoIaaHxRP7d4+0FhcAR1BxNtU0S5RJufUj 3iw0T3SUDF5Y1lXUbo8LLvmqJhATOIbiLH3OTCye935AdGkhOOIKaDJadXm0H9R/1RCJ r5ul2HrnTxW/T2PgoAzA1KnAFqNS0yVo6iLoKthU02+bHAKPKIKcifFPaB0ylvPHQ9ix 3Q/XML/0QJKo105fi2lO+8PslHAvFmbi2dfMl/752+gakNPx0ibyCgpNRuVVBWNRRwX6 5W9w== X-Gm-Message-State: AE9vXwNKAM3B9Qfnd/WQW62BAVMWEeKREHslm/877NnXIflHmt+t6bL+SbY06mc38LAEQcfY00xNUy2oCVXYGQ== X-Received: by 10.37.50.205 with SMTP id y196mr19071052yby.32.1474935026820; Mon, 26 Sep 2016 17:10:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Eric Joyner Date: Tue, 27 Sep 2016 00:10:16 +0000 Message-ID: Subject: Re: [VBox] Extreme slow UDP performance between host and guest To: Howard Su , "freebsd-current@freebsd.org" , freebsd-virtual@freebsd.orgr, Sepherosa Ziehau Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2016 00:10:28 -0000 Did you use the "-b" option to set the bandwidth it uses for UDP? It defaults to 1Mb/s, which is close to what you're seeing. Plus, I think the recommendation is that you use iperf3, anyway, and I don't think it has this quirk. On Thu, Sep 1, 2016 at 2:06 AM Howard Su wrote: > I used iperf to do a quick experiment on the UDP performance between > VirtualBox and Guest through vboxnetadp. Guest is acting as server and Host > machine is acting as client. the UDP throughput is only 1/350 of TCP > throughput. > > Guest kernel is -Current and Host Kernel is 11.0-RC2. Anyone has idea? is > there any known issue in vboxnetadp? > > ------------------------------------------------------------ > Client connecting to 192.168.0.60, UDP port 5001 > Sending 1470 byte datagrams > UDP buffer size: 9.00 KByte (default) > ------------------------------------------------------------ > [ 3] local 192.168.0.1 port 48290 connected with 192.168.0.60 port 5001 > [ ID] Interval Transfer Bandwidth > [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec > [ 3] Sent 893 datagrams > [ 3] Server Report: > [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.039 ms 0/ 893 (0%) > > ------------------------------------------------------------ > Client connecting to 192.168.0.60, UDP port 5001 > Sending 4096 byte datagrams > UDP buffer size: 9.00 KByte (default) > ------------------------------------------------------------ > [ 3] local 192.168.0.1 port 58009 connected with 192.168.0.60 port 5001 > [ ID] Interval Transfer Bandwidth > [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec > [ 3] Sent 321 datagrams > [ 3] Server Report: > [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.100 ms 0/ 321 (0%) > > ------------------------------------------------------------ > Client connecting to 192.168.0.60, TCP port 5001 > TCP window size: 32.8 KByte (default) > ------------------------------------------------------------ > [ 3] local 192.168.0.1 port 15490 connected with 192.168.0.60 port 5001 > [ ID] Interval Transfer Bandwidth > [ 3] 0.0-10.0 sec 447 MBytes 374 Mbits/sec > > > -Howard > > -- > -Howard > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >