On 06/22/2018 02:12 PM, Emilio G. Cota wrote: > I'm curious to see how much perf could be gained. It seems that the hold > times in SVE code for readers might not be very large, which > then wouldn't let us amortize the atomic inc of the read lock > (IOW, we might not see much of a difference compared to a regular > mutex).
In theory, the uncontended case for rwlocks is the same as a mutex. > Are you using any benchmark that shows any perf difference? Not so far. Glibc has some microbenchmarks for strings, which I will try next week, but they are not multi-threaded. Maybe just run 4 threads of those benchmark? r~