On 05/28/2013 08:09 PM, Václav Zeman wrote:
If the bottleneck is really in glibc, then you should probably ask them to fix it. Could the mutex be changed rwlock instead?
rwlocks don't eliminate hardware contention, so I doubt they'd be a win here.
You'd need brlocks or some RCU-like approach. But it seems a faster approach is already available, so this is somewhat besides the point.
-- Florian Weimer / Red Hat Product Security Team