[dpdk-dev] [PATCH v3 7/7] app/crypto-perf: use single mempool

De Lara Guarch, Pablo pablo.de.lara.guarch at intel.com
Wed Oct 4 09:47:48 CEST 2017



> -----Original Message-----
> From: Akhil Goyal [mailto:akhil.goyal at nxp.com]
> Sent: Tuesday, September 26, 2017 10:21 AM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>; Doherty,
> Declan <declan.doherty at intel.com>
> Cc: dev at dpdk.org
> Subject: Re: [PATCH v3 7/7] app/crypto-perf: use single mempool
> 
> On 9/22/2017 1:25 PM, Pablo de Lara wrote:
> > In order to improve memory utilization, a single mempool is created,
> > containing the crypto operation and mbufs (one if operation is
> > in-place, two if out-of-place).
> > This way, a single object is allocated and freed per operation,
> > reducing the amount of memory in cache, which improves scalability.
> >
> > Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
> > ---
> >   app/test-crypto-perf/cperf_ops.c                 |  96 ++++--
> >   app/test-crypto-perf/cperf_ops.h                 |   2 +-
> >   app/test-crypto-perf/cperf_test_latency.c        | 361 +++++++++++--------
> ---
> >   app/test-crypto-perf/cperf_test_pmd_cyclecount.c | 364 +++++++++++-
> ----------
> >   app/test-crypto-perf/cperf_test_throughput.c     | 358 +++++++++++-----
> ------
> >   app/test-crypto-perf/cperf_test_verify.c         | 367 +++++++++++----------
> --
> >   6 files changed, 793 insertions(+), 755 deletions(-)
> >
> 
> The patch set looks good to me. Except for one comment in the 6th patch of
> the series and one comment as below.
> 
> Is it possible to move the common code at a single place for all the latency,
> cycle_count, throughput, verify cases.
> 
> I can see a lot of duplicate code in these files.

Good point. I will send a v4 with an extra patch that moves this common code to another file
(at the start of the patchset, so it is easier to review the rest of the changes).

Thanks,
Pablo

> 
> -Akhil



More information about the dev mailing list