[RFC] Highly efficient reader-writer lock (EPRW) for mostly-read applications

Mukul Katiyar mukul at versa-networks.com
Tue Sep 8 05:55:12 CEST 2026


Hi all,

Sharing a userspace reader-writer lock that has been running in production in a DPDK-based network function for several years and wanted to check if there would be interest in contributing it to DPDK as rte_eprwlock.

The Enhanced Passive Reader-Writer (EPRW) lock eliminates atomic operations on the reader fast path, giving near-flat per-reader performance as core count grows. It is compatible with poll-mode lcore discipline — no heartbeat or periodic refresh required from registered threads.

Details, correctness proof, memory ordering analysis (x86-TSO and ARM), and performance evaluation against rte_rwlock and pthread_rwlock_t are in a preprint at:
https://zenodo.org/records/22636501

Would this be a useful addition to DPDK?

Regards,
Mukul Katiyar
Versa Networks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20260908/371647e8/attachment.htm>


More information about the dev mailing list