numam-dpdk/lib/librte_eal/ppc
Stephen Hemminger 9667d97c25 pflock: add phase-fair reader writer locks
This is a new type of reader-writer lock that provides better fairness
guarantees which better suited for typical DPDK applications.
A pflock has two ticket pools, one for readers and one
for writers.

Phase-fair reader writer locks ensure that neither reader nor writer will
be starved.
Neither reader or writer are preferred, they execute in alternating
phases.
All operations of the same type (reader or writer) that acquire the lock
are handled in FIFO order.
Write operations are exclusive, and multiple read operations can be run
together (until a write arrives).

A similar implementation is in Concurrency Kit package in FreeBSD.
For more information see:
   "Reader-Writer Synchronization for Shared-Memory Multiprocessor
    Real-Time Systems",
    http://www.cs.unc.edu/~anderson/papers/ecrts09b.pdf

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2021-04-14 21:59:47 +02:00
..
include pflock: add phase-fair reader writer locks 2021-04-14 21:59:47 +02:00
meson.build eal: uninline power intrinsics 2021-01-18 23:57:38 +01:00
rte_cpuflags.c eal: add intrinsics support check infrastructure 2020-10-29 22:46:31 +01:00
rte_cycles.c eal/ppc: provide arch-specific TSC frequency 2021-03-03 10:05:23 +01:00
rte_hypervisor.c eal: move arch-specific C files 2020-03-31 13:08:55 +02:00
rte_power_intrinsics.c eal: add monitor wakeup function 2021-01-18 23:59:42 +01:00