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
28 practiced

Explain read-ahead and prefetching mechanisms at OS and application levels. When does read-ahead improve performance and when can it harm throughput or latency? Describe how you would tune readahead for a media streaming service serving large sequential reads.

EasyTechnical
36 practiced

Define CPU-bound versus I/O-bound workloads. Describe how you would detect and distinguish them in production using metrics (cpu usage, iowait, disk throughput, latency) and give a short triage checklist for each case.

HardTechnical
32 practiced

Explain why swapping (paging to disk) is particularly harmful for latency-sensitive services and list techniques to avoid swap-induced latency: strict memory limits, overcommit tuning, mlock, cgroups settings, memory reservation, admission control, and application-level fallbacks.

EasyTechnical
37 practiced

What is the Linux page cache, and how does the kernel use it to speed up reads and writes? Explain buffered writes and write-back behavior, what fsync actually guarantees, and how you'd tell whether a workload is genuinely benefiting from the page cache versus just accumulating memory pressure that you should reclaim.

MediumTechnical
37 practiced

Implement a Python function that computes CPU utilization percentages from two snapshots of /proc/stat taken one second apart. Input: two strings each containing CPU lines like 'cpu 3357 0 4313 1362393 234 0 0 0 0 0'. Output: JSON-like dict with percent utilization for total and each core for user, system, idle, iowait. Focus on correct delta calculation and handling counters wrapping.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.