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] Simple malloc benchtest.


On Sun, Dec 22, 2013 at 02:28:25PM +0000, Will Newton wrote:
> >
> >> Also I would recommend tetsing some larger allocations as some
> >> allocators are very fast for small allocations but perform very poorly
> >> for larger allocations. Switching to e.g. a power law distribution of
> >> allocation sizes would allow this to be done without using huge
> >> amounts of memory or runtime.
> >>
> > Preprocessing time does not matter here, it is not measured.
> 
> I'm not sure I understand.
> 
You talked that switching to power law distribution of allocation 
sizes would allow this to be done without using huge amounts of memory or runtime.


But in general we are not that constrained by memory and runtime requirements,
we could spend much more resources in generating a distribution that
will be used.

In current case trying to be clever would not help anything, see
following pattern why:

http://www.cs.northwestern.edu/~pdinda/icsclass/doc/dsa.pdf


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