summaryrefslogtreecommitdiffstats
path: root/health/guides/ioping/ioping_disk_latency.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
commitbe1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 (patch)
tree9754ff1ca740f6346cf8483ec915d4054bc5da2d /health/guides/ioping/ioping_disk_latency.md
parentInitial commit. (diff)
downloadnetdata-be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97.tar.xz
netdata-be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97.zip
Adding upstream version 1.44.3.upstream/1.44.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'health/guides/ioping/ioping_disk_latency.md')
-rw-r--r--health/guides/ioping/ioping_disk_latency.md46
1 files changed, 46 insertions, 0 deletions
diff --git a/health/guides/ioping/ioping_disk_latency.md b/health/guides/ioping/ioping_disk_latency.md
new file mode 100644
index 00000000..cc4fdc69
--- /dev/null
+++ b/health/guides/ioping/ioping_disk_latency.md
@@ -0,0 +1,46 @@
+### Understand the alert
+
+This alert presents the average `I/O latency` over the last 10 seconds. `I/O latency` is the time that is required to complete a single I/O operation on a block device.
+
+This alert might indicate that your disk is under high load, or that the disk is slow.
+
+### Troubleshoot the alert
+
+1. Check per-process I/O usage:
+
+ Use `iotop` to see the processes that are the main I/O consumers:
+
+ ```
+ sudo iotop
+ ```
+
+ If you don't have `iotop` installed, then [install it](https://www.tecmint.com/iotop-monitor-linux-disk-io-activity-per-process/)
+
+2. Analyze the running processes:
+
+ Investigate the top I/O consumers and determine if these processes are expected to consume that much I/O, or if there might be an issue with these processes.
+
+3. Minimize the load by closing any unnecessary main consumer processes:
+
+ If you find that any unnecessary or unexpected processes are heavily utilizing your disk, try stopping or closing those processes to reduce the load on the disk. Always double-check if the process you want to close is necessary.
+
+4. Verify your disk health:
+
+ Make sure your disk is not facing any hardware issues or failures. For this, you can use the `smartmontools` package, which contains the `smartctl` utility. If it's not installed, you can [install it](https://www.smartmontools.org/wiki/Download).
+
+ To check the disk health, run:
+
+ ```
+ sudo smartctl -a /dev/sdX
+ ```
+
+ Replace `/dev/sdX` with the correct disk device identifier (for example, `/dev/sda`).
+
+5. Consider upgrading your disk:
+
+ If your disk consistently experiences high latency and you have already addressed any performance issues with the running processes, consider upgrading your disk to a faster drive (e.g., replace an HDD with an SSD).
+
+### Useful resources
+
+1. [iotop - Monitor Linux Disk I/O Activity](https://www.tecmint.com/iotop-monitor-linux-disk-io-activity-per-process/)
+2. [smartmontools - SMART monitoring tools](https://www.smartmontools.org/)