Kernel Architecture & OS Internals Questions

How an operating system kernel is structured and what it is responsible for: kernel subsystems (scheduler, memory manager, drivers, interrupt handling), kernel vs. user space and the cost of crossing between them, and the boot and initialization path. Includes the core mechanisms the kernel provides: process and thread lifecycle (creation, zombies and orphans, uninterruptible sleep) and context switching, processes vs. threads as an architectural choice, CPU scheduling (CFS, priorities, preemption models, real-time policies on a general-purpose kernel), virtual memory (address translation, multi-level page tables and entry formats, TLB misses and shootdowns, page faults, copy-on-write, memory-mapped files, userfaultfd, swapping, page replacement, kernel allocators, process address-space layout, page-level protection such as NX and ASLR as mechanisms, hugepages, page coloring, overcommit and the OOM killer as kernel mechanisms), interrupts and softirqs, and how loadable modules and device drivers extend the kernel. Includes worked exercises such as page-replacement traces, address-translation arithmetic and small page-table, TLB or scheduler simulations. Covers the concepts and internals, not microcontroller interrupt and ISR design, RTOS and real-time scheduling theory, day-to-day host administration, system-call and POSIX API semantics, OS-level performance tuning, or forensic and security analysis of a host.

EasyTechnical
131 practiced

What is the difference between paging and swapping? When does a system start swapping, what does a machine under heavy memory pressure look like from the outside, and how does the page cache compete with application memory?

MediumTechnical
85 practiced

During an incident many processes are stuck in the D state, a key service is unresponsive, and CPU usage is low. What does uninterruptible sleep mean in the kernel, why can such tasks not be killed, and what would you check next to find what they are waiting on?

MediumTechnical
85 practiced

A kernel module fails to load with an 'invalid module format' error, and another causes an oops soon after loading. What does each symptom tell you about how modules bind to a running kernel, and how do you isolate the cause?

EasyTechnical
90 practiced

A process shows a virtual size of 40 GB but a resident size of 600 MB. What is a virtual address space, how does it differ from physical memory, how does it isolate processes, and when is a huge virtual size nothing to worry about?

MediumTechnical
90 practiced

A machine powers on, the bootloader menu appears, but the system never reaches a login prompt and the screen is nearly silent. Given what you know of the boot stages, how do you work out which stage failed and what do you check at each?

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.