Re: [PATCH] app/testpmd: fix external buffer allocation

2022-01-18 Thread Ferruh Yigit
On 12/17/2021 9:58 AM, Dmitry Kozlyuk wrote: External pinned buffer memory (--mp-alloc=xbuf) was allocated as multiple IOVA-contiguous memzones of 2M size and 2M alignment. Due to the malloc overhead and the alignment requirement, each 2M memzone consumed 4M of hugepage memory: 2M of usable memor

[PATCH] app/testpmd: fix external buffer allocation

2021-12-17 Thread Dmitry Kozlyuk
External pinned buffer memory (--mp-alloc=xbuf) was allocated as multiple IOVA-contiguous memzones of 2M size and 2M alignment. Due to the malloc overhead and the alignment requirement, each 2M memzone consumed 4M of hugepage memory: 2M of usable memory + X of malloc overhead + (2M-X) padding. The