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

Live-coding scenario: You receive a working function that processes an entire input file into memory. The interviewer asks you to adapt it to process arbitrarily large files using streaming/chunked processing without changing the public API. Describe and implement the core change in Python (pseudocode acceptable) and list tests you'd add.

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.

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

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.

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.