Thanks! I already reserve huge pages from kernel command line . I reserve 6 1G hugepages. Is there any other reason for the ENOMEM? On Wed, 9 Feb 2022 at 22:44, Stephen Hemminger wrote: > On Wed, 9 Feb 2022 22:20:34 +0100 > Antonio Di Bacco wrote: > > > I have a system with two numa sockets. Each numa socket has 8GB of RAM. > > I reserve a total of 6 hugepages (1G). > > > > When I try to create a mempool (API rte_mempool_create) of 530432 mbufs > > (each one with 9108 bytes) I get a ENOMEM error. > > > > In theory this mempool should be around 4.8GB and the hugepages are > enough > > to hold it. > > Why is this failing ? > > This is likely becaus the hugepages have to be contiguous and > the kernel has to that many free pages (especially true with 1G pages). > Therefore it is recommended to > configure and reserve huge pages on kernel command line during boot. >