Re: [dpdk-dev] [PATCH v2] mempool: fix slow allocation of large mempools

2020-01-20 Thread Thomas Monjalon
17/01/2020 11:09, Andrew Rybchenko: > On 1/17/20 1:01 PM, Olivier Matz wrote: > > On Fri, Jan 17, 2020 at 10:51:49AM +0100, Olivier Matz wrote: > >> When allocating a mempool which is larger than the largest > >> available area, it can take a lot of time: > >> > >> a- the mempool calculate the requ

Re: [dpdk-dev] [PATCH v2] mempool: fix slow allocation of large mempools

2020-01-19 Thread Ali Alnubani
> -Original Message- > From: Olivier Matz > Sent: Friday, January 17, 2020 11:52 AM > To: dev@dpdk.org > Cc: Ali Alnubani ; Anatoly Burakov > ; Andrew Rybchenko > ; Raslan Darawsheh > ; sta...@dpdk.org; Thomas Monjalon > > Subject: [PATCH v2] mempool: fix slow allocation of large mempools

Re: [dpdk-dev] [PATCH v2] mempool: fix slow allocation of large mempools

2020-01-17 Thread Andrew Rybchenko
On 1/17/20 1:01 PM, Olivier Matz wrote: > On Fri, Jan 17, 2020 at 10:51:49AM +0100, Olivier Matz wrote: >> When allocating a mempool which is larger than the largest >> available area, it can take a lot of time: >> >> a- the mempool calculate the required memory size, and tries >>to allocate it

Re: [dpdk-dev] [PATCH v2] mempool: fix slow allocation of large mempools

2020-01-17 Thread Olivier Matz
On Fri, Jan 17, 2020 at 10:51:49AM +0100, Olivier Matz wrote: > When allocating a mempool which is larger than the largest > available area, it can take a lot of time: > > a- the mempool calculate the required memory size, and tries >to allocate it, it fails > b- then it tries to allocate the

[dpdk-dev] [PATCH v2] mempool: fix slow allocation of large mempools

2020-01-17 Thread Olivier Matz
When allocating a mempool which is larger than the largest available area, it can take a lot of time: a- the mempool calculate the required memory size, and tries to allocate it, it fails b- then it tries to allocate the largest available area (this does not request new huge pages) c- add th