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 158EAA0A0F for ; Wed, 30 Jun 2021 15:50:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B84640141; Wed, 30 Jun 2021 15:50:58 +0200 (CEST) Received: from delivery.mailspamprotection.com (delivery.mailspamprotection.com [146.66.121.166]) by mails.dpdk.org (Postfix) with ESMTP id A652C40040 for ; Wed, 30 Jun 2021 15:50:57 +0200 (CEST) Received: from 72.204.214.35.bc.googleusercontent.com ([35.214.204.72] helo=es18.siteground.eu) by se22.mailspamprotection.com with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1lyac2-0006Lx-Ma for users@dpdk.org; Wed, 30 Jun 2021 08:50:56 -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: MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DJTga34ASzj9qzIcuvc/09R2vIjvzpMIMJfWFfqKDTI=; b=UM4Kc7Ne8B1Rsr6iMIFtiJLynh vOGUEraDCN9i0+rimR73Zys6N8xecSSyXIhl/Tb6tLdGHzunReH2Cwu5xJbmk8OXqVLgyF4ffOP/w BP+W/l3tpu7LnB77QSO5Sz2aSryvddWZqBjNhXfNxT74HrdU9UEsrh/6Wj0TrWgFNjLhmqF/9GXXo V/2lpMq3KKmQ58D1a9X5irK7BJS2lbU706n77/7/fPJC/b0DVWIEfs8XDjJuAJZZeVNnjUh2E0BTj lFNAJl99cV1lMDLPNtSfuO+whv0I4FiVA+6Z6MCMIlQtL9yeg2RHNUAkmRqBotzqAgmJd+88L6CTx uYtWBTew==; Received: from [89.64.148.179] (port=42072 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 1lyac0-00096H-9D for users@dpdk.org; Wed, 30 Jun 2021 13:50:44 +0000 To: "users@dpdk.org" From: Filip Janiszewski Message-ID: <26c96412-1f06-2ad5-6d0e-00a8125dc81e@filipjaniszewski.com> Date: Wed, 30 Jun 2021 15:50:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 7bit 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.26) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT+rwTxMJCYgw8iYSS5SA251PUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5wDtBK3p5VcS6iRNP7EipR8fYzfQXcfqmra3dmoHS4yguqU pA94aa/LUuf8bqzv11lWuRWrkPihq53YqAd1ENNq6iAM41hAeV/RVyTQeiNgOIMaxvXc9tQ1fZaW Jxab/NLu+GFU0sCml2vPee3sRKccf6uNtfvhlxVIcNsI7TpuMmCm1Mqx/0+DydNzT9K7qSnD/KIZ FjZmfdcVjL2SVfcQjmlJySLkQdPf+nBedSzwCmfenOukD31wzoxNLsD+qwR+2ViZMo6KCoS3Q3la AVGdXpnMT5mZ0ViAnM4Z+9gjdWWLX2ZbQb3UJKihEmoDuwh8ZolFwwybCr3yWDyr1A1PvRkWzsAg aWolxIxCj2GHto6atsxaFkWS/KO9ggVt7y11v0HCq9Ij3WgoQoezM+scaWWR7drMd0qbJIo1RVCX ie2VXGdtLyog7ui50fJvZPXx1zG+dBgRGQy5Evn9+jdEgn5yrhquUfGKFVmhdtT5snHd0G1x4pfZ 1aISb7ugeb3EER4aaezxB4UAOdANOt+ul3AsDBujjw7GCggXV/wpTFs765aq/7Ihe5JpNEYIVsOM yGnDIpSchlco6RIDoNg/2Wq2InZGQXRwgp4DivepysN6jYX/nXkLyQnRCh0nB+uYUazmWajDqA7N T8Js52zSASJFC/49WOPBr5nlEUI4xNminCxz7jUNWjVVhew0+GNKC5XROoL23kHH2wGTQk+5ojk0 itN7U9vKLMxM6CpwoFXaDqbyZkBgwlsmJSApZEqGwbl8TXg3XKOyYkvqwVxA/SO94N/2SEEH7lin r52fw+KWcJtmG1plI+Nh+fOKdo9dSwHv18bIXaCSozrY6YvBicRNxE8lHVRedXHzx9B2331lF87H XtkB1vLi4H9iqNtEKrhF3YMHhy2ES3ikbEP/5ofDAICjZnkzActmA21Kk071nl8LtSoTAZ7CV7UR iTwh1nDzQkFBVYGPvfegTl+Dfqb5R4VemuUI6bcEARsm0BSzT3e/vErSojFNgZ+z2eBRGMCLmveJ Ez/K74eczsDjUYzyeeQlRL3BCK088rhJO2eupYYdzPm7YfRDaULOU2k3qaBFfCaFoX7lbNqfdmmz 2Fm01HXrVQ4RYy46tWH9VYjfMCvRZi/l0agnbmEWZxQ= X-Report-Abuse-To: spam@quarantine1.mailspamprotection.com Subject: [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" 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