Re: [PATCH] eal: fixes the bug where rte_malloc() fails to allocates memory

2022-07-04 Thread Fidaullah Noonari
Hi Dmitry, > alloc_sz = RTE_ALIGN_CEIL(RTE_ALIGN_CEIL(elt_size, align) + > MALLOC_ELEM_OVERHEAD, pg_sz); > I am submitting a patch regarding this > 2. Alignment calculation depends on whether we allocated new pages or not: > > malloc_heap_alloc_on_heap_id(align = 0) -> > heap_allo

[PATCH] eal: fixes the bug where rte_malloc() fails to allocates memory

2022-05-24 Thread Fidaullah Noonari
calculating n_seg. Bugzilla ID: 800 Signed-off-by: Fidaullah Noonari --- lib/eal/common/malloc_heap.c | 2 +- lib/eal/common/malloc_mp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/eal/common/malloc_heap.c b/lib/eal/common/malloc_heap.c index a3d26fcbea..27a52266ad

[PATCH v2] app/proc-info: add rte_eal_cleanup() to avoid memory leak

2022-09-04 Thread Fidaullah Noonari
when app is launched with -m proc-info exit without rte_eal_cleanup() causing memory leakage. This commit resolves the memory leakage issue and closes app properly. Bugzilla id: 898 Signed-off-by: Fidaullah Noonari --- app/proc-info/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v4] usertools: add check for IOMMU support in dpdk-devbind

2022-10-12 Thread Fidaullah Noonari
binding with vfio driver, when IOMMU is disabled, causes program to crash. this patch adds a flag for noiommmu-mode. when this is set, if IOMMU is disabled, it changes vfio into unsafe noiommu mode and prints warning message. Signed-off-by: Fidaullah Noonari --- usertools/dpdk-devbind.py | 45

[PATCH] eal: change alloc_sz calculation which may cause unnecessarily allocation

2022-07-17 Thread Fidaullah Noonari
In try_expand_heap() alloc_sz is calculated which may result in unnecessary allocation of whole huge page, this may cause allocation limit from system or eal In response to this mail: Signed-off-by: Fidaullah Noonari --- lib/eal/common/malloc_heap.c | 2 +- lib/eal/common/malloc_mp.c | 2

[PATCH v2] eal: change alloc_sz calculation which may cause unnecessarily allocation

2022-07-28 Thread Fidaullah Noonari
://inbox.dpdk.org/dev/CAEYuUWCnRZNwxiOHEeTHw0Gy9aFJRLZtvAG9g=smuuvuemc...@mail.gmail.com/ Signed-off-by: Fidaullah Noonari --- lib/eal/common/malloc_heap.c | 2 +- lib/eal/common/malloc_mp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/eal/common/malloc_heap.c b/lib/eal/common

[PATCH] app/proc-info: add rte_eal_cleanup() to avoid memory leak

2022-08-18 Thread Fidaullah Noonari
when app is launched with -m proc-info exit without rte_eal_cleanup() causing memory leakage. This commit resolves the memory leakage issue and closes app properly. Bugzilla id: 898 Signed-off-by: Fidaullah Noonari --- app/proc-info/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a

[PATCH] usertools: add check for IOMMU support in dpdk-devbind

2022-03-08 Thread Fidaullah Noonari
binding with vfio driver, when IOMMU is disabled, causes program to crash. this patch checks for IOMMU support, if it is disabled, changes vfio into unsafe noiommu mode and prints a warning message. Signed-off-by: Fidaullah Noonari --- usertools/dpdk-devbind.py | 25 + 1

Re: [PATCH] usertools: add check for IOMMU support in dpdk-devbind

2022-03-09 Thread Fidaullah Noonari
I agree with your suggestion. I would add new flag for noiommu and submit v2 for the patch. On Tue, Mar 8, 2022 at 5:57 PM Bruce Richardson wrote: > > On Tue, Mar 08, 2022 at 05:49:01PM +0500, Fidaullah Noonari wrote: > > binding with vfio driver, when IOMMU is disabled, causes prog

[PATCH v2] usertools: add check for IOMMU support in dpdk-devbind

2022-03-14 Thread Fidaullah Noonari
binding with vfio driver, when IOMMU is disabled, causes program to crash. this patch adds a flag for noiommmu-mode. when this is set, if IOMMU is disabled, it changes vfio into unsafe noiommu mode and prints warning message. Signed-off-by: Fidaullah Noonari --- usertools/dpdk-devbind.py | 39

[PATCH v3] usertools: add check for IOMMU support in dpdk-devbind

2022-03-21 Thread Fidaullah Noonari
binding with vfio driver, when IOMMU is disabled, causes program to crash. this patch adds a flag for noiommmu-mode. when this is set, if IOMMU is disabled, it changes vfio into unsafe noiommu mode and prints warning message. Signed-off-by: Fidaullah Noonari --- usertools/dpdk-devbind.py | 47