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: [RFC] Dynamic lock elision support


On Tue, 2015-08-18 at 16:58 -0500, Paul E. Murphy wrote:
> Was any consensus reached regarding adding environment variables for
> tuneables? The only alternative I've seen floated is to use HWCAP bits to
> point to a separate variant of libpthread. It seemed more undesirable.
> 
> I like Andi's approach, and am willing to rework and resubmit Andi's
> patchset for the remaining archs if there is agreement with his approach.
> 
> I think we would all benefit from a runtime mechanism to transition
> into TLE while we work to best utilize this new tool.
> 
How do we move this forward and who needs to be brought into the
consensus?

> 
> On 08/18/2015 11:46 AM, Adhemerval Zanella wrote:
> > Hi,
> >
> > Andi Kleen has sent some patches to add tunables for lock elision with
> > NPTL algorithms:
> >
> > http://patchwork.sourceware.org/patch/4358/
> > http://patchwork.sourceware.org/patch/4355/
> > http://patchwork.sourceware.org/patch/4356/
> > http://patchwork.sourceware.org/patch/4359/
> > http://patchwork.sourceware.org/patch/4357/
> > http://patchwork.sourceware.org/patch/4361/
> > http://patchwork.sourceware.org/patch/4360/
> >
> > But he has not yet ping or followed up with these.  I also would prefer
> > to add tunable to be as platform agnostic as possible, since we have
> > 3 architectures that support LE (x86, ppc, zarch).  So I would suggest
> > you work on this options and/or adjust the patch on these.
> >
> > Also, we may want to avoid a configure flag and enable LE support as
> > default for powerpc, but disable as default (enabled through env. vars
> > as Andi Kleen patchset).
> >
> > On 18-08-2015 13:10, Paul E. Murphy wrote:
> >> Elided locks can have mixed overall performance in practice. That is, there is some non-trivial tuning a user might have to do to see the positive benefits. Additionally, when tuning the adaptive lock constants on PPC, my experimentation seems to correlate tuned values with both the number of hardware threads per core, and the behavior of the application.
> >>
> >> My initial thought is elision should be disabled by default, with an environment variable to toggle both support, and potentially override tuning constants.
> >>
> >> Paul
> >>
> 



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