From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8C3AAA32A2 for ; Thu, 24 Oct 2019 18:58:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4FC2A1BFD6; Thu, 24 Oct 2019 18:58:32 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id CC46A1E9D9 for ; Thu, 24 Oct 2019 18:58:30 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us2.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id BB1D2340081; Thu, 24 Oct 2019 16:58:29 +0000 (UTC) Received: from [192.168.38.17] (91.220.146.112) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 24 Oct 2019 17:58:25 +0100 To: Ravi Kerur , References: From: Andrew Rybchenko Message-ID: <78751ab2-0e3b-4341-4090-bca86b5e1b01@solarflare.com> Date: Thu, 24 Oct 2019 19:58:20 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-Originating-IP: [91.220.146.112] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24998.003 X-TM-AS-Result: No-9.394500-8.000000-10 X-TMASE-MatchedRID: y/2oPz6gbvhq0U6EhO9EE7xygpRxo4699pLnYtQ99xIueeq1DA15NiGU b2JNxi1qxPp03TNl7otWZ1t7UIb2toyCdCnUhkaOyq0aou1D6WxGOo6Qo+alrn9xxA+iXoo5IQ+ LdPSbXXe/aXVGyObOn+bDCw1klYeznBlGMULZOT2PQVakDkJU+SpJvnwQhqdAdBaEtWosUzUumZ E5tidl1WHg9T6t+UOfEog5Fl6mNI8l8yVW0WqMWQYtEovY17GN1Mc6SC5sKVZDQS06lvRfx2lF7 OhYLlctiYmTRa/P6hPtQaKQ9741MkkjllSXrjtQOX/V8P8ail1ZDL1gLmoa/PoA9r2LThYYKrau Xd3MZDULZwgniEMnrvowLVVIYLmQ5m3LA4HrpKm9xrnlhUpncuXYOU+Es2ttwL6SxPpr1/I= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--9.394500-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24998.003 X-MDID: 1571936310-fBFRjhT0G6F9 Subject: Re: [dpdk-dev] Debug crash in bucket_enqueue () X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hello, please, see note on the following page: https://doc.dpdk.org/guides/prog_guide/mempool_lib.html#mempool-handlers Andrew. On 10/24/19 7:42 PM, Ravi Kerur wrote: > DPDK team, > > I have a simple multi process setup with OVS/DPDK as primary and another > process as secondary. OVS/DPDK sets up mempool and rings with MP/MC flags > and secondary process attaches to it. I have used > example/multi-process/simple_mp as an example. I have disabled 'ASLR' and > made sure primary and secondary use distinct EAL lcores. > > test case is that for every 10/12 packets OVS/DPDK does > rte_mempool_get() and rte_ring_enqueue() > with information about the packets > > secondary process does > rte_ring_dequeue() and rte_mempool_put() > > Couple of minutes into the test secondary process crashes with following > baktrace. > > Any other system level settings need to be set or inputs on debugging > bucket_enqueue? > > #0 0x0000555555734160 in bucket_enqueue () > #1 0x00005555555edf06 in rte_mempool_ops_enqueue_bulk (mp=0x17fa9ac80, > obj_table=0x17fac8210, n=16) at > /home/rkerur/dpdk-stable-18.11.2//x86_64-native-linuxapp-gcc/include/rte_mempool.h:704 > #2 0x00005555555f072a in __mempool_generic_put (cache=0x17fac8100, n=1, > obj_table=0x7ffff4e09050, mp=0x17fa9ac80) at > /home/rkerur/dpdk-stable-18.11.2//x86_64-native-linuxapp-gcc/include/rte_mempool.h:1249 > #3 rte_mempool_generic_put (cache=0x17fac8100, n=1, > obj_table=0x7ffff4e09050, mp=0x17fa9ac80) at > /home/rkerur/dpdk-stable-18.11.2//x86_64-native-linuxapp-gcc/include/rte_mempool.h:1285 > #4 rte_mempool_put_bulk (n=1, obj_table=0x7ffff4e09050, mp=0x17fa9ac80) at > /home/rkerur/dpdk-stable-18.11.2//x86_64-native-linuxapp-gcc/include/rte_mempool.h:1308 > #5 rte_mempool_put (obj=0x17f994300, mp=0x17fa9ac80) at > /home/rkerur/dpdk-stable-18.11.2//x86_64-native-linuxapp-gcc/include/rte_mempool.h:1326 > #6 lcore_recv (arg=0x7fffffffd5b3) at /home/rkerur/simple_mp_ovs/main.c:369 > #7 0x00005555556df8f1 in eal_thread_loop () > #8 0x00007ffff72086db in start_thread (arg=0x7ffff4e0b700) at > pthread_create.c:463 > #9 0x00007ffff6f3188f in clone () at > ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 > > Thanks, > Ravi