[RESEND PATCH v9] Mutex: Add pthread mutex tunables

Carlos O'Donell carlos@redhat.com
Thu Nov 29 18:46:00 GMT 2018


On 11/28/18 12:21 AM, kemi wrote:
>>>> +
>>>> +glibc {
>>>> +  pthread {
>>>> +    mutex_spin_count {
>>>> +      type: INT_32
>>>> +      minval: 0
>>>> +      maxval: 30000
>>>> +      default: 100
>>>> +    }
>>>> +  }
>>>> +}
>>>>
> I don't like the duplication of DEFAULT_ADAPTIVE_MAX here,
> similarly all the other duplicated parameters in glibc.elision
> namespace, but I don't think we can do better without a lot
> more work to allow macro expansion.
> 
> OK.
>  let's just keep the magic number 100 here?

Yes. That's fine. I started another thread for this:
https://www.sourceware.org/ml/libc-alpha/2018-11/msg00723.html

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list