From mboxrd@z Thu Jan 1 00:00:00 1970 From: gowrishankar muthukrishnan Subject: Re: Unable to run test_pmd_perf Date: Thu, 2 Feb 2017 15:28:45 +0530 Message-ID: References: <588F35BE.1000409@cse.iitb.ac.in> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "mitaliyada@cse.iitb.ac.in" To: Priyanka , "dev@dpdk.org" , "users@dpdk.org" Return-path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by dpdk.org (Postfix) with ESMTP id 16B37B6D for ; Thu, 2 Feb 2017 10:59:46 +0100 (CET) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v129wkoI005724 for ; Thu, 2 Feb 2017 04:59:46 -0500 Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) by mx0a-001b2d01.pphosted.com with ESMTP id 28c1gfahkx-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 02 Feb 2017 04:59:45 -0500 Received: from localhost by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 2 Feb 2017 19:59:43 +1000 In-Reply-To: <588F35BE.1000409@cse.iitb.ac.in> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Monday 30 January 2017 06:16 PM, Priyanka wrote: > Hi All, > > We have VMs on a physical server with both VMs having 1 core 7 GB RAM > with DPDK 16.04. The VMs are communicating using SR-IOV (per VM 1 VF > is assigned). We thought of running the test_pmd_perf to test the > number of cycles taken for RX/TX. But we are unable to get it working. > Even if we assign 4 VCPUs to the VM the app says "*no avail lcore to > test*." The command we are using are: > As far as I trail its origin in source, alloc_lcore() errors out in a situation when you do not have those lcores mentioned in -c or -l to app which are from socket where your ports are actually attached. You can print out target socket through te_eth_dev_socket_id(port_id). You need to pass one lcore atleast from this socket, instead of socket 0 (which is case by default for lcores 0xf). Use lscpu and find out what lcores you can pass from target socket id. Thanks, Gowrishankar > cd dpdk16.04/app/test > > ./build/app/test -c f -- -p 1 > > RTE>> pmd_perf_autotest > > On searching we found that it might be an issue with our VMs using SRIOV. > > Please guide us on this. > > > Thanks, > > Priyanka > >