This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCHv2 0/2] Tunables for glibc


On Wed, 2016-05-11 at 19:21 -0700, Andrew Pinski wrote:
> I have a case where I want to have
> a tunable parameter for pthread_mutex_lock where we spin a little bit
> in userspace before calling futex as people use pthread_mutex's as
> normal locks and in the case of huge number of cores we should not
> call futex if the time spent inside the lock is small.

This (ie, spinning and back-off on all mutex types) is something I
planned to do for all archs.  If you have experimented and found
spinning/back-off numbers that work well for a particular arch, please
let me know.
I'd also be happy to review any patches you might have.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]