From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from outgw01.ricoh.co.jp (outgw01.ricoh.co.jp [202.248.73.10]) by dpdk.org (Postfix) with ESMTP id B3C8FB368 for ; Thu, 31 Jul 2014 10:26:20 +0200 (CEST) Received: from relay02_2.isd.ricoh.co.jp (unknown [165.96.170.152]) by outgw01.ricoh.co.jp (Ricoh Group Gateway) with ESMTP id 79F3A4F654D for ; Thu, 31 Jul 2014 17:28:17 +0900 (JST) Received: from store01.ricoh.co.jp (localhost [127.0.0.1]) by localhost.isd.ricoh.co.jp (Ricoh Group Gateway) with ESMTP id 779873CE99A for ; Thu, 31 Jul 2014 17:28:17 +0900 (JST) Received: from 127.0.0.1 (127.0.0.1) by store01.ricoh.co.jp with ESMTP; Thu, 31 Jul 2014 17:28:17 +0900 Received: from relay02.isd.ricoh.co.jp (localhost [127.0.0.1]) by relay02_2.isd.ricoh.co.jp (Ricoh Group Gateway) with ESMTP id E43383CE99A for ; Thu, 31 Jul 2014 17:28:16 +0900 (JST) Received: from zmta01.nts.ricoh.co.jp (unknown [165.96.241.38]) by relay02.isd.ricoh.co.jp (Ricoh Group Gateway) with ESMTP id E02363C417D for ; Thu, 31 Jul 2014 17:28:16 +0900 (JST) X-KeepSent: 8D167432:8D519294-49257D26:0020B0BC; type=4; name=$KeepSent To: dev@dpdk.org X-Mailer: Lotus Notes Release 7.0.2 September 26, 2006 Message-ID: From: yuuko.nakase@nts.ricoh.co.jp Date: Thu, 31 Jul 2014 17:28:15 +0900 X-MIMETrack: Serialize by Router on ZMTA01/G/RICOH(Release 8.5.3FP3 HF147|January 23, 2013) at 2014/07/31 17:28:10 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-TM-AS-MML: disable Subject: [dpdk-dev] half packets dropped using l2fwd in VM 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, 31 Jul 2014 08:26:21 -0000 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 pktgen>start 0 ****** Regards, nks