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: malloc cache/trace preview


On 09/02/16 22:51, DJ Delorie wrote:
> 
> I just pushed to branch dj/malloc two features I've been working on,
> for preview and criticism:
> 
> First, a per-thread cache that speeds up small (<1024) allocations by
> up to 5-10x (average 2x).
> 
> Second, the start of a low-overhead workload tracing feature that can
> be (eventually) enabled for an existing program to capture its malloc
> et al calls and later replay them for benchmarking.
> 

i think the sbrk in the ctor of the trace tool is not ok,
if there are malloc calls using brk before that ctor.
(makes the malloc heap non-contiguous.)

(and probably the tmp filename should come from the env)


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