Linux interview question
What is load average, and how is it different from CPU utilisation?
Comparison Asked in DevOps Engineer · Site Reliability Engineer (SRE) interviews
Summary
Load average is the average number of tasks running or waiting to run (and, on Linux, in uninterruptible I/O sleep) over 1, 5 and 15 minutes. CPU utilisation is the percentage of time the CPUs were busy. A load of 8 on an 8-core machine can be fine; the same load with high I/O wait means processes are stuck on disk, not CPU.
Keep reading with a membership
The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.
More Linux questions
- A Linux server has high CPU usage. How do you find the cause?
- What do top, htop, vmstat, iostat, ss and lsof each tell you?
- Write a script that alerts when disk usage passes a threshold.
- How do you troubleshoot DNS resolution and network connectivity on Linux?
- A server keeps running out of memory and the kernel kills processes. How do you investigate?
- The disk is full, but du shows far less usage than df. What's going on?
- How do systemd units work, and how do you debug a service that won't start?
- Explain Linux file permissions, ownership and the special bits.