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.

MediumTechnical
35 practiced

Compare O_DIRECT (direct I/O) and fsync-related durability semantics. How do they interact with filesystem buffering and device write caches (battery-backed or volatile), and what are the performance and correctness trade-offs for database systems?

MediumTechnical
32 practiced

Medium: Create a systemd service unit for a Python web application that relies on a database. Requirements: start only after network and db.target, run as 'webapp' user, set LimitNOFILE=10000, restart on-failure with exponential backoff, and ensure stdout/stderr go to the journal. Provide the unit file and explain the restart/backoff approach.

EasyTechnical
51 practiced

Explain how cgroups and ulimits can be used to enforce CPU and memory limits for processes and containers. Give examples of how to set MemoryMax and CPUQuota in a systemd unit file and cpu/memory limits for Docker. Explain how the OOM killer interacts with cgroup-limited processes.

HardTechnical
28 practiced

Hard: On a NUMA system, a database exhibits poor performance after a kernel upgrade. Explain how NUMA misplacement can lead to this regression and provide a stepwise approach (commands and experiments) to detect and remediate NUMA-related memory allocation issues for the DB process.

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.