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: [patch] malloc per-thread cache ready for review


On 2017.02.01 at 01:33 -0500, DJ Delorie wrote:
> 
> Markus Trippelsdorf <markus@trippelsdorf.de> writes:
> > Unfortunately it turned out to be quite unusable.
> 
> Fixed.  Turned out to be <= where I meant <
> 
> Fix tested by building a full glibc rpm set, installing it, and building
> the full rpm set again using the just-installed glibc rpms.
> 
> Please test again :-)

Thanks. It works fine now. But I see no speedups for a simple compile
time test:

 % time g++ -w -Ofast tramp3d-v4.cpp
g++ -w -Ofast tramp3d-v4.cpp  26.42s user 0.31s system 99% cpu 26.756 total
(this is the same time as without your patch)

Using the Lockless Memory Allocator (http://locklessinc.com/articles/allocator_tricks/)
I get ~4% speedup:

 % time LD_PRELOAD=/usr/lib/libllalloc.so.1.3 g++ -w -Ofast tramp3d-v4.cpp
LD_PRELOAD=/usr/lib/libllalloc.so.1.3 g++ -w -Ofast tramp3d-v4.cpp  25.25s user 0.38s system 99% cpu 25.659 total

-- 
Markus


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