iotop
Iotop is a command line tool that allows monitoring of disk I/O usage in real-time. It provides a detailed overview of the processes responsible for disk I/O operations, indicating the amount of data being read from or written to the disk by each process. This tool is particularly useful for system administrators and developers to identify potential performance bottlenecks and troubleshoot disk-related issues. Iotop provides information such as the process ID (PID), user, priority, and the amount of I/O being performed by each process. It also displays the type of I/O operation (read or write), the device being used for I/O, and the path of the accessed file. The data is presented in a dynamic color-coded interface that updates in real-time, making it easy to identify the processes consuming significant disk resources. Iotop can be executed with root privileges to gain a complete view of all disk I/O activities system-wide. It can also display accumulated I/O over a specific time interval, helping to analyze disk usage trends. The tool uses the Linux kernel's accounting information and is available for various Linux distributions. It provides a convenient and efficient way to monitor disk I/O and gain insights into system performance.
List of commands for iotop:
-
iotop:tldr:25e13 iotop: Show I/O usage of a given user.$ sudo iotop --user=${user}try on your machineexplain this command
-
iotop:tldr:4dc07 iotop: Start top-like I/O monitor.$ sudo iotoptry on your machineexplain this command
-
iotop:tldr:9e766 iotop: Show I/O usage in non-interactive mode.$ sudo iotop --batchtry on your machineexplain this command
-
iotop:tldr:dca4c iotop: Show I/O usage of given PID(s).$ sudo iotop --pid=${PID}try on your machineexplain this command
-
iotop:tldr:dd7ea iotop: Show only I/O usage of processes (default is to show all threads).$ sudo iotop --processestry on your machineexplain this command
-
iotop:tldr:f0455 iotop: Show accumulated I/O instead of bandwidth.$ sudo iotop --accumulatedtry on your machineexplain this command
-
iotop:tldr:f6299 iotop: Show only processes or threads actually doing I/O.$ sudo iotop --onlytry on your machineexplain this command