From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f52.google.com (mail-pg0-f52.google.com [74.125.83.52]) by dpdk.org (Postfix) with ESMTP id 1F43A2FDD for ; Sun, 17 Sep 2017 02:59:43 +0200 (CEST) Received: by mail-pg0-f52.google.com with SMTP id v66so3318820pgb.5 for ; Sat, 16 Sep 2017 17:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=MEuZzYnSv4jRrepWnjIlI/0ijJ+zCls16IlqvsKvYyo=; b=BUMgtVRXB7n6qklRKJ+0bUCEOyXf1lAr7kJLFbY1wpXZwgAscKA3wWcRqb9mCz4I2A mS8eRgzJC9rb1Ab9qcDaJ5SAjlpWN8bp28EFGKEynCkuwTYdxn17ltowPI5ZriCDnH8i wFFsfCE3CKX3umrHsE1EbuGWpCQ25IyM1SnvrYafyCGA7EBlHqBOy8PROX+K9EeuF51S rtUWh3+eiksV5UlrIj+viCl79USmeCe99nKDuPZHKpmMslX7j0N5bvNvPuY5lnzNwqVo ZmvIyi5AYYLZ/k+v2cDQOfNc76p6PIexXqnRo3n/dXqMk1PziSKoZtCAjbZzgsuWHBIt UYJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=MEuZzYnSv4jRrepWnjIlI/0ijJ+zCls16IlqvsKvYyo=; b=pBnMcJ0XVCrhSpN2cr81C6pJkVTGrvZyFtU2G+b3OCfve3LizznIG4wIAnZbXI510E VV+WMB0ESzUj7rarTt6aV6Zri7E8JDscsKjsTkr7G+kU1KNVv1L7Ztf6O8nCBtiNQx3J c4c4Or+OqrFOvn58fze/qq1R/FjppRXHJ9ImY6Y94syaw3wwR4c6emBnF2q9H+whoSTL 5I4FRgaD4vYvrQH3D01XtZ6cxQEANGVNuR6idHRj/voXBb7ZWUUqenFWT/iWzYiHuBwa yfybNwyTV47nastQhL6JBTjR3yLu571SyftESZUTGTnvp7zTl9MeULTZ4EFg3pxjtD6a Htag== X-Gm-Message-State: AHPjjUjhuAoIPe5VEBNiR4BccVqya58k+XAEIaIqNLh/EhugN9bOCN97 Zh9cohXPD2wcYQ== X-Google-Smtp-Source: ADKCNb7sO9alVtRRxk9GiPrW4Z8HAn2cQnAwCVRVFFjQglHTG3fveJAGvCqC7XlsV8x22TU/xzYaZg== X-Received: by 10.84.238.196 with SMTP id l4mr31910075pln.63.1505609982126; Sat, 16 Sep 2017 17:59:42 -0700 (PDT) Received: from [192.168.31.117] (c-67-188-113-47.hsd1.ca.comcast.net. [67.188.113.47]) by smtp.gmail.com with ESMTPSA id g68sm7892980pfc.64.2017.09.16.17.59.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Sep 2017 17:59:41 -0700 (PDT) From: Rex Shang Message-Id: <8700A002-DE3E-4EEE-8521-C252F02B992A@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Date: Sat, 16 Sep 2017 17:59:38 -0700 In-Reply-To: Cc: "Tan, Jianfeng" , users@dpdk.org To: Learner Study References: <3D8C6C5A-89DB-4965-8B71-53B3AC845988@gmail.com> <092dab13-f764-95f4-d3c7-1ef9423f1990@intel.com> X-Mailer: Apple Mail (2.3273) X-Mailman-Approved-At: Sun, 17 Sep 2017 16:56:35 +0200 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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: Sun, 17 Sep 2017 00:59:43 -0000 I used the tool =E2=80=9CDPDK_DIR/usertools/dpdk-setup.sh" to do all of = the initialization. It is quite intuitive to use as the steps are laid = out. Before binding, you need to bring down the link. Looks to me your = network device is =E2=80=9Cup=E2=80=9D. You should =E2=80=9Csudo ip = link set DEVICE down=E2=80=9D before you bind. Rex > On Sep 16, 2017, at 12:01 AM, Learner Study = wrote: >=20 > Forgot to show the error I see in my CentOS7 setup: >=20 > [root@localhost tools]# ./dpdk-devbind.py -b ixgbe 02:05.0 > Warning - no supported modules(DPDK driver) are loaded > Routing table indicates that interface 0000:02:05.0 is active. Not = modifying >=20 > Please help! Thanks! >=20 > On Sat, Sep 16, 2017 at 12:00 AM, Learner Study = wrote: >> Hello Rex, >>=20 >> Could you please provide steps u used to configure the interfaces and >> how u r starting test_pmd? >> I am having somewhat similar issues on Centos7. >>=20 >> Thanks a lot! >>=20 >> On Fri, Sep 15, 2017 at 7:03 PM, Tan, Jianfeng = wrote: >>> Hi Rex, >>>=20 >>>=20 >>> On 9/14/2017 6:53 AM, Rex Shang wrote: >>>>=20 >>>> Hi all >>>>=20 >>>> Just wondering if anyone has successfully have DPDK running on VM = inside >>>> Google Cloud. I=E2=80=99ve tried similar set up on my Mac Book Pro = with Virtual Box >>>> and had success. Using similar recipe, I can=E2=80=99t 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. >>>>=20 >>>> 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 =E2=80=9Cigb_uio" >>>>=20 >>>> Rex >>>>=20 >>>> ------------ >>>>=20 >>>> 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=3D163456, = size=3D2176, >>>> socket=3D0 >>>> Configuring Port 0 (socket 0) >>>> Fail to configure port 0 >>>> EAL: Error - exiting with code: 1 >>>> Cause: Start ports failed >>>=20 >>>=20 >>> When you start testpmd, please make sure the option, = --disable-hw-vlan, is >>> added. >>>=20 >>> Besides, you can apply the below patch to enable the debug mode of = virtio to >>> see what's wrong: >>>=20 >>> 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=3Dn >>> # Compile burst-oriented VIRTIO PMD driver >>> # >>> CONFIG_RTE_LIBRTE_VIRTIO_PMD=3Dy >>> -CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_INIT=3Dn >>> -CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_RX=3Dn >>> -CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_TX=3Dn >>> -CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DRIVER=3Dn >>> +CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_INIT=3Dy >>> +CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_RX=3Dy >>> +CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_TX=3Dy >>> +CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DRIVER=3Dy >>> CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DUMP=3Dn >>>=20 >>> # >>>=20