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 D2F73A0519; Sat, 27 Jun 2020 20:28:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DE6FE1BFFE; Sat, 27 Jun 2020 20:28:15 +0200 (CEST) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by dpdk.org (Postfix) with ESMTP id 73E931BFFA for ; Sat, 27 Jun 2020 20:28:14 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 411B7A0521; Sat, 27 Jun 2020 20:28:14 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Sat, 27 Jun 2020 18:28:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 19.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alexander.pshenichnikov@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 494] rte_pktmbuf_pool_create returns EINVAL instead of ENOMEM in rte_errno when not enough huge pages memory 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" https://bugs.dpdk.org/show_bug.cgi?id=3D494 Bug ID: 494 Summary: rte_pktmbuf_pool_create returns EINVAL instead of ENOMEM in rte_errno when not enough huge pages memory Product: DPDK Version: 19.11 Hardware: All OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: alexander.pshenichnikov@gmail.com Target Milestone: --- DPDK: dpdk-stable-19.11.3 GCC: Ubuntu 7.5.0-3ubuntu1~18.04 OS: Ubuntu 18.04 LTS Steps to reproduce: 1. Allocate total 32 huge pages of size 2048K echo 32 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages 2. Request testpmd to create 32768 mbufs ./build/app/testpmd -c7 --vdev=3Dnet_pcap,iface=3Dnet0 -- -i --nb-cores=3D1 --nb-ports=3D1 --total-num-mbufs=3D32768 3. Notice 'Invalid argument' in error description testpmd: preferred mempool ops selected: ring_mp_mc EAL: Error - exiting with code: 1 Cause: Creation of mbuf pool for socket 0 failed: Invalid argument Expected result: Error message should say=20 "Cause: Creation of mbuf pool for socket 0 failed: Cannot allocate memory" i.e rte_errno should be EINVAL=20 Suspected commit: commit 3a3d0c75b43e8d1670c5ea6bf85cb3e1e60dfa2b Author: Olivier Matz Date: Fri Jan 17 10:51:49 2020 +0100 mempool: fix slow allocation of large pools --=20 You are receiving this mail because: You are the assignee for the bug.=