From patchwork Sat May 28 23:36:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Wang X-Patchwork-Id: 9139469 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 29386607D2 for ; Sat, 28 May 2016 15:40:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13FE125D97 for ; Sat, 28 May 2016 15:40:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F109E27F17; Sat, 28 May 2016 15:40:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3777F280B2 for ; Sat, 28 May 2016 15:40:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753049AbcE1Pkn (ORCPT ); Sat, 28 May 2016 11:40:43 -0400 Received: from mga09.intel.com ([134.134.136.24]:29126 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752934AbcE1Pki (ORCPT ); Sat, 28 May 2016 11:40:38 -0400 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP; 28 May 2016 08:40:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,379,1459839600"; d="scan'208";a="112100551" Received: from unknown (HELO otc18.sh.intel.com.com) ([10.239.48.138]) by fmsmga004.fm.intel.com with ESMTP; 28 May 2016 08:40:36 -0700 From: Wei Wang To: kvm@vger.kernel.org, qemu-devel@nongnu.org, virtio-comment@lists.oasis-open.org, virtio-dev@lists.oasis-open.org, mst@redhat.com, stefanha@redhat.com, pbonzini@redhat.com Cc: Wei Wang Subject: [PATCH 6/6] Vhost-pci RFC: Experimental Results Date: Sun, 29 May 2016 07:36:35 +0800 Message-Id: <1464478595-146533-7-git-send-email-wei.w.wang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1464478595-146533-1-git-send-email-wei.w.wang@intel.com> References: <1464478595-146533-1-git-send-email-wei.w.wang@intel.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Wei Wang --- Results | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Results diff --git a/Results b/Results new file mode 100644 index 0000000..7402826 --- /dev/null +++ b/Results @@ -0,0 +1,18 @@ +We have built a fundamental vhost-pci based inter-VM communication framework +for network packet transmission. To test the throughput affected by scaling +with more VMs to stream out packets, we chain 2 to 5 VMs, and follow the vsperf +test methodology proposed by OPNFV, as shown in Fig. 2. The first VM is +passthrough-ed with a physical NIC to inject packets from an external packet +generator, and the last VM is passthrough-ed with a physical NIC to eject +packets back to the external generator. A layer2 forwarding module in each VM +is responsible for forwarding incoming packets from NIC1 (the injection NIC) to +NIC2 (the ejection NIC). In the traditional way, NIC2 is a virtio-net device +connected to the vhost-user backend in OVS. With our proposed solution, NIC2 is +a vhost-pci device, which directly copies packets to the next VM. The packet +generator implements the RFC2544 standard, which keeps running at a 0 packet +loss rate. + +Fig. 3 shows the scalability test results. In the vhost-user case, a +significant performance drop (40%~55%) occurs when 4 and 5 VMs are chained +together. The vhost-pci based inter-VM communication scales well (no +significant throughput drop) with more VMs are chained together.