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

2020-07-14 Thread 王志克
; dev@dpdk.org Cc: olivier.m...@6wind.com Subject: Re: [dpdk-dev] [PATCH] mempool: fix memory allocation in memzones during retry. On 13-Jul-20 12:29 PM, Andrew Rybchenko wrote: > On 7/13/20 2:17 PM, Burakov, Anatoly wrote: >> On 13-Jul-20 4:40 AM, Zhike Wang wrote: >>> If alloca

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

2020-07-13 Thread Burakov, Anatoly
On 13-Jul-20 12:29 PM, Andrew Rybchenko wrote: On 7/13/20 2:17 PM, Burakov, Anatoly wrote: On 13-Jul-20 4:40 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

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

2020-07-13 Thread Andrew Rybchenko
On 7/13/20 2:17 PM, Burakov, Anatoly wrote: > On 13-Jul-20 4:40 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 req

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

2020-07-13 Thread Burakov, Anatoly
On 13-Jul-20 4:40 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

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

2020-07-13 Thread Andrew Rybchenko
On 7/13/20 6:40 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

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

2020-07-13 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