Insight: Monitor Linux Disk I/O Activity With Iotop Command
In this tutorial, we will use Iotop command to monitor Linux disk I/O activity and usage per-process. Iotop is an open-source tool to monitor Linux Disk I/O.
It is written using Python and requires Kernel 2.6.20 or higher and Python 2.7 or higher.
Command to verify the Linux kernel and Python version:
uname -r python -V
Monitor Linux Disk I/O Activity With Iotop Command
At first, Install Iotop Disk I/O monitoring tool in Linux using the following commands:
Method to install Iotop On RHEL, CentOS and Fedora yum update
yum install iotop
Method to install Iotop on Fedora dnf update
dnf install iotop
Method to install Debian, Ubuntu and Linux Mint apt-get update
apt-get install iotop
If you want to install the recent version of iotop, You can do it by compiling from source.
Run the following command to use Iotop in Linux. You will get the list of running processes:
iotop with -o or –only option to see current processes:
If you know about th cron job scheduling then you can use cron job scheduling program to send an alert to your email address.
Add the following lines :
MAILTOfirstname.lastname@example.org * * * * * root iotop -botqqq --iter=3 >> /var/log/iotop