From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0131.outbound.protection.outlook.com [157.56.110.131]) by dpdk.org (Postfix) with ESMTP id 65DFD3796 for ; Fri, 12 Jun 2015 11:35:46 +0200 (CEST) Received: from SN1PR0501CA0038.namprd05.prod.outlook.com (25.163.126.176) by CO2PR05MB970.namprd05.prod.outlook.com (10.141.226.155) with Microsoft SMTP Server (TLS) id 15.1.184.17; Fri, 12 Jun 2015 09:35:45 +0000 Received: from BL2FFO11FD048.protection.gbl (2a01:111:f400:7c09::140) by SN1PR0501CA0038.outlook.office365.com (2a01:111:e400:52fe::48) with Microsoft SMTP Server (TLS) id 15.1.190.14 via Frontend Transport; Fri, 12 Jun 2015 09:35:44 +0000 Authentication-Results: spf=pass (sender IP is 192.65.42.18) smtp.mailfrom=tekcomms.com; intel.com; dkim=none (message not signed) header.d=none; Received-SPF: Pass (protection.outlook.com: domain of tekcomms.com designates 192.65.42.18 as permitted sender) receiver=protection.outlook.com; client-ip=192.65.42.18; helo=mx.danahertm.com; Received: from mx.danahertm.com (192.65.42.18) by BL2FFO11FD048.mail.protection.outlook.com (10.173.161.210) with Microsoft SMTP Server (TLS) id 15.1.190.9 via Frontend Transport; Fri, 12 Jun 2015 09:35:43 +0000 Received: from US-BV-EXH01-P.global.tektronix.net (128.181.11.14) by US-BV-EXE01-P.global.tektronix.net (128.181.15.45) with Microsoft SMTP Server (TLS) id 14.3.224.2; Fri, 12 Jun 2015 02:35:39 -0700 Received: from US-BV-EXM02-P.global.tektronix.net ([169.254.4.214]) by US-BV-EXH01-P.global.tektronix.net ([128.181.11.14]) with mapi id 14.03.0224.002; Fri, 12 Jun 2015 02:35:42 -0700 From: "Zhou, Tianlin" To: "dev@dpdk.org" , "Ouyang, Changchun" Thread-Topic: Poor Virtio PMD TX Performance Thread-Index: AdCfbH3K+T6mdxm0Q3KlByXb8Zi/KQCI5Y4AAABaORAA2F2+AA== Date: Fri, 12 Jun 2015 09:35:41 +0000 Message-ID: <7D6C3D7847A9FE4E8EB311EAC72727A04EB163A4@US-BV-EXM02-P.global.tektronix.net> References: <7D6C3D7847A9FE4E8EB311EAC72727A04EB1447D@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: [134.64.203.88] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD048; 1:cw3clXLmPei10GfTivL7+pTogzcbACjPuRyEggHuchy9HBGHyFqOVXETmMo8FxkdYIIFoNWkNaWCDPDOiA8tYs+Slhk0BfFA+uYy7g7vteopVNeKYyfG5y3jZ54xJ1opDEMxk/fs7fGk5pY/CDlDx3lCznH5n0h7dBGztE5y2Vhu4XTyuDogydNfVj3m98aJZ5YI+kFRu3LEVGebOr5QP5T7tJNrRLkXHCLE51y3O1VhugkrAxWEV63dvS5EmW4lG6MvmyXSznvaOuBMYi+Eqad9q7sOD1nDVzs/R3C+1R8yX+5ySdCCUs9lHD9PfhxvVT0yETghdJiuVTWfbnHQrdva0fP47CMmavPEaiBaYPo= X-Forefront-Antispam-Report: CIP:192.65.42.18; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(438002)(51704005)(377454003)(189002)(199003)(33656002)(2900100001)(189998001)(102836002)(55846006)(19580405001)(2920100001)(54356999)(5001970100001)(97756001)(50986999)(47776003)(2501003)(5003600100002)(62966003)(107886002)(23726002)(5001770100001)(77156002)(6806004)(2656002)(92566002)(19580395003)(87936001)(50466002)(16796002)(46406003)(106466001)(22756005)(66066001)(46102003)(76176999)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:CO2PR05MB970; H:mx.danahertm.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO2PR05MB970; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(520003)(3002001); SRVR:CO2PR05MB970; BCL:0; PCL:0; RULEID:; SRVR:CO2PR05MB970; X-Forefront-PRVS: 060503E79B X-OriginatorOrg: tekcomms.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2015 09:35:43.5106 (UTC) X-MS-Exchange-CrossTenant-Id: 937985d5-3f80-4fc9-be29-0bccc11e8b77 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=937985d5-3f80-4fc9-be29-0bccc11e8b77; Ip=[192.65.42.18]; Helo=[mx.danahertm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR05MB970 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 09:35:47 -0000 Hi Changchun, Thanks for your response. Please see my embedded comments. What kind of vhost in your test? Linux vhost or dpdk user space vhost? [tzhou] We use Linux vhost. 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.=20 I just opened log to debug why drop packets and then close it for higher pe= rformance. 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 qemu start command (I used the virtio interface for RX/TX in GUEST):=20 sudo kvm -m 4096M -smp 4 -hda /home/geo/yanghe/fedora20.qcow2 -boot d -dae= monize -monitor \ telnet::10024,server,nowait,nodelay \ -cpu host \ -device= e1000,netdev=3Dpublic0,mac=3D00:0c:29:e1:f3:ff -netdev user,id=3Dpublic0,h= ostfwd=3Dtcp::11022-:22 \ -device virtio-net-pci,netdev=3Dpublic1,mac=3D00:= 0c:29:e1:ff:ff,ioeventfd=3Don -netdev tap,id=3Dpublic1,ifname=3Dtapvm02,scr= ipt=3D/home/geo/tzhou/kvm-image/tup.sh,downscript=3Dno,vhost=3Don 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 Fabrice Bellard -Tianlin -----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 Hi tianlin, What kind of vhost in your test? Linux vhost or dpdk user space vhost? Do you enable the dump/log in your test? It will decrease perf of vritio. Which version of dpdk codes are you using? The tip codes in dpdk.org? The qemu version? Thanks for inputs Changchun > -----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 >=20 > Hi there, >=20 > We tested TX performance of Virtio PMD by DPDK l2fwd, but found even=20 > at 60KPPS (720B packet length) TX rate, there is 1/1000 packet dropping r= ate. > The log shows "No free tx descriptors to transmit" in Virtio PMD. > Increasing TX queues by modifying DPDK l2fwd can decreases packet=20 > dropping rate, but can't ensure no packet dropping unless=20 > retransmitting packets that can't be sent successfully. > Oppositely, RX rate can be 600KPPS without packet dropping. >=20 > 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 >=20 > Anybody here face the same problem? >=20 > -Tianlin