Memory allocation performance

Robert Watson rwatson at FreeBSD.org
Sat Feb 2 15:17:53 PST 2008


On Sun, 3 Feb 2008, Alexander Motin wrote:

> Robert Watson wrote:
>> Basically, the goal would be to make the pcpu cache FIFO as much as 
>> possible as that maximizes the chances that the newly allocated object 
>> already has lines in the cache.
>
> Why FIFO? I think LIFO (stack) should be better for this goal as the last 
> freed object has more chances to be still present in cache.

Sorry, brain-o -- indeed, as I described, LIFO, rather than as a I wrote. :-)

Robert N M Watson
Computer Laboratory
University of Cambridge


More information about the freebsd-hackers mailing list