Bug 825 - DPDK requires more than twice as much memory as requested
Summary: DPDK requires more than twice as much memory as requested
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: core (show other bugs)
Version: 18.11
Hardware: x86 Linux
: Normal normal
Target Milestone: ---
Assignee: dev
URL:
Depends on:
Blocks:
 
Reported: 2021-10-06 13:12 CEST by Anton
Modified: 2021-10-06 14:25 CEST (History)
0 users



Attachments

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);

?

Note You need to log in before you can comment on or make changes to this bug.