Systems Performance Analysis & Tuning Questions

Deep, tool-driven diagnosis of a slow host or service once first-pass resource readings point somewhere: sampling with perf and reading flame graphs, continuous low-overhead profiling of production hosts, tracing system calls and library calls with strace and ltrace and their overhead, kernel tracing with ftrace, tracepoints, kprobes and eBPF / bpftrace, and the low-level causes these tools expose: page faults and page-cache behaviour, memory pressure and OOM-killer analysis (system-wide shortage versus a cgroup limit), per-process memory accounting from /proc, NUMA locality, scheduling and CPU-frequency effects, interrupt and softirq load, block-I/O latency, memory growth inside a process, and lock and futex contention. Covers choosing the right tool and its production safety, and isolating the bottleneck before tuning. First-pass resource-saturation readings (load average, utilization and iowait, the USE checklist), profiler theory and application-level instrumentation, kernel internals as concepts, general Linux administration and database tuning are covered elsewhere.

MediumTechnical
73 practiced

How do you take a 10-second CPU profile of one process on a live host and read the hot functions with call stacks? What goes wrong with stripped binaries or JIT-compiled code, and how do you handle it?

HardTechnical
86 practiced

After a networking library upgrade, a microservice shows more system CPU time. How would you confirm whether syscall frequency went up or the kernel is doing more work per call, and how would you compare syscall counts per process before and after a change with low overhead and a defensible threshold?

HardTechnical
86 practiced

A process spends a lot of time in kernel mode (high system CPU). Give a diagnostic order to decide whether the cause is heavy syscall use, the network stack, filesystem contention or a kernel bug, and what evidence you would gather to support a kernel-bug report.

MediumTechnical
106 practiced

A service burns CPU while threads seem to be stuck on a lock, and the profile is full of futex-related calls. How would you tell contended-lock behaviour from useful work using OS-level evidence, and find which lock is hot?

MediumTechnical
74 practiced

What is the difference between kprobes and tracepoints? If you were chasing unexpected permission denials in a security-module hook on a live host, which would you use, what would you capture, and what stability risks come with dynamic probing?

Unlock Full Question Bank

Get access to all 11 Systems Performance Analysis & Tuning interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.