Systems Performance Analysis & Tuning Questions

Deep, tool-driven diagnosis of a slow host or service once first-pass resource readings point somewhere: sampling with perf and reading flame graphs, continuous low-overhead profiling of production hosts, tracing system calls and library calls with strace and ltrace and their overhead, kernel tracing with ftrace, tracepoints, kprobes and eBPF / bpftrace, and the low-level causes these tools expose: page faults and page-cache behaviour, memory pressure and OOM-killer analysis (system-wide shortage versus a cgroup limit), per-process memory accounting from /proc, NUMA locality, scheduling and CPU-frequency effects, interrupt and softirq load, block-I/O latency, memory growth inside a process, and lock and futex contention. Covers choosing the right tool and its production safety, and isolating the bottleneck before tuning. First-pass resource-saturation readings (load average, utilization and iowait, the USE checklist), profiler theory and application-level instrumentation, kernel internals as concepts, general Linux administration and database tuning are covered elsewhere.

MediumTechnical
83 practiced

You find OOM killer messages in the kernel log for a long-running service. How do you determine whether it was killed by a system-wide shortage or by a container or cgroup memory limit, and what evidence would you cite?

EasyTechnical
79 practiced

You are on call and a process is pinned at 100% CPU, but top shows the time is in user space. How would you use strace to see what it is doing, and how do you read what comes back?

EasyTechnical
83 practiced

How does the Linux OOM killer choose a victim, and what settings influence that choice? How would you protect a critical process from being selected, and what are the trade-offs?

EasyTechnical
87 practiced

You need to diagnose memory use, open files, CPU affinity and namespaces for one process. Which parts of /proc would you read, and what does each tell you?

EasyTechnical
89 practiced

What is the difference between page cache and anonymous memory? How would you see the split for a process, and why do fsync and dropping caches change what you observe?

That is every published Systems Performance Analysis & Tuning question for Systems Administrator so far. Browse the other topics in this category, or practice this one interactively.