InterviewStack.io LogoInterviewStack.io

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.

HardSystem Design
32 practiced

Hard: Design a robust automated remediation system for a fleet that detects when a service exceeds CPU quota in its cgroup for sustained periods and automatically moves it to a lower priority slice or scales out replicas. Define detection logic, safe remediation steps, and how to avoid cascading remediation causing more instability.

HardTechnical
37 practiced

Explain NUMA (Non-Uniform Memory Access) architecture and how it impacts multi-socket server performance. Describe detection methods for NUMA imbalance (numastat, /proc/zoneinfo, perf), how to bind processes and memory with numactl, and when to use hugepages or CPU pinning to improve locality.

MediumTechnical
37 practiced

What does 'perf record -e cpu-clock' measure compared to 'perf record -e cycles'? Explain when you would prefer sampling with cpu-clock or cycles and how basis of collection affects interpreting hotspots.

MediumTechnical
33 practiced

Write an on-call runbook outline for a high disk-latency incident. Include initial triage commands to gather evidence, criteria to determine if the incident is service-impacting, immediate mitigations (throttling, moving workloads, pausing backups), stakeholder communication steps, and post-incident actions to prevent recurrence.

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.

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.