During evening batch processing, users complain that pages served by a CentOS web server take several seconds to load. You log in while the slowdown is happening and capture the following:
CPU utilization is low, yet the load average is high and I/O wait is nearly 30 percent. You need an interactive way to identify which running processes are generating the heavy disk I/O so you can restore acceptable response times. Which command should you run first?
Run free -h to check overall memory usage.
Run vmstat -s to print system-wide virtual-memory counters.
Run ss -s to display summary socket statistics.
Run sudo iotop --only to view per-process disk I/O in real time.
The iotop command displays real-time, per-process disk read/write throughput and the percentage of time each process spends waiting on I/O. This makes it the quickest way to pinpoint the specific process that is overloading the storage subsystem and causing high %iowait, which directly translates into slow application response times.
The other options do not provide the required insight:
ss -s summarises socket statistics and is useful for network troubleshooting, not disk I/O.
vmstat -s prints a one-time system-wide counter summary; it cannot show which individual process is generating the I/O load.
free -h reports overall memory availability and has no visibility into disk activity.
Therefore, iotop is the best choice for immediately identifying the culprit behind the slow response times.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the %iowait metric indicate in sar output?
Open an interactive chat with Bash
How does the `iotop` command differ from `iostat`?
Open an interactive chat with Bash
Why is a high %util value in `iostat` significant?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access