# Memory allocator

Last edited: 2026-02-05

Memory allocator

The memory allocator gets used when a process needs to map physical memory onto its virtual memory . There are two different kinds of allocators:

  • Kernel-level allocators: that is used by the kernel to get memory for the kernel state but also the static process state.
  • User-level allocators: dynamic process state on the heap obtained by calls to malloc/free.