Blog
Projects
About
Author
systems
brk, sbrk, mmap: what malloc hides
March 17, 2026
4 min read
malloc calls brk for small allocations and mmap for large ones. What really happens under the hood, syscall by syscall.