From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 37E25A0A0F for ; Wed, 30 Jun 2021 19:04:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B947540141; Wed, 30 Jun 2021 19:04:55 +0200 (CEST) Received: from delivery.mailspamprotection.com (delivery.mailspamprotection.com [146.66.121.63]) by mails.dpdk.org (Postfix) with ESMTP id F17B740040 for ; Wed, 30 Jun 2021 19:04:54 +0200 (CEST) Received: from 72.204.214.35.bc.googleusercontent.com ([35.214.204.72] helo=es18.siteground.eu) by se19.mailspamprotection.com with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1lyddq-0008N0-EC; Wed, 30 Jun 2021 12:04:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=filipjaniszewski.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mO/kbQcvaRCZHvSKYHZp9Aul0MyFPy3NFgq4zczwAqE=; b=BU7IfvRDKNHhrDh7QxUw2gYJ2P op2HYeWEvFWPza8vIKRT3z49aCSHuSwpC2T62UWFp8/unaDss+y2xYbA2qw+mhhvAv3xlxQjNC7cp rutzRgrf/XTrWwBCBlymDXNVKlGI5pcalSZDlAynxo7DpYA9Pd5U9oNakLaoiBrlbS2q++JzDGjFD tV0xU70TYJyIZmz0zT7CpIABq3ZPWXZmmRpiAvl0IGppZbv5dl6lCQ8YIR2n3iZK5nBSNDwsytKSc Qg569FsW9v4g6e2ZF1ecXiOLSguk+WwNTKIrQN2hbGmPtnoTwXK2gHI47bCCUDahNThYK6QPomv9d mxoVw23A==; Received: from [89.64.148.179] (port=43510 helo=localhost.localdomain) by es18.siteground.eu with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.90-.1) (envelope-from ) id 1lyddo-000CJb-4k; Wed, 30 Jun 2021 17:04:48 +0000 To: Muhammad Zain-ul-Abideen Cc: users References: <26c96412-1f06-2ad5-6d0e-00a8125dc81e@filipjaniszewski.com> From: Filip Janiszewski Message-ID: <20c8879c-35a6-53e4-1998-8acab3f76251@filipjaniszewski.com> Date: Wed, 30 Jun 2021 19:04:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: 35.214.204.72 X-SpamExperts-Domain: es18.siteground.eu X-SpamExperts-Username: 35.214.204.72 Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=35.214.204.72@es18.siteground.eu X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.23) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT9nsokdEpAEQH1YGBoNNBuXPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5xQ21np3XeN35PVwNbfU742Wd0YzUqJ0e16mw6AQfrNytJr Ofq3D967vNYu74pn607go34CxMJsfFVRRl+N7XQzImeN+Bchqntcx6qPeDJuhUMC83EcGqebH9oT x2HeTuJax3v+tlKtbd6bXPF88rMfBy/QrtQy7SVoZTgNx/OQB+501L6+CnLJO7mD7aiLrTKRi78W /gi/yMnX9LDbpr/nnX26KUX+b1L6+k1DC+Z1PYCALLE/0b5jktw76B6XZEtlN+9hyy0OFIPdlNhK GNtQim/uieUqjkL3lLyUqpeIsmfPfoYZI4Eyb6mxKZxvI9P0oYmumFJw1WPOgjQAUmDJrEOGw13D DTprf+X5aNACl8Q5CPklqu8h2hp0VuEr/1mduOmXUdesRq5dAZQuFU3H/5IrpZgOXXnVQ7WOTqPR f6Zv0Bhj7FNw+GOSrRboJOmeHYgHqM5or36X+4e7VKCYACmq+sEFlDmVN1ohtFzbW5Nr3CgFSZWt cgrPMOdg+obIbdXJNYC9pfGYwMoi5NhYqRd6WieF7oa3pi5AXxG7O7wqyT5p50x81ZKcmzCu2U1F PahA+c6c9hzXhA/hAFzWDN6+8DsCup5AUR3adq+ACbvAleuUtPy8TsrLw6yMOVF3EqW8CgPw7EoL RLxPxZsAgFLjQLpHyp6ln/j1jDpTIUmCR0R7KNsho6aCUmp4CCjk1AsLUsKOC205gL30DOmtNK9A suY7g+DwlaUIs+Qf8HStOfiuydarouJIxVlSfvWml3fUY+cHsYd8Vit2eZQ5sDIvttiU8Gk1cSFA P03yveB1KA/nCFlM7Kj07KDcqOr3Y80OmAux3oN13+ztUznelYRFF/QOE2DOP6VYJKS1o2t3svE7 ZJ3XtYW0BdoTQS0KaYzPVvZwixgECwyoVXiMMFLaIUe4e5Z9yLEmQzU3hrqyjqcFXNVKJ5zFW5gO wZRm4zuNRcgRKiGg7nXFaZTxTh5rlraaPqkMLEEib4+m5r4iSyBJfpjnCzNKWAWrayLo2VSeWdka Ew2BEzRyRx3CC4oi1BMd6NlIvsvDiIUHqJSTET5IrgKSqpC5j8AO0HtX0QIjIjCn1zvQuUxCBw4J 0zMC1EkB/dUo3Uq7Q+K/Z3ayN55WV0bFGLn8N/dDfCxR8uANRg4eAYyR5OaUpXxFR7d4CWpSt/sm /gYhmNcISA== X-Report-Abuse-To: spam@quarantine1.mailspamprotection.com Subject: Re: [dpdk-users] rte_mempool_get returning null X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Alright, I found the issue, was a bug introduced while moving to 21.02 (pushing a null pointer to the pool), sorry for wasting your time. Thanks Il 6/30/21 4:48 PM, Muhammad Zain-ul-Abideen ha scritto: > I am thinking you are also freeing the objects allocated after their use? > > On Wed, Jun 30, 2021, 6:51 PM Filip Janiszewski > > wrote: > > Hi, > > What would be the reason for rte_mempool_get returning null even if > rte_mempool_avail_count returns a big positive number? I know is > positive since I've added a print in my code to test that.. > > I've a strange issue where once I extract N items from the pool (where N > is the exact size of the pool) then the rte_mempool_get fails even if in > between the N extraction I've replenished the pool with rte_mempool_put > so that rte_mempool_avail_count is always positive. > > The pool is created like this: > >     data_pool_ = rte_mempool_create( >                      fdo_str_name, >                      config_->chunk_count, >                      chunk_size, >                      0, // cache_size >                      0, // private_data_size >                      nullptr, // mp_init >                      nullptr, // mp_init_arg >                      nullptr, // obj_init >                      nullptr, // obj_init_arg >                      config_->host_socket_id, >                      0 ); > > Producer and consumer are running on separate threads, but that should > not be the issue since the creation flag is 0 (Multi producer/Multi > consumer). So in my scenario is chunk_count is say 128, then after 128 > GET operations I get null even if I PUT back 128 items before this last > GET (and again, rte_mempool_avail_count is 128...) > > Is weird, since this is happening since I've upgraded to 21.02 from > 20.02.1, may I have messed up the compilation of the new DPDK? How can I > investigate this issue? > > Thanks > > -- > BR, Filip > +48 666 369 823 > -- BR, Filip +48 666 369 823