Systems Performance Analysis & Tuning Questions

Finding and fixing performance problems at the OS and low level: profiling CPU, memory, I/O, and lock contention, reading utilization and saturation signals, and using tools like perf, strace, and tracepoints. Covers cache behavior, false sharing, syscall overhead, and the methodology of isolating a bottleneck before optimizing.

MediumTechnical
89 practiced

Design a high-throughput log sanitizer that removes PII from structured JSON logs while preserving key fields and performance for 1 million lines per minute. Provide pseudocode, explain regex vs JSON-aware parsing trade-offs, streaming design decisions, and how you would test correctness and performance.

MediumTechnical
82 practiced

A critical service managed by systemd keeps restarting due to a non-zero exit code. Describe how you would use systemctl, journalctl, systemctl show, and systemd-cgtop to determine whether restarts are caused by resource constraints, misconfiguration (Restart=), or transient failures. Include commands to change service settings temporarily and to test behavior without a full redeploy.

MediumTechnical
98 practiced

Your team wants to detect and be alerted on gradual file descriptor leaks in a service. Propose a monitoring metric design (what to measure, scrape frequency, aggregation labels) and alert rule that balances sensitivity and noise. Explain how you'd implement detection across many instances with low cardinality.

MediumTechnical
94 practiced

Write a short Python script that, given a PID, lists all open file descriptors, their targets (using readlink on /proc/<pid>/fd/*), and flags (if available). The script should handle permission errors gracefully and clearly mark sockets and pipes. Provide a solution sketch or code snippet and explain error handling choices.

HardTechnical
85 practiced

A recent deployment led to frequent EIO (I/O error) messages from a service on a subset of hosts. Describe a step-by-step approach to check whether the regression is caused by application code (changed open flags), a package update, a kernel upgrade, or flaky hardware. Include which logs, package lists, kernel versions, and diagnostics you would collect and how to perform a safe rollback or canary rollback.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.