New libc malloc patch
Jason Evans
jasone at canonware.com
Tue Nov 29 22:31:06 GMT 2005
On Nov 29, 2005, at 2:21 PM, Jon Dama wrote:
> Let me take a closer look at what you are doing with regards to
> cache-lines. You seem to be implying that you are only taking care in
> regards to how you malloc within a given page?
You are correct that I am only taking care about allocations within a
given page.
> I have a suspicion that it might just be better to dump the problem
> on to
> the application in the sense that no malloc should ever be less
> than the size of one cache line. Perhaps this is what you are doing?
I am only worrying about cache line alignment for malloc's internal
data structures. It's up to the application to do this for its
allocations, if necessary (doing so for all allocations would induce
unacceptable internal fragmentation). This implementation provides
posix_memalign(3), which makes it much less painful for the
application to do so.
Jason
More information about the freebsd-current
mailing list