Re: [PATCH] mempool: fix rte_mempool_avail_count may segment fault when used in multiprocess

2022-11-14 Thread changfengnan
It seems that this modification ignores some certain cases, for example calling rte_mempool_create_empty directly, maybe add a new flag bit to indicate when to put tailq entry into rte_mempool_tailq list is a better way ? Looking forward to any suggestions. Thanks. Fengnan Chang. changfengnan

[PATCH] mempool: fix rte_mempool_avail_count may segment fault when used in multiprocess

2022-11-14 Thread changfengnan
fault. Fix this by put tailq entry into rte_mempool_tailq after populate. Signed-off-by: changfengnan --- lib/mempool/rte_mempool.c | 40 +++ 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/lib/mempool/rte_mempool.c b/lib/mempool/rte_mempool.c index

Question about the logical of remap_segment when memory init

2022-10-24 Thread changfengnan
When doing test in spdk, we found a problem: when we try alloc 2048 hugepages for dpdk, sometimes memory init would be fail. This is some useful log: EAL: Detected memory type: socket_id:0 hugepage_sz:2097152 EAL: Detected memory type: socket_id:1 hugepage_sz:2097152 EAL: Creating 4 segment lists: