~/talk

Slab allocators

Talkat C++Now 2019 · 2019-05-05..05-10· [linux-and-operating-systems]
links:none on file
slides:none on file

Implements a fixed-size slab allocator that requests pages from the OS via mmap/VirtualAlloc and carves each page into objects (example uses 512‑byte objects resulting in seven usable slots once metadata is stored). Each page lives on one of three lists — partial/empty/full lists — and each free slot is linked by a free head threaded through objects so allocation and deallocation are constant time. Completely empty slabs can return memory to the OS; beware thrashing when moving pages between lists.

AI-written summary · about

  1. 0:00Intro
  2. 0:30Pages
  3. 1:23Slab allocators
  4. 2:00Slab
  5. 2:45Slab Pages
  6. 3:38Allocation
  7. 4:27Freeing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.