Bug 825

Summary: DPDK requires more than twice as much memory as requested
Product: DPDK Reporter: Anton (maaaah)
Component: coreAssignee: dev
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: 18.11   
Target Milestone: ---   
Hardware: x86   
OS: Linux   

Description Anton 2021-10-06 13:12:27 CEST
I am trying to allocate 32Gb memory via rte_calloc applying config changes advised in https://bugs.dpdk.org/show_bug.cgi?id=608. I am using 1Gb hugepages. However, in order to success, the system requires to reserve 66 pages which is too much - we just don't have enough RAM on our production hosts.

Please advise.
Comment 1 Anton 2021-10-06 14:25:04 CEST
Btw if its by design or difficult to fix could you please tell if I can use other methods to allocate? Say, directly mmap hugepage via something like:

mmap(NULL, memory_size_, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, -1, 0);

?