RE: [EXT] Re: [PATCH] dmadev: standardize alignment and allocation

2024-02-09 Thread Pavan Nikhilesh Bhagavatula
> Hi Pavan, > > Alloc fp_objects from rte_memory is a good idea, but this may cause > the rte_memory memory leak, especially in multi-process scenario. > > Currently, there is no mechanism for releasing such a rte_memory which > don't belong to any driver. > Yeah, secondary process will leak rte

Re: [PATCH] dmadev: standardize alignment and allocation

2024-02-03 Thread fengchengwen
Hi Pavan, Alloc fp_objects from rte_memory is a good idea, but this may cause the rte_memory memory leak, especially in multi-process scenario. Currently, there is no mechanism for releasing such a rte_memory which don't belong to any driver. So I suggest: maybe we could add rte_mem_align API wh

[PATCH] dmadev: standardize alignment and allocation

2024-02-02 Thread pbhagavatula
From: Pavan Nikhilesh Align fp_objects based on cacheline size, allocate devices and fp_objects memory on hugepages. Signed-off-by: Pavan Nikhilesh --- lib/dmadev/rte_dmadev.c | 6 ++ lib/dmadev/rte_dmadev_core.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/l