]> git.droids-corp.org - dpdk.git/commit
app/test: add allocator performance benchmark
authorDmitry Kozlyuk <dkozlyuk@nvidia.com>
Thu, 3 Feb 2022 18:13:32 +0000 (20:13 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 8 Feb 2022 20:32:53 +0000 (21:32 +0100)
commitc62b318a9f72f9d1480d65ece64e38c0986ab57f
treed6e91aa503749fb258918a74f738a9c283654f3c
parent1ba4f6735b5f44106fada88b2bf5a93e684c0b63
app/test: add allocator performance benchmark

Memory allocator performance is crucial to applications that deal
with large amount of memory or allocate frequently. DPDK allocator
performance is affected by EAL options, API used and, at least,
allocation size. New autotest is intended to be run with different
EAL options. It measures performance with a range of sizes
for dirrerent APIs: rte_malloc, rte_zmalloc, and rte_memzone_reserve.

Work distribution between allocation and deallocation depends on EAL
options. The test prints both times and total time to ease comparison.

Memory can be filled with zeroes at different points of allocation path,
but it always takes considerable fraction of overall timing. This is why
the test measures filling speed and prints how long clearing takes
for each size as a reference (for rte_memzone_reserve estimations
are printed).

Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Reviewed-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
MAINTAINERS
app/test/meson.build
app/test/test_malloc_perf.c [new file with mode: 0644]