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

Explain NUMA (Non-Uniform Memory Access) and its effects on performance in multi-socket servers. How would you design and tune a service to be NUMA-friendly including CPU/memory pinning, thread affinity, allocator choices, and testing approaches?

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
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.

MediumTechnical
28 practiced

Explain and demonstrate with pseudocode how to use sendfile or a zero-copy transfer to serve static files on Linux over TCP to reduce CPU copies. Discuss limitations such as file descriptors, inability to use sendfile with TLS in some stacks, and when splice or kTLS are alternatives.

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?

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.