From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 19AE38E8F for ; Thu, 21 Jan 2016 02:25:12 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 20 Jan 2016 17:25:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,323,1449561600"; d="scan'208";a="885921626" Received: from shwdeisgchi083.ccr.corp.intel.com (HELO [10.239.67.119]) ([10.239.67.119]) by fmsmga001.fm.intel.com with ESMTP; 20 Jan 2016 17:25:11 -0800 To: Clarylin L , dev@dpdk.org References: From: "Tan, Jianfeng" Message-ID: <56A03376.2030903@intel.com> Date: Thu, 21 Jan 2016 09:25:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] L3 Forwarding performance of DPDK on virtio X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2016 01:25:13 -0000 Hello! On 1/21/2016 7:51 AM, Clarylin L wrote: > I am running dpdk within a virtual guest as a L3 forwarder. > > > The VM has two ports connecting to two linux bridges (in turn connecting > two physical ports). DPDK is used to forward between these two ports (one > port connected to traffic generator and the other connected to sink). I > used iperf to test the throughput. > > > If the VM/DPDK is running on passthrough, it can achieve around 10G > end-to-end (from traffic generator to sink) throughput. However if the > VM/DPDK is running on virtio (virtio-net-pmd), it achieves just 150M > throughput, which is a huge degrade. > > > On the virtio, I also measured the throughput between the traffic generator > and its connected port on VM, as well as throughput between the sink and > it's VM port. Both legs show around 7.5G throughput. So I guess forwarding > within the VM (from one port to the other) would be a big killer of the > performance. > > > Any suggestion on how I can root cause the poor performance issue, or any > idea on performance tuning techniques for virtio? thanks a lot! The L3 forwarder, you mentioned, is the l3fwd example in DPDK? If so, I doubt it can work well with virtio, see another thread "Add API to get packet type info". Thanks, Jianfeng