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.

HardTechnical
26 practiced

Hard: You're debugging severe tail latency in a distributed storage daemon. Perf shows many samples in kernel function 'ext4_file_write_iter' and io latency metrics show long await times on multiple devices. Propose a plan to narrow down whether the problem is device-level (underlying disks), kernel-level (filesystem), or workload-level (filesystem usage pattern). Suggest experiments and mitigations.

EasyTechnical
47 practiced

Explain the difference between a buffer and a cache in the context of I/O and memory. Include concrete examples where each is used (socket buffers, OS page cache, application-level caches), describe how they affect latency and throughput, and when you'd prefer one over the other in a backend service.

MediumTechnical
30 practiced

A Kubernetes pod running a latency-sensitive service is being OOMKilled intermittently. Describe a step-by-step diagnostic approach (kubectl events, metrics, heap/profile dumps, sidecars) and remediation options (right-sizing, memory limits and requests, QoS classes, eviction tuning, and potential code fixes).

HardTechnical
26 practiced

Hard: You find a process consuming large amounts of file descriptors and causing EMFILE errors globally. Propose a plan to debug where descriptors are coming from, short-term mitigations to restore service, and long-term design changes to prevent descriptor leaks. Include commands to gather evidence.

MediumTechnical
28 practiced

Medium: A service under systemd sometimes fails to bind to a TCP port on startup with 'Address already in use' only when restarted quickly. How would you change the unit file and application to reduce the likelihood of this race? Explain TIME_WAIT implications and a system-level mitigation.

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.