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.

MediumTechnical
70 practiced

An application is failing with 'Too many open files'. Describe how to discover the current per-process and system-wide file descriptor limits, how to find processes exhausting FDs, and how to increase limits persistently for a systemd-managed service and for all shell users across reboots. List the commands and configuration files you would change.

MediumTechnical
75 practiced

A long-running daemon gradually consumes more memory until the system kills it or becomes unresponsive. Describe techniques and tools you would use to detect, diagnose, and mitigate memory leaks on Linux: monitoring approaches, /proc and pmap inspection, heap profilers (valgrind, massif, heaptrack), gdb heap analysis, and language-specific tools for Java and Python.

HardTechnical
80 practiced

A critical host may have a malicious or unauthorized kernel module loaded. Create an incident response plan: detection signals (unexpected lsmod entries, unusual /proc behavior), containment steps (network isolation, module unload if safe), forensic capture (lsmod, /proc/modules, dmesg, netstat, full disk image), methods for verifying kernel integrity (IMA, dm-verity, module signatures), and steps to restore trust (reinstall kernel, reprovision).

EasyTechnical
132 practiced

Explain the lifecycle and states of a process on Unix-like systems and Windows. Describe states such as running, runnable, sleeping, stopped, zombie, and how they transition. Include the commands you would use to inspect process states on Linux and Windows (examples) and explain common reasons a process becomes a zombie in production.

EasyTechnical
70 practiced

Describe virtual memory and how an operating system presents it to processes. Explain address space, virtual-to-physical mapping, page tables, multi-level page tables, the TLB, and the sequence of events when a page fault occurs. Include reasons virtual memory improves process isolation and memory utilization.

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.