InterviewStack.io LogoInterviewStack.io

Operating System Internals and Administration Questions

Fundamental and advanced operating system concepts that underlie system administration across platforms. Topics include process and thread management, scheduling and concurrency, memory management and swapping, virtual memory and page replacement, input output and disk performance, file system architecture and semantics, system call interfaces, kernel parameters and tuning, authentication and permission models, boot and initialization sequences, monitoring and system performance analysis, and general techniques for debugging and diagnosing systemic operating system issues. Candidates should be able to explain not only how to perform administrative tasks but why the underlying mechanisms behave as they do and how design choices affect performance and reliability.

HardTechnical
62 practiced
Discuss how virtualization (full virtualization vs paravirtualization) affects OS internals: impacts on TLB behavior and TLB shootdowns, page-table management (shadow page tables vs nested page tables), timer and interrupt handling, and I/O virtualization (vhost, virtio). Explain how these differences affect tuning choices for both host and guest kernels.
HardTechnical
78 practiced
Write a Bash or Python script that samples /proc to compute the page-fault rate (minor+major faults per second) for each process over a short interval and reports the top 5 processes by fault-rate. The script should gracefully handle permission errors and be efficient enough to run on production hosts without causing additional load.
EasyTechnical
65 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.
MediumTechnical
114 practiced
A database workload under heavy writes shows high write latency. From the OS and filesystem perspective, what tuning options and changes would you consider: I/O scheduler (noop/mq-deadline), elevator settings, readahead, mount options (noatime, data=writeback/data=journal), filesystem choice and block-size, RAID stripe alignment, and SSD TRIM? Outline experiments to measure the impact of each change safely.
MediumTechnical
57 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.

Unlock Full Question Bank

Get access to hundreds of Operating System Internals and Administration interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.