Received: from eggs.gnu.org ([2001:4830:134:3::10]:47617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4Zkp-0000HU-3W for qemu-devel@nongnu.org; Wed, 09 Nov 2016 15:45:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4Zkl-0000Dr-3Q for qemu-devel@nongnu.org; Wed, 09 Nov 2016 15:45:55 -0500 Received: from indium.canonical.com ([91.189.90.7]:47781) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4Zkk-0000DY-UH for qemu-devel@nongnu.org; Wed, 09 Nov 2016 15:45:51 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1c4Zkj-0000Wm-BI for ; Wed, 09 Nov 2016 20:45:49 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 541FB2E80CE for ; Wed, 9 Nov 2016 20:45:49 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 09 Nov 2016 20:34:50 -0000 From: Thomas Huth <597351@bugs.launchpad.net> Reply-To: Bug 597351 <597351@bugs.launchpad.net> Sender: bounces@canonical.com References: <20100622164530.31796.85287.malonedeb@soybean.canonical.com> Message-Id: <20161109203450.4337.84560.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 597351] Re: Slow UDP performance with virtio device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Triaging old bug tickets ... can you still reproduce this issue with the latest version of QEMU? Have you already tried vhost? ** Changed in: qemu Status: New =3D> Incomplete -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/597351 Title: Slow UDP performance with virtio device Status in QEMU: Incomplete Bug description: I'm working on an app that is very sensitive to round-trip latency between the guest and host, and qemu/kvm seems to be significantly slower than it needs to be. The attached program is a ping/pong over UDP. Call it with a single argument to start a listener/echo server on that port. With three arguments it becomes a counted "pinger" that will exit after a specified number of round trips for performance measurements. For example: $ gcc -o udp-pong udp-pong.c $ ./udp-pong 12345 & # start a listener on port 1= 2345 $ time ./udp-pong 127.0.0.1 12345 1000000 # time a million round trips When run on the loopback device on a single machine (true on the host or within a guest), I get about 100k/s. When run across a port forward using "user" networking on qemu (or kvm, the performance is the same) and the default rtl8139 driver (both the host and guest are Ubuntu Lucid), I get about 10k/s. This seems very slow, but perhaps unavoidably so? When run in the same configuration using the "virtio" driver, I get only 2k/s. This is almost certainly a bug in the virtio driver, given that it's a paravirtualized device that is 5x slower than the "slow" hardware emulation. I get no meaningful change in performance between kvm/qemu. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/597351/+subscriptions