Re: [dpdk-dev] [RFC] mempool: implement index-based per core cache
From: Honnappa Nagarahalli <hidden>
Date: 2021-10-04 16:36:44
From: Honnappa Nagarahalli <hidden>
Date: 2021-10-04 16:36:44
<snip>
quoted
quoted
quoted
Current mempool per core cache implementation is based on pointer For most architectures, each pointer consumes 64b Replace it with index-based implementation, where in each buffer is addressed by (pool address + index)I don't think it is going to work: On 64-bit systems difference between pool address and it's elem address could be bigger than 4GB.Are you talking about a case where the memory pool size is more than 4GB?That is one possible scenario. Another possibility - user populates mempool himself with some external memory by calling rte_mempool_populate_iova() directly.
Is the concern that IOVA might not be contiguous for all the memory used by the mempool?
I suppose such situation can even occur even with normal rte_mempool_create(), though it should be a really rare one.
All in all, this feature needs to be configurable during compile time.
quoted
quoted
<snip>