[dpdk-dev] [PATCH v5 5/8] hash: add read and write concurrency support
Thomas Monjalon
thomas at monjalon.net
Thu Jul 12 22:30:21 CEST 2018
12/07/2018 03:22, Wang, Yipeng1:
> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
>
> > For small windows, reader-writer locks are slower than a spin lock
> > because there are more cache bounces.
>
> Hi, Stephen,
>
> You are correct and we understand that spinlock might be slightly faster than counter based rwlock in this case. However, the counter based rwlock is the exception path when TSX fails.
>
> If performance of this exception path is a big concern, a more optimal read-write lock scheme (e.g. TLRW) should be introduced into rte_rwlock in the future.
Something like this?
eal/rwlocks: Try read/write and relock write to read locks added
https://patches.dpdk.org/patch/40254/
More information about the dev
mailing list