All of lore.kernel.org
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 494] rte_pktmbuf_pool_create returns EINVAL instead of ENOMEM in rte_errno when not enough huge pages memory
@ 2020-06-27 18:28 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2020-06-27 18:28 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=494

            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=net_pcap,iface=net0 -- -i --nb-cores=1
--nb-ports=1 --total-num-mbufs=32768

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 
"Cause: Creation of mbuf pool for socket 0 failed: Cannot allocate memory"

i.e rte_errno should be EINVAL 

Suspected commit:

commit 3a3d0c75b43e8d1670c5ea6bf85cb3e1e60dfa2b
Author: Olivier Matz <olivier.matz@6wind.com>
Date:   Fri Jan 17 10:51:49 2020 +0100

    mempool: fix slow allocation of large pools

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-27 18:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-27 18:28 [dpdk-dev] [Bug 494] rte_pktmbuf_pool_create returns EINVAL instead of ENOMEM in rte_errno when not enough huge pages memory bugzilla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.