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 disk metrics: IOPS, throughput (MB/s), average latency, and queue depth. For a database workload consisting of many small random reads, which metrics matter most and how would you size storage (IOPS, latency targets, RAID considerations)?

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?

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.

HardSystem Design
36 practiced

Design and implement a fixed-size buffer strategy for reading lines from a very large file where lines can be longer than the buffer. The API should read the file in chunks and return complete lines to the caller without loading the entire file into memory. Describe how you handle partial lines, multi-byte encodings, and performance trade-offs.

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.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.