Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
apenwarr
· 9y ago · 0 comments
Look up "buddy system allocator." The algorithm is super fast and easy to understand and implement. It was also the one used in the very first Linux kernels (probably for those reasons).
Comments
[–]
nathell
9y ago
It still is, as the underlying page allocator for the SLAB/SLUB/SLOB allocators. See
http://elixir.free-electrons.com/linux/latest/source/mm/page...
[–]
gjm11
9y ago
Super-fast, sure, but it wastes a ton of space on typical workloads.