From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id D3A2BC312 for ; Fri, 12 Jun 2015 17:46:08 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 12 Jun 2015 08:46:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,602,1427785200"; d="scan'208";a="586748416" Received: from pgsmsx104.gar.corp.intel.com ([10.221.44.91]) by orsmga003.jf.intel.com with ESMTP; 12 Jun 2015 08:46:07 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by PGSMSX104.gar.corp.intel.com (10.221.44.91) with Microsoft SMTP Server (TLS) id 14.3.224.2; Fri, 12 Jun 2015 23:46:05 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.165]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.168]) with mapi id 14.03.0224.002; Fri, 12 Jun 2015 23:46:04 +0800 From: "Ouyang, Changchun" To: "Zhou, Tianlin" , "dev@dpdk.org" Thread-Topic: Poor Virtio PMD TX Performance Thread-Index: AdCfbH3K+T6mdxm0Q3KlByXb8Zi/KQCI5Y4AAABaORAA2F2+AAAM655w Date: Fri, 12 Jun 2015 15:46:03 +0000 Message-ID: References: <7D6C3D7847A9FE4E8EB311EAC72727A04EB1447D@US-BV-EXM02-P.global.tektronix.net> <7D6C3D7847A9FE4E8EB311EAC72727A04EB163A4@US-BV-EXM02-P.global.tektronix.net> In-Reply-To: <7D6C3D7847A9FE4E8EB311EAC72727A04EB163A4@US-BV-EXM02-P.global.tektronix.net> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] Poor Virtio PMD TX Performance 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: Fri, 12 Jun 2015 15:46:09 -0000 Hi Tianlin Thanks very much for your inputs, I will investigate this issue and update to you after I have any findings. Changchun > -----Original Message----- > From: Zhou, Tianlin [mailto:tianlin.zhou@tekcomms.com] > Sent: Friday, June 12, 2015 5:36 PM > To: dev@dpdk.org; Ouyang, Changchun > Subject: RE: Poor Virtio PMD TX Performance >=20 > Hi Changchun, >=20 > Thanks for your response. > Please see my embedded comments. >=20 > What kind of vhost in your test? Linux vhost or dpdk user space vhost? > [tzhou] We use Linux vhost. >=20 > Do you enable the dump/log in your test? It will decrease perf of vritio. > [tzhou] No, I did not enable dump/log in the performance testing. > I just opened log to debug why drop packets and then close it for higher > performance. >=20 >=20 > Which version of dpdk codes are you using? The tip codes in dpdk.org? > [tzhou] I used DPDK 2.0.0 and l2fwd in DPDK 2.0.0. > l2fwd start command: ./l2fwd -c 0x2 -n 1 --p 0x1 >=20 > qemu start command (I used the virtio interface for RX/TX in GUEST): > sudo kvm -m 4096M -smp 4 -hda /home/geo/yanghe/fedora20.qcow2 -boot > d -daemonize -monitor \ telnet::10024,server,nowait,nodelay \ -cpu host \= - > device e1000,netdev=3Dpublic0,mac=3D00:0c:29:e1:f3:ff -netdev > user,id=3Dpublic0,hostfwd=3Dtcp::11022-:22 \ -device virtio-net- > pci,netdev=3Dpublic1,mac=3D00:0c:29:e1:ff:ff,ioeventfd=3Don -netdev > tap,id=3Dpublic1,ifname=3Dtapvm02,script=3D/home/geo/tzhou/kvm- > image/tup.sh,downscript=3Dno,vhost=3Don >=20 > The qemu version? > [tzhou] > root@dw-2:/home/geo/tzhou/kvm-image# kvm -version QEMU emulator > version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.3), Copyright (c) 2003-2008 Fab= rice > Bellard >=20 > -Tianlin >=20 > -----Original Message----- > From: Ouyang, Changchun [mailto:changchun.ouyang@intel.com] > Sent: Monday, June 08, 2015 10:13 AM > To: Zhou, Tianlin > Cc: Ouyang, Changchun > Subject: RE: Poor Virtio PMD TX Performance >=20 > Hi tianlin, >=20 > What kind of vhost in your test? Linux vhost or dpdk user space vhost? >=20 > Do you enable the dump/log in your test? It will decrease perf of vritio. >=20 > Which version of dpdk codes are you using? The tip codes in dpdk.org? >=20 > The qemu version? >=20 > Thanks for inputs > Changchun >=20 >=20 > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zhou, Tianlin > > Sent: Friday, June 5, 2015 5:23 PM > > To: dev@dpdk.org > > Subject: [dpdk-dev] Poor Virtio PMD TX Performance > > > > Hi there, > > > > We tested TX performance of Virtio PMD by DPDK l2fwd, but found even > > at 60KPPS (720B packet length) TX rate, there is 1/1000 packet dropping > rate. > > The log shows "No free tx descriptors to transmit" in Virtio PMD. > > Increasing TX queues by modifying DPDK l2fwd can decreases packet > > dropping rate, but can't ensure no packet dropping unless > > retransmitting packets that can't be sent successfully. > > Oppositely, RX rate can be 600KPPS without packet dropping. > > > > Test Env > > - Host CPU: 4 cores, 2127.770MHz > > - Host Memory: 8G > > - Host OS: Linux dw-2 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 > > 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux > > - Guest CPU: 4 cores, 2127.770MHz > > - Guest Memory: 4G > > - Guest OS: fedora20 > > > > Anybody here face the same problem? > > > > -Tianlin