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.

MediumSystem Design
26 practiced

Design a streaming upload path for large files (multi-GB datasets, media, or model artifacts) that never loads the whole file into memory: chunked or multipart uploads straight to disk or object storage, resumability if a transfer is interrupted, backpressure so a slow disk or slow object store doesn't cause the service to OOM or saturate disk, and integrity verification (checksums) as data streams through. What would you change about this design for a Go service that specifically needs to maximize upload throughput under concurrent load?

MediumTechnical
30 practiced

Write a Python function that parses /proc/meminfo and returns a JSON object with fields MemTotal, MemFree, Buffers, Cached, SwapTotal, SwapFree, calculated used memory (MemTotal - MemFree - Buffers - Cached) and percent used. Make sure your parser handles missing fields and arbitrary line ordering.

EasyTechnical
25 practiced

Given /proc/meminfo shows low free memory but high cached memory, explain whether this necessarily means the system is under memory pressure. What command(s) would you run to validate and what result would confirm healthy caching versus dangerous memory pressure?

MediumTechnical
45 practiced

Explain context switching: the difference between voluntary and involuntary context switches, how excessive context switching affects latency, which metrics show context-switch rates (e.g., vmstat cs, /proc/stat), and strategies to reduce excessive context switching at kernel and application levels.

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.

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.