[dpdk-dev] [PATCH v12 0/3] mempool: add external mempool manager
david.hunt at intel.com
Thu Jun 16 09:47:46 CEST 2016
On 15/6/2016 5:40 PM, Olivier MATZ wrote:
> On 06/15/2016 06:34 PM, Hunt, David wrote:
>> On 15/6/2016 1:03 PM, Olivier MATZ wrote:
>>> The opaque pointer would be saved in mempool structure, and used
>>> when the mempool is populated (calling mempool_ops_alloc).
>>> The type of the structure pointed by the opaque has to be defined
>>> (and documented) into each mempool_ops manager.
>> OK, just to be sure before I post another patchset.....
>> For the rte_mempool_struct:
>> struct rte_mempool_memhdr_list mem_list; /**< List of memory
>> chunks */
>> + void *ops_args; /**< optional args for ops
>> alloc. */
>> (at the end of the struct, as it's just on the control path, not to
>> affect fast path)
> Hmm, I would put it just after pool_data.
When I move it to just after pool data, the performance of the
mempool_perf_autotest drops by 2% on my machine for the local cache tests.
I think I should leave it where I suggested.
More information about the dev