Beginner LevelLinux Commands & SysAdmin
How do you read system load average from the uptime or top command?
❓ Interview Prompt: Explain uptime command, system load average (1, 5, and 15 minute metrics), CPU core scaling, and process queue bottlenecks.
The 'uptime' command displays current time, system running duration, logged-in users, and System Load Averages over 1, 5, and 15-minute intervals:
Interpreting Load Averages:
Load average represents the average number of processes in a runnable or uninterruptible disk sleep state.
•
On a 4-CPU Core server: A load average of 4.00 means CPU cores are at 100% utilization. A load average of 8.00 means 4 processes are queued waiting for CPU time!
Code Implementation Example
bash
# Display system uptime and load average metrics
uptime
# Output: 14:20:05 up 45 days, 3:12, 2 users, load average: 1.15, 0.85, 0.50💡Reading system uptime and 1, 5, 15-minute load averages.
🎯 Interview Key Takeaway
Compare system load average against the total number of CPU cores to assess system load bottlenecks.
#uptime#Load Average#CPU#Performance#Beginner
Back to all Linux Commands & SysAdmin Questions→