Skip to main content

A memory allocator with only 0,006% fixed overhead written from scratch

K.1.105 (La Fontaine) | Day 1 | 13:00 - 13:50 | Speakers: Nils Goroll (slink)

A memory allocator with only 0,006% fixed overhead written from scratch
A picture of the main stage at FOSDEM 2024
Open in browser
Get involved in the conversation!Join the chat

Notes

Abstract

How can you efficiently allocate tiny (kilo to megabyte sized) objects on petabytes of storage? Write a memory allocator from scratch which uses less than two bits per 4KB. This talk focusses on an interesting aspect of the SLASH/ storage engines for Varnish-Cache which uses a simple yet super efficient buddy memory allocator, a very well known algorithm from the 1960s. The primary novelty of this implementation is that it uses a fixed amount of metadata at about two bits per minimum page size. It also supports prioritized fair waiting allocations and an interactive live view.

Speakers

Nils Goroll (slink)

Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.