From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.iitb.ac.in (smtp1.iitb.ac.in [103.21.127.13]) by dpdk.org (Postfix) with ESMTP id EF5052BB4 for ; Wed, 22 Feb 2017 09:57:37 +0100 (CET) Received: from ldns1.iitb.ac.in (ldns1.iitb.ac.in [10.200.12.1]) by smtp1.iitb.ac.in (Postfix) with SMTP id 759CE62 for ; Wed, 22 Feb 2017 14:27:36 +0530 (IST) Received: (qmail 23006 invoked by uid 510); 22 Feb 2017 14:27:36 +0530 X-Qmail-Scanner-Diagnostics: from 10.200.1.25 by ldns1 (envelope-from , uid 501) with qmail-scanner-2.11 spamassassin: 3.4.1. mhr: 1.0. {clamdscan: 0.99.2/23105} Clear:RC:1(10.200.1.25):SA:0(0.0/5.6):. Processed in 1.155975 secs; 22 Feb 2017 14:27:36 +0530 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ldns1.iitb.ac.in X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.6 tests=HTML_MESSAGE,IITB_ORIG, PROPER_IITB_MSGID,T_RP_MATCHES_RCVD autolearn=disabled version=3.4.1 X-Spam-Pyzor: Reported 0 times. X-Envelope-From: mitaliyada@cse.iitb.ac.in X-Qmail-Scanner-Mime-Attachments: |vm_virtio.png| X-Qmail-Scanner-Zip-Files: | Received: from unknown (HELO ldns1.iitb.ac.in) (10.200.1.25) by ldns1.iitb.ac.in with SMTP; 22 Feb 2017 14:27:35 +0530 Received: from jeeves.cse.iitb.ac.in (miller.cse.iitb.ac.in [10.129.3.1]) by ldns1.iitb.ac.in (Postfix) with ESMTP id D0D2D360033; Wed, 22 Feb 2017 14:27:34 +0530 (IST) Received: by jeeves.cse.iitb.ac.in (Postfix, from userid 51934) id 8567E8C2299; Wed, 22 Feb 2017 14:27:34 +0530 (IST) Received: from [10.129.2.155] (unknown [10.129.2.155]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by jeeves.cse.iitb.ac.in (Postfix) with ESMTPSA id 4B0888C019E; Wed, 22 Feb 2017 14:27:33 +0530 (IST) To: Yuanhan Liu , Priyanka References: <58AAC534.7000004@cse.iitb.ac.in> <20170222084323.GP18844@yliu-dev.sh.intel.com> Cc: "users@dpdk.org" , "dev@dpdk.org" From: mitali Message-ID: <92b5577b-8c8a-e199-3b65-54323dbea48c@cse.iitb.ac.in> Date: Wed, 22 Feb 2017 14:25:29 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20170222084323.GP18844@yliu-dev.sh.intel.com> X-Mailman-Approved-At: Thu, 23 Feb 2017 09:51:14 +0100 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="windows-1252"; Format="flowed" Subject: Re: [dpdk-users] [dpdk-dev] seg fault in InterVM communication using virtio X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2017 08:57:38 -0000 Hi Yuanhan, We are using virt-manager to start the VMs. We are attaching the image = which shows the vNIC setup for the VMs. We have written our own dpdk application to send and receive UDP = packets. The command we are using is *./build/app/dpdkapi -c 1 -- -p 1* where dpdkapi is our application. Inside the application we are sending and receiving packets from vNIC = using rte_eth_tx_burst() and rte_eth_rx_burst(). At the sender side after 127 packets the application stops and we = observe a seg fault in dmesg. Using the print statements we observed = that it faults in rte_eth_tx_burst(). All the 127 were received at the = receiving VM. Thanks, Mitali On Wednesday 22 February 2017 02:13 PM, Yuanhan Liu wrote: > On Mon, Feb 20, 2017 at 04:00:12PM +0530, Priyanka wrote: >> Hi All, >> >> We have 2 VM running on qemu-kvm hypervisor. We have provided vNIC to the >> VMs using macvtap device and virtio as the device model in bridge mode. = We >> are running DPDK applications (udp client and server) on the VMs. We obs= erve >> that the inter-VM communication is not happening using drivers i.e igb_u= io >> and uio_pci_generic. We were able to communicate between the VMs properly >> using SRIOV. But we were not getting performance as expected so we switc= hed >> to virtio. But using virtio the DPDK communication hangs after sending 1= 28 >> packets. We also observe a seg fault in the dmesg of the VM. >> >> Please provide us some guideline to do the inter-VM communication using >> virtio. Are we correct if we are using rte_eth_tx/rx_burst to send and >> receive packets from the vNIC. > Would you provide more info, say how do you start the vm, and how do you > run the dpdk apps? Providing all the commands that could reproduce your > issue will be better. > > --yliu -------------- next part -------------- A non-text attachment was scrubbed... Name: VM_virtio.png Type: image/png Size: 149226 bytes Desc: not available URL: