DPDK usage discussions
 help / color / mirror / Atom feed
* rte_memzone_reserve_aligned always allocate 1GB hugepages irrespective of the size I request I allocate
@ 2022-07-19 15:11 Antonio Di Bacco
  0 siblings, 0 replies; only message in thread
From: Antonio Di Bacco @ 2022-07-19 15:11 UTC (permalink / raw)
  To: users

I'm working on a system that has the following hugepages configuration:
##
sudo dpdk-hugepages.py -s
Node Pages Size Total
2    256   2Mb    512Mb
2    8     1Gb    8Gb
0    256   2Mb    512Mb
0    8     1Gb    8Gb
3    256   2Mb    512Mb
3    8     1Gb    8Gb
1    256   2Mb    512Mb
1    8     1Gb    8Gb
Hugepages mounted on /dev/hugepages
##

If I try to allocate memory with
rte_memzone_reserve_aligned(mem_name, 1024*1024, socket_id,
RTE_MEMZONE_2MB | RTE_MEMZONE_SIZE_HINT_ONLY |
RTE_MEMZONE_IOVA_CONTIG, RTE_CACHE_LINE_SIZE):

it always allocate the memory on 1GB hugepage.

If I remove RTE_MEMZONE_SIZE_HINT_ONLY flag, the allocation fails.


Regards.

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

only message in thread, other threads:[~2022-07-19 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 15:11 rte_memzone_reserve_aligned always allocate 1GB hugepages irrespective of the size I request I allocate Antonio Di Bacco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).