Memory Management, Paging & Virtual Address Space Questions
How the OS gives each process an isolated virtual address space and maps it onto physical memory: paging, page tables, the TLB, page faults, demand paging, and swapping. Covers the layout of a process address space (text, data, heap, stack), memory isolation and protection between processes, and how virtual memory enables overcommit and copy-on-write.
A production C service shows intermittent SIGSEGV crashes at different user-space addresses. As the primary SRE, provide a prioritized debugging plan: what to collect immediately (core dumps, configs), which tools to run (gdb, addr2line, valgrind, ASAN), kernel settings to adjust (ulimit, core_pattern, ptrace_scope), and how to preserve evidence without disrupting traffic.
Explain page coloring (cache coloring) as a technique to reduce cache set conflicts caused by virtual-to-physical mapping. Describe how page coloring can be applied on systems with direct-mapped or set-associative caches and how it affects allocator behavior and fragmentation.
Explain multi-level page tables and why they are used. Describe how a 4-level page table (typical on x86-64) reduces memory overhead compared to a single-level table, and outline the steps to translate a virtual address to a physical address using the table indices.
Production node shows repeated OOM-killer logs killing services intermittently. As the SRE on-call, outline the steps you would take to determine root cause, collect evidence (before and after making changes), and mitigate the immediate production impact without losing observability.
Given the 64-bit x86-64 page table entry (PTE) low-order bit layout, decode this example PTE value and explain the meaning of set bits: 0x0000ff81234567f3. List which permissions are set (present, rw, user, accessed, dirty, nx) and whether the page is present.
Unlock Full Question Bank
Get access to all 40 Memory Management, Paging & Virtual Address Space interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.