Introduction
Linux exposes disk activity through several interfaces, but iostat and sar answer different operational questions. Use iostat for immediate, device-level inspection of utilization, throughput, queue depth, and request latency. Use sar to retain those measurements over time, establish a baseline, and compare current behavior with earlier periods.
A high %util value does not by itself prove that a disk is slow. %util reports how often a device was busy during the sampling interval, not how full its queue was or how long requests waited. Likewise, low device utilization can coexist with poor application performance when the workload is blocked on other resources. Accurate diagnosis requires reading throughput, request service time, queue depth, and await together.
The examples below use the sysstat package, which supplies both commands on common Linux distributions. They also use device names such as sda, nvme0n1, and dm-0, but the same methods apply to virtual disks, RAID controllers, multipath devices, and network-backed storage.
Install iostat and sar
On Debian and Ubuntu, install sysstat with APT:
sudo apt updatesudo apt install sysstatOn RHEL, Rocky Linux, AlmaLinux, and Fedora, use DNF:
sudo dnf install sysstatOn Arch Linux, use Pacman:
sudo pacman -S sysstatVerify the installation and record the available devices:
iostat --versionsar --versionlsblk -d -o NAME,TYPE,SIZE,ROTA,MODELThe sysstat service or timer must be running for sar to collect historical data. On systemd-based distributions, inspect its status first:
systemctl status sysstatIf the service is inactive and your distribution enables it through a timer, check that timer:
systemctl list-timers | grep sysstatOn Debian and Ubuntu, enable scheduled collection permanently:
sudo systemctl enable --now sysstat.serviceOn RHEL-family systems, the package commonly installs a sysstat cron entry instead of a systemd timer. Inspect the relevant configuration:
grep -R "^[^#].*sa[0-9]" /etc/cron* /etc/crontab 2>/dev/nullcat /etc/sysstat/sysstatThe enabled setting in /etc/sysstat/sysstat controls whether the collection job runs, while HISTORY determines how many daily data files sar retains. For example:
ENABLED="true"HISTORY=30Restart the collection service after changing persistent settings where required:
sudo systemctl restart sysstat.serviceOn distributions that use a timer, reload the timer configuration after editing a cron-style file:
sudo systemctl restart sysstat.timerAvoid enabling a second scheduler alongside an existing one. Two collectors writing the same sa files can produce inconsistent intervals and corrupted history.
Understand iostat output
Run iostat without a delay to display statistics collected since the last system boot:
iostatThe first report shows cumulative device counters. The second report reflects activity since the previous report. If you need current measurements, specify an interval:
iostat 1 5This command samples once per second and prints five reports. A single snapshot can miss short bursts, so a short observation window is usually more useful for troubleshooting than one instantaneous reading.
A typical block-device report contains the following columns:
Device t/s kB/s d/s aqu-sz r/s w/s rkB/s wkB/s await aqu-sz r_await w_await svctm %utilsda 12.00 256.00 2.00 0.50 8.00 4.00 128.00 128.00 8.00 0.50 7.00 9.00 0.00 42.00nvme0n1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00t/s and r/s report transfers or requests per second. kB/s reports throughput in kilobytes per second. The exact interpretation of the first transfer column can vary by version and whether the system reports partitions or devices, so use iostat -h and the local manual page when exact units matter.
await is the average time in milliseconds for I/O requests associated with the device to complete. It includes time spent waiting in the block layer queue and time spent servicing the request. Many administrators call it latency, although the name is historically ambiguous.
aqu-sz reports the average queue depth during the sampling interval. A value close to the device’s queue limit can indicate that requests spend time waiting before the device services them. %util reports the fraction of sampling time during which the device was active, expressed as a percentage.
For partition-aware output, add x:
iostat -x 1 5Use iostat -xz when you want extended statistics and the initial cumulative report. To exclude partitions, use the -d option:
iostat -dx 1 5Avoid filtering out every virtual device by habit. In a Linux storage stack, the physical disk may appear as sda, while the filesystem uses dm-0, md0, or a multipath device. Performance problems can appear at different layers.
Collect current disk statistics
A useful first pass in an incident uses one-second samples with extended output:
iostat -dx 1 10Capture ten seconds of data while the workload is active. Record the output with a timestamp so it can be attached to an incident timeline:
date -Isiostat -dx 1 10 | tee /var/tmp/iostat-$(date +%Y%m%d-%H%M%S).logIf the application has periods of predictable activity, sample longer. A ten-second window can miss a nightly backup or a batch job that runs once every hour.
For persistent server monitoring, use iostat through vmstat, sar, or a dedicated metrics agent rather than launching it from a shell loop. A simple shell loop accumulates delay and may miss short-lived stalls:
while true; do date -Is iostat -dx 1 1 | tail -n +4 sleep 5doneUse vmstat when you need a combined view of CPU, memory, swap, process activity, and block I/O:
vmstat 1 10The bi and bo columns show blocks read from and written to block devices. On Linux, they are commonly reported in KiB. vmstat is useful for finding signs of memory pressure because sustained swap activity can make storage look like the primary bottleneck even when physical disk latency remains acceptable.
Interpret throughput, latency, and queue depth
Start with the application symptom. A slow web request, a stalled backup, and a database transaction waiting on fsync() can produce different disk statistics. The operating system may report high I/O wait in top while the actual delay occurs inside an application, a network filesystem, or a device-mapper target.
Use these combinations as a practical starting point:
| Observed pattern | Likely interpretation | Next checks |
|---|---|---|
High %util, high throughput, acceptable await | Device may be near its practical throughput limit | Compare throughput with device or array limits |
High %util, low throughput, high await | Device is serving requests slowly | Check request service time, hardware, and array health |
Low %util, high await | The kernel may be throttling or the device may report unusual behavior | Inspect scheduler, queue depth, and device-specific statistics |
High aqu-sz, rising await | Queue pressure is delaying requests | Compare queue size with the device’s configured queue depth |
| Low disk activity, high system I/O wait | I/O wait may not represent local disk work | Inspect NFS, FUSE, dm, and other virtual layers |
| High read throughput and high read await | Reads are consuming storage capacity | Check cache hit rate, readahead, and workload locality |
These are interpretations, not automatic root causes. A RAID controller can report low device utilization while the underlying array is saturated. A network filesystem can make local block devices look idle while application requests wait on the server. A device can also maintain acceptable average latency while a small number of requests experience multi-second stalls, especially with rotating disks.
Average values hide tail latency. Correlate iostat with application metrics. For a database, record transaction latency, checkpoint duration, and commit latency. For a file server, record request latency and queue depth at the application tier. If the application remains slow while local disk metrics stay normal, move the investigation upward or outward.
Filter iostat output for a specific device
Use the positional device selector after the interval and count:
iostat -dx 1 10 sdaFor multiple devices, list them after the sampling options:
iostat -dx 1 10 sda sdbYou can also select devices by ID or use wildcard-style matching where supported:
iostat -dx 1 10 /dev/sdaiostat -dx 1 10 "sd*"Confirm the exact behavior against the installed version:
iostat --helpman iostatOn systems with many devices, filtering reduces output and makes abnormal values easier to spot. Do not filter too early, though. A physical disk may be healthy while a logical volume above it is constrained.
Use sar for historical disk monitoring
iostat answers what is happening now. sar answers how the system behaved during a previous interval. It reads the binary history files produced by the sysstat collector and can report averages and local time series.
Display disk statistics for the current day:
sar -dDisplay yesterday’s disk statistics:
sar -d -f /var/log/sa/sa24The filename contains the day of the month. The previous example reads the file for the 24th day. Adjust the filename to the relevant date rather than assuming that /var/log/sa/sa24 always represents yesterday.
Show hourly averages:
sar -d -f /var/log/sa/sa24Report interval averages in a more compact format:
sar -d -f /var/log/sa/sa24 -qDisplay one specific hour, for example from 09:00 through 10:00:
sar -d -f /var/log/sa/sa24 -s 09:00:00 -e 10:00:00The -q option adds summary information, including the percentage of time during which devices were active and the average number of requests in the queue. Use it when comparing days, but retain the extended sar output for diagnosis because averages alone can hide short spikes.
Generate an hourly report from the standard day’s history file:
sar -A -f /var/log/sa/sa24-A displays all archived metrics. This is useful during an investigation, but the output can be dense. Start with the resource involved in the symptom:
sar -A -f /var/log/sa/sa24 | grep -E "Average|DEV|sda|nvme|dm-|md"The output format depends on the locale and sysstat version. Some versions use DEV; others use tps and rkB/s columns directly.
Collect CPU, memory, and I/O together
Disk pressure can be driven by CPU saturation, memory reclaim, or swap. Compare the same historical intervals rather than inspecting unrelated moments.
sar -u -f /var/log/sa/sa24sar -r -f /var/log/sa/sa24sar -S -f /var/log/sa/sa24sar -q -f /var/log/sa/sa24sar -b -f /var/log/sa/sa24These commands show CPU utilization, memory use, swap activity, queue statistics, and block I/O. The -q report can help distinguish a busy queue from a device that is slow per request.
For CPU detail:
sar -u ALL -f /var/log/sa/sa24For memory detail, including page-fault and cache counters:
sar -r ALL -f /var/log/sa/sa24When reviewing a time window, keep the start and end times consistent:
sar -d -r -S -q -f /var/log/sa/sa24 \ -s 09:00:00 -e 10:00:00A CPU-bound workload can generate enough I/O to look storage-heavy, but high %iowait on a nearly idle disk deserves investigation into the scheduler and virtualized storage layers.
Configure collection intervals
The default sysstat collection interval is often ten minutes. That interval is useful for long-term trends but can hide short bursts of latency. For incident analysis, collect at one-second intervals or use application and system tracing with matching timestamps.
Review the collector settings on Debian and Ubuntu:
cat /etc/sysstat/sysstatgrep -R "sysstat" /etc/cron.d /etc/crontab /etc/crontab.d 2>/dev/nullReview the RHEL-family cron file:
cat /etc/cron.d/sysstatA standard cron entry looks like this:
*/10 * * * * root /usr/bin/sa1 /usr/local/bin/sa1Change the interval only with care. A one-minute schedule creates more history and more I/O. A one-second schedule through sar is unusual on a busy host because each sample and its report cost CPU and disk activity. During an active incident, sample the relevant devices with iostat and query application metrics. Use sar history to confirm whether the symptom existed earlier.
The sysstat service usually writes one file per day under /var/log/sa/:
ls -lh /var/log/saMonitor disk consumption on the filesystem holding those logs:
df -h /var/log/sadu -sh /var/log/saIf log retention is too short, adjust HISTORY in /etc/sysstat/sysstat to match your troubleshooting and audit requirements.
Create a repeatable monitoring script
The following script stores hourly samples in /var/log/disk-metrics. It runs iostat continuously with a five-second delay and writes a timestamped file each hour. The script rotates files by date and avoids running more than one instance through a lock directory.
#!/usr/bin/env bashset -euo pipefail
LOG_DIR="/var/log/disk-metrics"LOCK_DIR="/run/disk-metrics.lock"
mkdir -p "$LOG_DIR"mkdir -p "$LOCK_DIR" 2>/dev/null || true
if ! rmdir "$LOCK_DIR" 2>/dev/null; then echo "disk-metrics collector is already running" >&2 exit 1fi
trap 'rmdir "$LOCK_DIR" 2>/dev/null || true' EXIT
while true; do stamp="$(date +%Y%m%d-%H%M%S)" iostat -dx 5 720 > "${LOG_DIR}/iostat-${stamp}.log"doneInstall it with a restrictive service definition. A sample systemd unit is:
[Unit]Description=Collect extended disk I/O statisticsAfter=multi-user.target
[Service]Type=simpleExecStart=/usr/local/sbin/disk-metricsRestart=on-failureRestartSec=5User=root
[Install]WantedBy=multi-user.targetSave the unit as /etc/systemd/system/disk-metrics.service, then enable it:
sudo chmod 0755 /usr/local/sbin/disk-metricssudo systemctl daemon-reloadsudo systemctl enable --now disk-metrics.serviceThis setup captures useful detail but still uses averages over five-second intervals. If the incident involves millisecond-scale stalls, use perf, bpftrace, or an application-aware agent to capture request-level latency. The iostat and sar workflow is best for capacity planning, broad baselines, and identifying periods where the storage layer deserves closer inspection.
Interpret RAID and device-mapper statistics
Logical volumes often have more than one layer. A system using LVM might expose /dev/mapper/vg-data as dm-0, while its physical members appear as sda and sdb. RAID systems may expose a virtual RAID device such as md0 or a vendor-specific controller device while the disks beneath it are hidden from the operating system.
Compare statistics at each visible layer:
iostat -dx 1 10lsblk -o NAME,TYPE,SIZE,ROTA,FSTYPE,MOUNTPOINTSdmsetup lscat /proc/mdstatFor software RAID, mdstat shows the array state and activity:
watch -n 1 cat /proc/mdstatFor a degraded array, /proc/mdstat may include messages such as:
md0 : active raid1 sdb1[1] sda1[0] 1048576 blocks super 1.2 [2/1] [U_]In this example, [2/1] indicates that one of two configured devices is active. Resolve the missing-device or rebuild problem before using historical latency as a capacity baseline.
Do not interpret dm-0 utilization as physical disk utilization without understanding the mapping. Device-mapper can combine targets such as thin pools, logical volumes, encryption, and RAID. The physical members may be busy while the logical device shows low utilization because work is queued upstream.
Investigate NFS and network storage
For NFS, iostat on the client measures local block activity, not the full network filesystem path. The application can wait on the NFS server while the client disk remains idle. Examine NFS client statistics and mount options:
nfsstat -cmount | grep 'type nfs'dmesg -T | grep -iE 'nfs|rpc|server.*not responding'During an NFS stall, dmesg may report messages similar to:
server not responding, still tryingThat points toward connectivity, server response time, or lock recovery. It does not indicate a local physical disk problem.
For iSCSI, inspect link, session, and block-layer counters:
iscsiadm -m session -P 3lsblk -tdmesg -T | grep -iE 'iscsi|scsi|reset|timeout'Common messages include:
task aborttransport has timed outhost resetThose messages require correlation with link speed, packet loss, multipath policy, and SCSI queue depth. The iostat device may show high latency during the outage, but the physical cause can sit on the storage network.
Find high-latency processes
iostat identifies device pressure but not the process generating it. Use iotop for live attribution:
sudo iostat -x 1sudo iotop -oPaOn Debian and Ubuntu:
sudo apt install iotopThe -o option shows only processes generating I/O. -P adds thread-level detail, and -a shows accumulated totals since the process started. These options vary slightly between releases, so check the local help:
iotop --helpiotop can still miss short-lived processes because it observes the kernel counters at sampling intervals. For process-level cgroup accounting, use a cgroup-aware agent or an eBPF tool. Also account for page cache effects. A process can have high logical read volume while generating little physical I/O because Linux serves reads from memory.
Check Linux I/O schedulers
View the scheduler for a device:
cat /sys/block/sda/queue/schedulerFor NVMe devices, the available choices may include none and mq-deadline. For SATA or SAS devices, distributions commonly expose mq-deadline, bfq, and kyber, depending on the installed kernel.
For example:
cat /sys/block/sda/queue/schedulerA possible output is:
[mq-deadline] kyber bfq noneThe brackets mark the active scheduler. Changing schedulers can affect latency behavior and throughput, but it is not a universal fix. Benchmark the workload before and after the change, and record the device, kernel, queue depth, filesystem, and workload.
Do not change the scheduler while investigating an incident unless evidence shows scheduling is the cause. First collect baseline data and rule out hardware, firmware, queue saturation, filesystem stalls, and memory pressure.
Inspect queue depth and scheduler settings
Read important queue parameters:
for device in sda sdb nvme0n1; do if [ -d "/sys/block/$device/queue" ]; then echo "=== $device ===" printf 'scheduler: ' cat "/sys/block/$device/queue/scheduler" printf 'nr_requests: ' cat "/sys/block/$device/queue/nr_requests" printf 'rotational: ' cat "/sys/block/$device/queue/rotational" fidonenr_requests controls the size of the block layer request queue. Raising it may improve throughput on some devices, especially multi-queue NVMe systems, but it can also increase memory use and latency. Devices and storage stacks impose their own limits.
For NVMe, inspect the namespace and hardware queue settings:
nvme listnvme id-ctrl /dev/nvme0nvme get-feature /dev/nvme0 -HCheck whether the controller reports a maximum I/O queue size and the configured values. Some virtualized environments expose a reduced queue limit even when the physical device supports more.
Avoid treating nr_requests as a performance switch. If the device cannot service the added concurrency, more requests remain queued and await may increase.
Check kernel storage errors
Inspect recent kernel messages related to block devices, filesystems, and I/O:
dmesg -T | grep -iE 'i/o error|blk_update|buffer i/o|timed out|reset|abort|filesystem error|ext4|xfs|nvme|scsi' | tail -n 100If dmesg access is restricted on a hardened host, use the system journal:
sudo journalctl -k --since "1 hour ago" | \ grep -iE 'i/o error|blk_update|buffer i/o|timed out|reset|abort|filesystem error|ext4|xfs|nvme|scsi'Examples of actionable messages include:
blk_update_request: I/O error, dev sda, sector 123456This indicates that the kernel could not complete a request to a specific device and sector. Check SMART data, cabling, controller state, and filesystem consistency. The presence of a sector number helps support teams identify the affected media location.
nvme0: I/O 1/0/0 default/read/pollThis often accompanies a timeout or reset. The surrounding messages usually identify the command, timeout interval, and controller recovery actions.
XFS (dm-0): Metadata I/O errorThe filesystem could not read or write required metadata. Stop write-heavy activity if the filesystem is in a critical state, preserve logs, and follow the filesystem vendor’s recovery guidance. Running aggressive repair commands without understanding the filesystem state can worsen data loss.
Check disk health with SMART data
Install the smartmontools package:
sudo apt install smartmontools# orsudo dnf install smartmontoolsRun a short self-test or inspect current attributes:
sudo smartctl --scansudo smartctl -a /dev/sdaFor NVMe devices, use the NVMe-specific output:
sudo smartctl -a /dev/nvme0Look for the device’s reported health assessment, media errors, error information log entries, unsafe shutdown count, and temperature where supported. SMART does not predict every failure, and RAID controllers can hide the underlying disks from the operating system. Query the controller’s own management utility for arrays and backplanes.
A failing disk can produce intermittent I/O delays while averages still look acceptable. Compare smartctl output with kernel errors and the exact times of application stalls.
Separate capacity pressure from performance pressure
Use df and iostat together:
df -hTdf -iiostat -dx 1 10df -hT shows filesystem capacity and type. df -i shows inode usage. A filesystem can run out of inodes while reporting plenty of free blocks, or it can approach full capacity even when inode usage is low.
Near-full filesystems can degrade allocation patterns and leave less room for temporary files, logs, and metadata. Some filesystems also suffer noticeable allocation stalls when free space becomes scarce. If utilization is high and free space is low, extend the filesystem or delete approved data before changing queue or scheduler settings.
Use du to identify the main consumers:
sudo du -xhd1 /var 2>/dev/null | sort -hsudo du -xhd1 / 2>/dev/null | sort -hThe -x option prevents crossing filesystem boundaries, which is useful when the root filesystem includes mounted volumes or when analyzing a specific mount. The command can be expensive on large trees. Run it during an appropriate maintenance window or use a faster indexing tool when available.
Build a troubleshooting workflow
A repeatable disk incident investigation reduces guesswork. Begin by recording the symptom, including the command, request type, affected files, and time of failure. Then run iostat -dx 1 10 against the active workload and identify which device changes during the incident.
Next, inspect the storage stack with lsblk, dmsetup, cat /proc/mdstat, and mount information. Check capacity with df -hT and df -i. Review the kernel log for timeouts, resets, aborted commands, or filesystem errors.
If the metrics look normal, compare sar history for the same interval. Then inspect NFS, iSCSI, CPU, memory, swap, application locks, and network behavior. Reproduce the workload with controlled read and write tests only when doing so is safe for production data.
A controlled read test can reveal uncached sequential read throughput, but it can also disturb production systems and evict useful cache state. Use a test file on a dedicated filesystem:
dd if=/path/to/testfile of=/dev/null bs=1M count=1024 iflag=directFor a write test, select a filesystem approved for destructive testing and use oflag=direct:
dd if=/dev/zero of=/path/to/iotest bs=1M count=1024 oflag=direct conv=fdatasyncRemove the test file afterward:
rm -f /path/to/iotestDo not run write tests against filesystems holding active application data, production backups, or a mounted root filesystem without explicit approval. Direct I/O tests bypass some cache effects, but they do not reproduce the exact read/write mix, queue depth, block size, or metadata workload of a real application.
Troubleshooting high utilization with low throughput
This pattern often requires separating physical device constraints from logical-device accounting. Start by checking whether the target is a RAID volume, thin volume, network disk, or encrypted device. If the operating system sees only a virtual layer, obtain the array or controller telemetry as well.
Next, compare await and aqu-sz. A saturated device with long service times may need capacity, a hardware repair, or a workload change. A device with high queue depth but short service time may have too much concurrency. Reducing concurrency can improve latency for latency-sensitive workloads even if maximum throughput falls.
Inspect whether reads dominate. A cache miss storm, backup, checkpoint, or table scan can temporarily consume all available bandwidth. If the pattern repeats, fix the workload rather than the disk. Increasing buffer memory can reduce physical reads in some cases, but it does not help when the workload genuinely exceeds storage capacity.
Troubleshooting low utilization with high latency
Low %util with high await requires careful interpretation. Some devices report %util in rounded values, and NVMe controllers can report low device busy time while requests still wait behind controller or virtual-layer queues. Compare results over several samples and check for firmware or driver timeouts.
If the device is healthy, inspect memory and CPU pressure. High reclaim can delay writeback. A stalled filesystem journal, mount point in a bad state, or application lock can leave a request outstanding without generating steady device work.
Network filesystems are a common source of this symptom. Use nfsstat -c, check server reachability, and review kernel messages. Do not conclude that the local disk is healthy until the complete I/O path has been checked.
Troubleshooting high await with low queue depth
High service time with a shallow queue can point to slow media, failed commands, or device firmware behavior. Compare SMART counters, kernel logs, and the same device’s historical performance. A single high sample may reflect a backup, filesystem checkpoint, or device error correction.
Run repeated samples rather than a single report:
iostat -dx 1 30For a non-destructive comparison, examine the distribution over time with sar. If latency is elevated only in short windows, match those windows to application events and the kernel log. If it remains high, test the device and controller health.
Troubleshooting missing sar history
If sar returns an error such as:
Requested activities not available in file /var/log/sa/sa24the selected file does not contain the requested metric or the file may be from a different day. List the available history first:
ls -lh /var/log/sasar -f /var/log/sa/sa24Check whether the collector is writing files:
systemctl status sysstatsystemctl list-timers | grep sysstatjournalctl -u sysstat --since "24 hours ago"On RHEL-family systems, inspect the cron job and its log:
sudo grep -R "sysstat" /etc/cron.d /etc/crontab /etc/crontab.dsudo grep -i sysstat /var/log/cronIf no files appear, verify that ENABLED="true" and that the configured sa1 path exists:
grep -E '^(ENABLED|HISTORY)=' /etc/sysstat/sysstatcommand -v sa1ls -l "$(command -v sa1)"A time synchronization problem can also affect history. The collector uses timestamps and interval boundaries, so confirm the clock and timezone:
timedatectldate -IsTroubleshooting inconsistent device names across reboots
Linux device names such as sda and nvme0n1 can change when hardware enumeration changes, controllers fail, or a system boots with different firmware settings. Persistent naming creates stable identifiers such as /dev/disk/by-id/ and /dev/disk/by-uuid/.
Inspect the names:
ls -l /dev/disk/by-id/ls -l /dev/disk/by-uuid/blkidPrefer stable names in scripts that must survive reboots or hardware maintenance. iostat accepts device paths or names supported by the installed version, but its output labels may use the kernel name. Check the mapping when analyzing a specific application filesystem.
For device-mapper and RAID systems, also record stable identifiers from lsblk, dmsetup, and the storage controller’s management interface.
Compare two time periods with sar
Historical comparison helps determine whether a metric is abnormal for the host. Export one interval to a file and another to a second file:
sar -d -f /var/log/sa/sa24 -s 09:00:00 -e 10:00:00 > /tmp/sar-today.txtsar -d -f /var/log/sa/sa25 -s 09:00:00 -e 10:00:00 > /tmp/sar-yesterday.txtdiff -u /tmp/sar-yesterday.txt /tmp/sar-today.txtThe raw format can be difficult to compare because device names and columns remain similar, while averages reflect the selected periods. For routine trend reporting, send the values to a time-series database or export them to CSV through a controlled parser. Keep the original sar files as the source of record.
Compare peak periods with ordinary business hours only when the workload is comparable. A maintenance window with no users is not a fair baseline for a production-hour incident.
Monitor disk saturation and latency over time
For capacity planning, record device throughput, average await, queue depth, and utilization at a consistent interval. The exact thresholds depend on the device type and workload. Network and high-performance NVMe devices can sustain throughput that overwhelms SATA disks, while a four-drive RAID array has different queue and latency behavior.
Do not set a universal threshold based only on %util. A busy SAS disk with acceptable await may be healthy, while a low-utilization virtual disk can still produce unacceptable application latency. Establish a baseline from the same workload, storage tier, and hardware generation.
A useful dashboard should also expose:
- Read and write throughput per device
- Average and tail latency
- Queue depth
- I/O wait and run queue length
- Memory reclaim and swap activity
- Filesystem free space and inode usage
- RAID, controller, and SMART health
- Application request latency
These values help explain cause and effect. Device utilization alone cannot reveal whether the application or the storage system is responsible for a slowdown.
What iostat and sar cannot tell you
Neither command provides request-level traces or full-stack latency attribution. iostat samples block-device counters, and sar aggregates those counters over time. They do not show which function blocked for a particular duration, whether a request waited in the filesystem, or whether a remote server caused the delay.
For deeper diagnosis, use the tools that match the layer under investigation:
iotopfor live process attributionperffor scheduler, block, and tracepoint analysisbpftracefor latency histograms by process or devicestracefor filesystem calls in a controlled reproductionjournalctl -kfor driver and filesystem errorssmartctland vendor controller tools for media healthnfsstat,mountstats, and network counters for NFS- application traces and database metrics for request latency
These tools overlap, but each adds context. The practical advantage of iostat and sar is that they work on most Linux servers and reveal changes over time with little setup.
Production monitoring checklist
Use this sequence for an unexplained disk slowdown:
date -Isuptimeiostat -dx 1 10vmstat 1 10df -hTdf -ilsblk -o NAME,TYPE,SIZE,ROTA,FSTYPE,MOUNTPOINTSsudo journalctl -k --since "30 minutes ago" | \ grep -iE 'i/o error|blk_update|timed out|reset|abort|ext4|xfs|nvme|scsi'Then inspect the matching historical window:
sar -d -u -r -S -q -f /var/log/sa/sa24 \ -s "$(date -d '1 hour ago' +%H:%M:%S)" -e "$(date +%H:%M:%S)"The exact -f path and time range depend on the day and storage layout. Attribute the workload with iotop, inspect application metrics, and check network storage only if the local block devices do not explain the incident.