From: yuuko.nakase@nts.ricoh.co.jp
To: dev@dpdk.org
Subject: [dpdk-dev] half packets dropped using l2fwd in VM
Date: Thu, 31 Jul 2014 17:28:15 +0900 [thread overview]
Message-ID: <OF8D167432.8D519294-ON49257D26.0020B0BC-49257D26.002E88BF@mta.ricoh.co.jp> (raw)
Hellow everyone,
I have a question regarding l2fwd in VM.
In my environment, about half of received packets are sent but
remaining half are dropped so I get Tx: 14.88Mpps Rx: 7.4Mpps rate
for 64 bytes packets at the traffic generator machine.
On the other hand, I get Tx: 14.88Mpps Rx: 13.47Mpps using l2fwd
in Host machine only.
Something is wrong with my setting or that performance is no problem for
VM?
If there is a lack in my information, please let me know.
It will be a great help if anyone advise me!!
My environment is below.
Both case 1 and 2 get same result where rate is Tx: 14.88Mpps Rx: 7.4Mpps.
******
==Host machine
OS: Ubuntu 12.04
CPU: Xeon E5-2670 (8C/2.60GHz/20M)
RAM: 32GB
NIC: X520-DA2(dual port)
Kernel: 3.11.0
hugepages=1024, intel_iommu=on, iommu=pt, pci=assign-busses
qemu-kvm-0.14.0
[case1]
VF0 and VF2 belong to PF0
VF1 and VF3 belong to PF1
/usr/local/kvm/bin/qemu-system-x86_64 -hda ./vm1.img \
-m 4096 -cpu host -smp 4 -boot c -k ja -name m2_vm1 \
-monitor telnet::4444,server,nowait -vnc :1 -daemonize \
-device pci-assign,host=02:10.0 \
-device pci-assign,host=02:10.1 \
-device pci-assign,host=02:10.2 \
-device pci-assign,host=02:10.3
[case1]
VF0 belong to PF0
VF1 belong to PF1
/usr/local/kvm/bin/qemu-system-x86_64 -hda ./vm1.img \
-m 4096 -cpu host -smp 4 -boot c -k ja -name m2_vm1 \
-monitor telnet::4444,server,nowait -vnc :1 -daemonize \
-device pci-assign,host=02:10.0 \
-device pci-assign,host=02:10.1
==Virtual machine
OS: Ubuntu 12.04
Kernel: 3.11.0
DPDK: 1.6.0
[case1]
l2fwd -c f -n 4 -- -q 1 -p 0x3
[case2]
l2fwd -c 3 -n 4 -- -q 1 -p 0x3
==Traffic generator machine
Pktgen-DPDK
pktgen>set mac 0 <MAC addr of VM's connected port>
pktgen>start 0
******
Regards,
nks
reply other threads:[~2014-07-31 8:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=OF8D167432.8D519294-ON49257D26.0020B0BC-49257D26.002E88BF@mta.ricoh.co.jp \
--to=yuuko.nakase@nts.ricoh.co.jp \
--cc=dev@dpdk.org \
/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).