DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Zhou, Tianlin" <tianlin.zhou@tekcomms.com>
To: Jason Wang <jasowang@redhat.com>, "dev@dpdk.org" <dev@dpdk.org>,
	"Ouyang,  Changchun" <changchun.ouyang@intel.com>
Subject: Re: [dpdk-dev] Poor Virtio PMD TX Performance
Date: Mon, 15 Jun 2015 07:04:17 +0000	[thread overview]
Message-ID: <7D6C3D7847A9FE4E8EB311EAC72727A04EB20A10@US-BV-EXM02-P.global.tektronix.net> (raw)
In-Reply-To: <557AAA53.1010301@redhat.com>

Hi Jason,

The same results by adding "vhostforce=on"

-device virtio-net-pci,netdev=public1,mac=00:0c:29:e1:ff:ff,ioeventfd=on -netdev tap,id=public1,ifname=tapvm02,script=/home/geo/tzhou/kvm-image/ovs.sh,downscript=/home/geo/tzhou/kvm-image/ovs_down.sh,vhostforce=on,vnet_hdr=on

Or

-device virtio-net-pci,netdev=public1,mac=00:0c:29:e1:ff:ff,ioeventfd=on -netdev tap,id=public1,ifname=tapvm02,script=/home/geo/tzhou/kvm-image/ovs.sh,downscript=/home/geo/tzhou/kvm-image/ovs_down.sh,vhostforce=on,vhost=on,vnet_hdr=on

-----Original Message-----
From: Jason Wang [mailto:jasowang@redhat.com] 
Sent: Friday, June 12, 2015 5:46 PM
To: Zhou, Tianlin; dev@dpdk.org; Ouyang, Changchun
Subject: Re: [dpdk-dev] Poor Virtio PMD TX Performance



On 06/12/2015 05:35 PM, Zhou, Tianlin wrote:
> 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. 
> I just opened log to debug why drop packets and then close it for higher performance.
>
>
> 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): 
> 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=public0,mac=00:0c:29:e1:f3:ff -netdev 
> user,id=public0,hostfwd=tcp::11022-:22 \ -device 
> virtio-net-pci,netdev=public1,mac=00:0c:29:e1:ff:ff,ioeventfd=on 
> -netdev 
> tap,id=public1,ifname=tapvm02,script=/home/geo/tzhou/kvm-image/tup.sh,
> downscript=no,vhost=on

To enable vhost for pmd I believe you need use vhostforce=on here.

>
> 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
>>
>> 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

  reply	other threads:[~2015-06-15  7:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-05  9:23 Zhou, Tianlin
     [not found] ` <F52918179C57134FAEC9EA62FA2F962511B84FEE@shsmsx102.ccr.corp.intel.com>
2015-06-12  9:35   ` Zhou, Tianlin
2015-06-12  9:45     ` Jason Wang
2015-06-15  7:04       ` Zhou, Tianlin [this message]
2015-06-12 15:46     ` Ouyang, Changchun
2015-06-05 10:06 [dpdk-dev] 答复: " 钢锁0310

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7D6C3D7847A9FE4E8EB311EAC72727A04EB20A10@US-BV-EXM02-P.global.tektronix.net \
    --to=tianlin.zhou@tekcomms.com \
    --cc=changchun.ouyang@intel.com \
    --cc=dev@dpdk.org \
    --cc=jasowang@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).