From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 714672FDD for ; Sat, 16 Sep 2017 04:03:12 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Sep 2017 19:03:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,400,1500966000"; d="scan'208";a="135946432" Received: from tanjianf-mobl.ccr.corp.intel.com (HELO [10.255.28.237]) ([10.255.28.237]) by orsmga002.jf.intel.com with ESMTP; 15 Sep 2017 19:03:09 -0700 To: Rex Shang , users@dpdk.org References: <3D8C6C5A-89DB-4965-8B71-53B3AC845988@gmail.com> From: "Tan, Jianfeng" Message-ID: <092dab13-f764-95f4-d3c7-1ef9423f1990@intel.com> Date: Sat, 16 Sep 2017 10:03:08 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <3D8C6C5A-89DB-4965-8B71-53B3AC845988@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-users] Running DPDK on Google Cloud Compute Engine (GCE) 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: Sat, 16 Sep 2017 02:03:12 -0000 Hi Rex, On 9/14/2017 6:53 AM, Rex Shang wrote: > Hi all > > Just wondering if anyone has successfully have DPDK running on VM inside Google Cloud. I’ve tried similar set up on my Mac Book Pro with Virtual Box and had success. Using similar recipe, I can’t have testpmd pass the initialization. Before I spend too much time, just wondering if I am working on mission impossible. ;) Your input is greatly appreciated. > > Here is my setup: > Google Cloud Compute Engine > 4 vCore with 8 GB of memory > Ubuntu 16.04 LTS > 3 NIC with 2 used for DPDK (driver: net_virtio); I am a bit doubtful about this NIC but so far the NIC is up with “igb_uio" > > Rex > > ------------ > > EAL: Detected 4 lcore(s) > EAL: No free hugepages reported in hugepages-1048576kB > EAL: Probing VFIO support... > EAL: VFIO support initialized > EAL: PCI device 0000:00:04.0 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 1af4:1000 net_virtio > EAL: PCI device 0000:00:05.0 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 1af4:1000 net_virtio > EAL: PCI device 0000:00:06.0 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 1af4:1000 net_virtio > Interactive-mode selected > USER1: create a new mbuf pool : n=163456, size=2176, socket=0 > Configuring Port 0 (socket 0) > Fail to configure port 0 > EAL: Error - exiting with code: 1 > Cause: Start ports failed When you start testpmd, please make sure the option, --disable-hw-vlan, is added. Besides, you can apply the below patch to enable the debug mode of virtio to see what's wrong: diff --git a/config/common_base b/config/common_base index 5e97a08..5863203 100644 --- a/config/common_base +++ b/config/common_base @@ -328,10 +328,10 @@ CONFIG_RTE_LIBRTE_DPAA2_DEBUG_TX_FREE=n # Compile burst-oriented VIRTIO PMD driver # CONFIG_RTE_LIBRTE_VIRTIO_PMD=y -CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_INIT=n -CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_RX=n -CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_TX=n -CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DRIVER=n +CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_INIT=y +CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_RX=y +CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_TX=y +CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DRIVER=y CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DUMP=n #