From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nm50-vm8.bullet.mail.ne1.yahoo.com (nm50-vm8.bullet.mail.ne1.yahoo.com [98.138.121.152]) by dpdk.org (Postfix) with ESMTP id C49C75949 for ; Mon, 2 May 2016 19:43:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1462210979; bh=wpvyAPHI9xTFVw0EmSEdsoCZ863ygaUEt21D3mkHVzE=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=J2tBMq364OS4v9se4dehceIRo2+7+Oeq9ge8lKnxe6l9AREf1YGQcTuVBAdIvPl97P+S0deGzgfPPIIG/w9l8m2OazoWtNCWGVFW9IT4WlgM6FZxZTOhg5jx2YVroAAj5eiEjd5SVry6TXxTodoIm+7yV5uXnpaJvIZt53nK6PR9D2YLwEZRTeRbesiSSO18T8hAgfQnuX5chgOKGjbXcDDPxpkAynzcr42I2FiUUsfBcB6Xj78AP/ARCs6x5zUoYPRWOkvGG2A6dAiiIppe7KiaNzFTckZQCp4nFullk8QGFykGR53dnAqoEQEy2Rvl3czMZjz6LK4En116fUUp5w== Received: from [127.0.0.1] by nm50.bullet.mail.ne1.yahoo.com with NNFMP; 02 May 2016 17:42:59 -0000 Received: from [98.138.101.128] by nm50.bullet.mail.ne1.yahoo.com with NNFMP; 02 May 2016 17:40:07 -0000 Received: from [98.139.215.142] by tm16.bullet.mail.ne1.yahoo.com with NNFMP; 02 May 2016 17:40:07 -0000 Received: from [98.139.212.242] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 02 May 2016 17:40:07 -0000 Received: from [127.0.0.1] by omp1051.mail.bf1.yahoo.com with NNFMP; 02 May 2016 17:40:07 -0000 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 86204.51103.bm@omp1051.mail.bf1.yahoo.com X-YMail-OSG: DIry.lUVM1mKMhVUSGXMVySEBywpanhIQ_ZI5iU0e4PzU3N.FZHzgxydgfLc9w7 zfqyJW0vBTXaXsoGZJDLs5dL0VkSTEr7H7ZI7k3XG8YlTqJLoM3pBD5rDdWcNPh7LAWji8tPUv7r ZM88SUcjKK4oknSxmVCi9NhFWRe5bN1I.m1NXFCknODAucG1RoVv5jRzx_VQWEpKv3KuYT61ARTy A20r2dO5ppv8hy8kKvBC6q8.2T8pizjCOlCLkS8OGgEZRSeR3DvU64xrTJQKK1BFfyXpIljJ4pXp WYros5lNxfCq13awkTxoMh1j1jTB_byYd7tzzwgSOxjHHA7R3Lp9zqJuERcXq1xvgwbJD1vsv0P5 jIdh0MGkvqU4ds69Z7WyV430CNkRAfeVEs4uVE4Zk2qM43isRBhYQtiQlpa4eUodOfsRWkeETdwW oQZcPRw9Aac37lRBK2mbPOqf2auAAYXXaozMe.KrnLF3Ktr4tONZ.kiuHrHRTq8anvc.nMnNk0ym 0Rnuw8jk5zD3c3lCzeFso4Um99w-- Received: by 76.13.26.107; Mon, 02 May 2016 17:40:06 +0000 Date: Mon, 2 May 2016 17:40:06 +0000 (UTC) From: Yi Ba To: Yuanhan Liu Cc: "dev@dpdk.org" Message-ID: <305564846.6221071.1462210806036.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <20160406165805.GB3080@yliu-dev.sh.intel.com> References: <20160406165805.GB3080@yliu-dev.sh.intel.com> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 02 May 2016 22:41:00 +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-dev] ovs crash when running traffic from VM to VM over DPDK and vhostuser X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Yi Ba List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2016 17:43:01 -0000 Running with dpdk 16.04 and latest ovs from git, and removing "mrg_rxbuf=3D= off" from virtio params, the crash is no longer observed. However, we are w= ittnessing ovs gets stuck, and will post to ovs mailing list:2016-05-02T17:= 26:18.804Z|00111|ovs_rcu|WARN|blocked 1000 ms waiting for pmd145 to quiesce 2016-05-02T17:26:19.805Z|00112|ovs_rcu|WARN|blocked 2001 ms waiting for pmd= 145 to quiesce 2016-05-02T17:26:21.804Z|00113|ovs_rcu|WARN|blocked 4000 ms waiting for pmd= 145 to quiesce 2016-05-02T17:26:25.805Z|00114|ovs_rcu|WARN|blocked 8001 ms waiting for pmd= 145 to quiesce 2016-05-02T17:26:33.805Z|00115|ovs_rcu|WARN|blocked 16001 ms waiting for pm= d145 to quiesce 2016-05-02T17:26:49.805Z|00116|ovs_rcu|WARN|blocked 32001 ms waiting for pm= d145 to quiesce 2016-05-02T17:27:14.354Z|00072|ovs_rcu(vhost_thread2)|WARN|blocked 128000 m= s waiting for pmd145 to quiesce 2016-05-02T17:27:15.841Z|00008|ovs_rcu(urcu3)|WARN|blocked 128001 ms waitin= g for pmd145 to quiesce 2016-05-02T17:27:21.805Z|00117|ovs_rcu|WARN|blocked 64000 ms waiting for pm= d145 to quiesce 2016-05-02T17:28:25.804Z|00118|ovs_rcu|WARN|blocked 128000 ms waiting for p= md145 to quiesce =20 On Wednesday, 6 April 2016 10:56 AM, Yuanhan Liu wrote: =20 On Tue, Apr 05, 2016 at 08:36:19PM +0000, Yi Ba wrote: >=20 > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0x7ff1ddffb700 (LWP 21287)] > 0x0000000000450da7 in update_secure_len (vec_idx=3D0x7ff1ddff27f8, secure= _len=3D0x7ff1ddff27fc, id=3D13948, vq=3D0x7fe7992c8940) >=C2=A0 =C2=A0 at /home/stack/ovs-dpdk/dpdk-2.2.0/lib/librte_vhost/vhost_rx= tx.c:452 > 452=C2=A0 =C2=A0 /home/stack/ovs-dpdk/dpdk-2.2.0/lib/librte_vhost/vhost_r= xtx.c: No such file or directory. > (gdb) bt > #0=C2=A0 0x0000000000450da7 in update_secure_len (vec_idx=3D0x7ff1ddff27f= 8, secure_len=3D0x7ff1ddff27fc, id=3D13948, vq=3D0x7fe7992c8940) It looks like a known issue, which has been fixed in this release. So, could you please just try again with the latest DPDK code? It should be able to solve your issue. =C2=A0=C2=A0=C2=A0 --yliu >From yuanhan.liu@linux.intel.com Mon May 2 23:20:28 2016 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 1A22639EA for ; Mon, 2 May 2016 23:20:27 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 02 May 2016 14:20:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,569,1455004800"; d="scan'208";a="95880071" Received: from yliu-dev.sh.intel.com ([10.239.67.162]) by fmsmga004.fm.intel.com with ESMTP; 02 May 2016 14:20:26 -0700 From: Yuanhan Liu To: dev@dpdk.org Cc: huawei.xie@intel.com, Yuanhan Liu Date: Mon, 2 May 2016 14:23:42 -0700 Message-Id: <1462224230-19460-1-git-send-email-yuanhan.liu@linux.intel.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1461645951-14603-1-git-send-email-yuanhan.liu@linux.intel.com> References: <1461645951-14603-1-git-send-email-yuanhan.liu@linux.intel.com> Subject: [dpdk-dev] [PATCH v2 0/8] vhost/example cleanup/fix 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: Mon, 02 May 2016 21:20:28 -0000 I'm starting to work on the vhost ABI refactoring, that I also have to touch the vhost example code. The vhost example code, however, is very messy, full of __very__ long lines. This would make a later diff to apply the new vhost API be very ugly, therefore, not friendly for review. This is how this cleanup comes. Besides that, there is one enhancement patch, which handles the broadcast packets so that we could rely the ARP request packet, to let vhost-switch be more like a real switch. There is another patch that (hopefully) would fix the mbuf allocation failure ultimately. I also added some guidelines there as comments to show how to count how many mbuf entries is enough for our usage. In another word, an example is meant to be clean/simple and with good coding style so that people can get the usage easily. So, one way or another, this patch is good to have, even without this ABI refactoring stuff. Note that I'm going to apply it before the end of this week, if no objections. v2: - some checkpatch fixes - cleaned the code about device statistics --- Yuanhan Liu (8): examples/vhost: remove the non-working zero copy code examples/vhost: remove unused macro and struct examples/vhost: use tailq to link vhost devices examples/vhost: use mac compare helper function directly examples/vhost: handle broadcast packet examples/vhost: fix mbuf allocation failure examples/vhost: switch_worker cleanup examples/vhost: embed statistics into vhost_dev struct doc/guides/sample_app_ug/vhost.rst | 36 +- examples/vhost/main.c | 2394 ++++++------------------------------ examples/vhost/main.h | 56 +- 3 files changed, 391 insertions(+), 2095 deletions(-) -- 1.9.3