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

Medium: A containerized workload is experiencing noisy neighbor effects where one container's heavy I/O starves others. On a Linux host with systemd and containerd, describe the concrete steps (commands and unit/container config) to throttle I/O for the noisy container with minimal disruption.

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.

HardSystem Design
53 practiced

Design resource-isolation and QoS policies for a multi-tenant Kubernetes cluster to prevent noisy-neighbor memory and I/O issues. Include admission controls, default resource requests/limits, QoS classes, eviction thresholds, node-level cgroup settings, and any custom controllers or webhooks you'd implement.

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.

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.

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.