Tagged: #virtual-memory
How XNU allocates kernel memory: zalloc zones, the kalloc heap and its type-isolated buckets, and why zone hardening matters to kernel exploit writers.
How XNU responds when memory gets tight — the four-stage pressure pipeline from free pages through compression to swap to process termination, and what each stage costs.
Walk a single mmap call from libc, through BSD into Mach VM, the lazy first-touch fault, and the pmap entry that finally makes the file accessible as memory.
Where the dyld shared cache lives on each macOS version (it moved to the Cryptex in Ventura), how to extract dylibs from it, and why every process maps it.
How macOS virtual memory works inside XNU: vm_map address spaces, pmap page tables, page faults, the memory compressor, and jetsam under pressure.