InterviewStack.io LogoInterviewStack.io

Linux Troubleshooting and Diagnostics Questions

In depth troubleshooting and diagnostic techniques for complex Linux issues at the system and kernel level. Includes advanced use of strace, ltrace, perf, ftrace, and reading proc and sys filesystems, root cause analysis of memory leaks and resource exhaustion, diagnosing intermittent failures and I O bottlenecks, log analysis, service debugging, containerized environment troubleshooting, and strategies for progressive isolation, replication, and remediation of production incidents. Senior level expectations include understanding kernel interactions, tracing user space to kernel transitions, and designing observability approaches to prevent recurrence.

HardTechnical
25 practiced
Case study: Your org runs a fleet where occasional kernel OOM events have caused data corruption in a critical service. As SRE lead, propose a remediation roadmap that covers immediate protective measures, medium-term fixes, and long-term policy and telemetry changes. Include stakeholder communication, testing plans, timelines, and trade-offs of each remediation step.
MediumTechnical
25 practiced
Design a Go program (describe algorithm and sketch code) that samples /proc/<pid>/stat and /proc/vmstat every 10 seconds for a target PID, computes per-second major and minor page fault rates and RSS delta, and exposes these as Prometheus metrics on /metrics. Describe concurrency model, parsing pitfalls (comm field), and how to handle PID reuse.
HardTechnical
30 practiced
Design a continuous, low-overhead profiling strategy for a production service using perf and eBPF that detects CPU and allocation regressions over time. Include sample rates, which events to collect, how to aggregate stack samples, storage considerations for profiles, and how to detect regressions automatically.
HardTechnical
33 practiced
You notice a process consumes a lot of CPU in kernel mode (high 'system' CPU). Provide a diagnostic checklist and concrete commands (perf, ftrace, /proc, sysctl) to determine whether the kernel work is due to intensive syscalls, network stack, filesystem contention, or kernel bug. Include steps to gather evidence for a kernel bug report.
MediumTechnical
33 practiced
Explain a methodology to find a memory leak in a long-running C++ service running on Linux. Include tools and steps using /proc/<pid>/smaps, pmap, valgrind (massif), heaptrack, sampling profilers, and how to interpret differences between RSS and VIRT growth. Also cover when to use heavy tools versus lightweight sampling in production.

Unlock Full Question Bank

Get access to hundreds of Linux Troubleshooting and Diagnostics interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.