System Resource & I/O Optimization Questions

Tuning how a system uses CPU, memory, disk, and network at the OS and I/O layer. Covers I/O throughput and blocking, buffering and batching, filesystem and kernel-level performance settings, and resource contention between processes. Includes OS-level performance tuning and diagnosing resource saturation on the host.

MediumTechnical
25 practiced

Given two storage device families, traditional HDD and NVMe SSD, explain which you would choose for: (a) large sequential media archival writes, (b) OLTP workloads with small random writes, (c) time-series ingestion combined with compaction. Discuss cost, latency, IOPS, throughput, and write-amplification trade-offs.

EasyTechnical
27 practiced

Write a single-line shell command (or small pipeline) using ps, awk, or top that lists the top 5 processes by resident memory (RSS) including PID, user, RSS in MiB, and command. Explain any caveats when using RSS to estimate true memory usage.

HardTechnical
28 practiced

Describe how to implement per-container block I/O rate limiting on Linux hosts to protect SSD/HDD IOPS using cgroups (blkio controller) or throttle mechanisms. Discuss fairness, burst behavior, latency impact, verification methods, and limitations of these approaches.

MediumTechnical
26 practiced

Design a reproducible benchmark to compare disk throughput and latency across block sizes and queue depths using fio or similar tools. Specify exact test parameters (direct I/O flags, runtime, warmup, iodepth), metrics to capture, how to avoid page cache effects, and how to present results meaningfully.

HardTechnical
28 practiced

Hard: On a NUMA system, a database exhibits poor performance after a kernel upgrade. Explain how NUMA misplacement can lead to this regression and provide a stepwise approach (commands and experiments) to detect and remediate NUMA-related memory allocation issues for the DB process.

Unlock Full Question Bank

Get access to all System Resource & I/O Optimization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.