InterviewStack.io LogoInterviewStack.io

Kernel Architecture & OS Internals Questions

How an operating system kernel is structured and what it is responsible for: monolithic vs. microkernel designs, the role of kernel subsystems (scheduler, memory manager, VFS, drivers), kernel vs. user space, and the boot/initialization path. Includes how kernel modules and device drivers extend the kernel and how the kernel mediates access to hardware.

EasyTechnical
75 practiced

Describe the role of inodes and data blocks in Unix-like filesystems. Explain why 'df' and 'du' reports can differ, how sparse files and reserved blocks affect apparent disk usage, and how you as an SRE would investigate a filesystem that reports 'no space left' despite seeming empty.

EasyTechnical
76 practiced

As an SRE, explain the difference between a process and a thread on Linux. Discuss isolation (address space), scheduling unit, memory sharing, context-switch costs, IPC approaches, and scenarios where you would prefer multiple processes vs multithreaded workers for reliability, security, and performance.

MediumTechnical
70 practiced

Describe how the Linux OOM killer selects victims when memory is exhausted. Explain oom_score, oom_score_adj, and how /proc/<pid>/oom_score reflects risk. As an SRE, how would you mitigate frequent OOMs in a cluster and protect critical services from being killed?

MediumTechnical
81 practiced

Explain how you would use perf and eBPF (bpftrace) to profile a CPU-bound service in production with low overhead and produce a flamegraph. Provide the sequence of commands or steps (perf record/perf script + FlameGraph, bpftrace one-liners), explain sampling frequency, and how to interpret hotspots.

HardTechnical
87 practiced

Describe the classic race between rename() and open() on filesystems (e.g., when performing atomic deploys or log rotation). Explain why it can cause transient inconsistencies on some filesystems (NFS) and design a file-locking or deployment strategy that ensures atomicity across network filesystems.

Unlock Full Question Bank

Get access to all Kernel Architecture & OS Internals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.