numam-dpdk/drivers/mempool/stack
Gage Eads e75bc77f98 mempool/stack: add lock-free stack mempool handler
This commit adds support for lock-free (linked list based) stack mempool
handler.

In mempool_perf_autotest the lock-based stack outperforms the
lock-free handler for certain lcore/alloc count/free count
combinations*, however:
- For applications with preemptible pthreads, a standard (lock-based)
  stack's worst-case performance (i.e. one thread being preempted while
  holding the spinlock) is much worse than the lock-free stack's.
- Using per-thread mempool caches will largely mitigate the performance
  difference.

*Test setup: x86_64 build with default config, dual-socket Xeon E5-2699 v4,
running on isolcpus cores with a tickless scheduler. The lock-based stack's
rate_persec was 0.6x-3.5x the lock-free stack's.

Signed-off-by: Gage Eads <gage.eads@intel.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
2019-04-04 22:06:16 +02:00
..
Makefile mempool/stack: use stack library 2019-04-04 22:06:16 +02:00
meson.build mempool/stack: use stack library 2019-04-04 22:06:16 +02:00
rte_mempool_stack_version.map mempool: move stack handler as a driver 2017-04-03 19:45:45 +02:00
rte_mempool_stack.c mempool/stack: add lock-free stack mempool handler 2019-04-04 22:06:16 +02:00