IOTOP – (Monitor Linux Disk I/O) in RHEL, CentOS and Fedora

0
0

Iotop, is much similar to Linux familiar Top command that we used to monitor server processes and usage. In this article we will show how to install Iotop monitoring utility in RHEL 6.3/6.2/6.1/6/5.8CentOS 6.3/6.2/6.1/6/5.8 and Fedora 17,16,15,14,13,12 using yum command.

What Is Iotop?

Iotop is an open source and free utility like Linux UI based Top command that used to monitor the Disk I/O and to trace the exact process or high used user disk read/writes. Iotop tool is based on Python programming requires Kernel accounting function to monitor and display processes. It can be very useful tool for system administrator to trace the specific process that may causing a disk I/O.

Iotop Pre-requisites

  1. Kernel 2.6.18
  2. Python 2.4 with ctypes module

Installing Iotop in RHEL, CentOS and Fedora

Step 1: Installing Iotop Pre-requisites

As I already said above that Iotop requires latest Kernel 2.6.18 and Python 2.4 with ctypes module, let’s first update Linux Kernel with the help of following command.

# yum update kernel

Then you need to update Python with ctypes module for iotop package.

# yum install python python-ctypes

Step 2: Installing Iotop

To install iotop use the following yum command to install it on RHELCentOS and Fedora.

# yum install iotop

Step 3: Running Iotop

To run the iotop command, use the following command as root user.

# iotop

I recommend you all that start using iotop with -o or –only option to see all the running processes or threads actually doing I/O, instead of watching all processes or threads.

# iotop --only

Step 4: Iotop Usage

To list all the usage and options of iotop command, run the following command to check the man pages.

# man iotop

Some important iotop usage and keyboard shortcuts.

  1. Move left or right arrow key to change the sorting.
  2. Use –version option to see version number and exit.
  3. Use -h option to see information of usage.
  4. Use -r option to reverse the sorting order.
  5. Use -o option to check processes or thread.
  6. Use -b option to Turn On non-interactive mode to enable logging I/O usage.
  7. Use -p PID to list all processes/threads to monitor.
  8. Use -u USER option to list all the users to monitor.
  9. Use -P option to list only processes. Normally iotop displays all threads.
  10. Use -a option to check accumulated I/O instead of bandwidth.

All the above iotop options are fairly straightforward. The interface almost looks and functions exactly same as Linux top command, So if you are a already familiar with its usage, then iotop will be a much simpler than top.

LEAVE A REPLY

Please enter your comment!
Please enter your name here