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.

EasyTechnical
64 practiced
Explain Linux CPU scheduling basics: Completely Fair Scheduler (CFS), 'nice' values, SCHED_FIFO/SCHED_RR (real-time) policies, and CPU affinity. As an SRE, when and how would you use 'taskset', 'chrt', or cgroups to tune scheduling for critical services?
MediumTechnical
117 practiced
Explain virtual memory internals: TLB (translation lookaside buffer), page tables, soft vs hard page faults, and TLB shootdown on SMP systems. Describe the performance implications of TLB misses and strategies (hugepages, locality, memory layout) you would use to reduce TLB pressure for a latency-sensitive service.
HardTechnical
63 practiced
Sketch an eBPF or bpftrace program that counts syscalls per PID and records syscall latencies (histogram). Describe probe points you would attach to, how you would aggregate to avoid high-cardinality explosion, how to export metrics to Prometheus, and techniques to limit overhead in production.
EasyTechnical
107 practiced
Explain Linux file permission models and umask. Describe how user/group/other permissions, SUID/SGID, and the sticky bit behave. As an SRE, how would you debug and fix a recurring 'Permission denied' error on a service that runs as a specific user and accesses shared files?
MediumTechnical
75 practiced
Write a Python script (pseudocode acceptable) that monitors a given PID's RSS over time. The script should sample every 30 seconds, record RSS, detect if RSS grows by more than 20% over a 10-minute window, handle PID reuse, and print an alert with the process command line and owner. Describe limitations and how you'd run this at scale.

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.