Re: [dpdk-dev] [PATCH v2] mempool: fix memory allocation in memzones during retry.

2020-07-21 Thread Thomas Monjalon
14/07/2020 11:32, Burakov, Anatoly: > On 14-Jul-20 8:26 AM, Zhike Wang wrote: > > If allocation is successful on the first attempt, typically > > there is no problem since we allocated everything required and > > we'll terminate the loop (if memory chunk is really sufficient > > to populate require

[dpdk-dev] [PATCH v2] mempool: fix memory allocation in memzones during retry.

2020-07-14 Thread Zhike Wang
If allocation is successful on the first attempt, typically there is no problem since we allocated everything required and we'll terminate the loop (if memory chunk is really sufficient to populate required number of mempool elements). If the first attempt fails, we try to allocate half of mem_siz

Re: [dpdk-dev] [PATCH v2] mempool: fix memory allocation in memzones during retry.

2020-07-14 Thread Burakov, Anatoly
On 14-Jul-20 8:26 AM, Zhike Wang wrote: If allocation is successful on the first attempt, typically there is no problem since we allocated everything required and we'll terminate the loop (if memory chunk is really sufficient to populate required number of mempool elements). If the first attempt