From owner-freebsd-current@freebsd.org Thu Sep 1 09:06:09 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 99474BCB767 for ; Thu, 1 Sep 2016 09:06:09 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: from mail-ua0-x233.google.com (mail-ua0-x233.google.com [IPv6:2607:f8b0:400c:c08::233]) (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 54B29A81 for ; Thu, 1 Sep 2016 09:06:09 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: by mail-ua0-x233.google.com with SMTP id i32so134075847uai.2 for ; Thu, 01 Sep 2016 02:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=AopuuV9RaLInIoxzJa6zFR6DehtwJQratbGhyB4UZ64=; b=BaHx6IyXEAtr1S3Lr9mE2AH4Ok4CX/XavpEAt9E4CiD1irHao6YbdK9cqrsOcgWwBe j4EZ6xzf1sqGtENyOexhxNVBSn4AbJEF8sxQ/kiyQ5RsbC5+xewFaPs+EkPxsL2pUevc gsXYq3K9pzuOdCYR6iYvBR+ehmdswldbjGD8AFGri2ZJoeLd7DPPBHqgUSxf+yfrUyha lRHMmaAjq4Pdj2D6DvV5RRAnl2oRUrVvCEKzjW6Cr5HucAXYPXIKhpl3Abk0OxkzXsMU nfMUvkKoldautKw6OapoMM0h5JOlfKONd5YKJZA5x6CubFKxFdGQmoJPERTJfx72zzXN t73g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=AopuuV9RaLInIoxzJa6zFR6DehtwJQratbGhyB4UZ64=; b=Yx1UrUNP49a/Zd/i8IgVrmNZhdypzmDVF34B/ugn9rgz2ovQ1N1QB7xkrfcgavI29d AffoIjYf2iNEv8tCR5b1tTPPUyy2WGuA04J67FuDELH2FnTLTWfsbL1ehlQ9au/iVG8A +WkBiUvbCk2lzPii3dyBeH2Xp3CM8g8kdYIeALdWbwSMonposI8w/tSD3SB55JqBA5HU io7K8FXv32CKNKxqTAoVXlsSM8Ph5GMv2MxmJzC178QOiRc9dMIZ0ZhPAv8g5DC/KwKF L4jTHz6USMhDz97xIKYFRrhNCFLdebII58BKd3kToowckdm/1/zjHLcSpavmiyDrRBI3 UIMw== X-Gm-Message-State: AE9vXwOs2swLacHWDTPeevDhIJXaMN6TJsRx1yGU1GmknC7TxQ9sHJoC4X+B7L16wMtJ7i2g35T2XDm+UIZVdw== X-Received: by 10.176.4.134 with SMTP id 6mr8674685uaw.51.1472720768470; Thu, 01 Sep 2016 02:06:08 -0700 (PDT) MIME-Version: 1.0 From: Howard Su Date: Thu, 01 Sep 2016 09:05:57 +0000 Message-ID: Subject: [VBox] Extreme slow UDP performance between host and guest To: "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.22 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Thu, 01 Sep 2016 09:06:09 -0000 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