test/ring: add contention stress test
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Mon, 20 Apr 2020 12:28:22 +0000 (13:28 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 21 Apr 2020 09:34:09 +0000 (11:34 +0200)
commitbf28df24e915dbe62a94e38a7c2280a8929b846b
tree480c2c4bd229311d66db6cec3ea57852c10d88ec
parentda4eae278b56e698c64d0c39939a7a55c5b6abdd
test/ring: add contention stress test

Introduce stress test for ring enqueue/dequeue operations.
Performs the following pattern on each slave worker:
dequeue/read-write data from the dequeued objects/enqueue.
Serves as both functional and performance test of ring
enqueue/dequeue operations under high contention
(for both over committed and non-over committed scenarios).

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
app/test/Makefile
app/test/meson.build
app/test/test_ring_mpmc_stress.c [new file with mode: 0644]
app/test/test_ring_stress.c [new file with mode: 0644]
app/test/test_ring_stress.h [new file with mode: 0644]
app/test/test_ring_stress_impl.h [new file with mode: 0644]