Did You Know?
Got a tip? Let us know

We are pleased to announce our new TecMint Q/A section to submit your Linux questions

Install Iotop (Monitor Linux Disk I/O) in RHEL, CentOS and Fedora

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators
CW

We are bringing you all a nice monitoring tool called Iotop, which 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.8, CentOS 6.3/6.2/6.1/6/5.8 and Fedora 17,16,15,14,13,12using yum command.

Install Iotop

Installing Iotop in Linux

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
Install Iotop (Monitor Linux Disk I/O) in RHEL 6.3/6.2/6.1/6/5.8, CentOS 6.3/6.2/6.1/6/5.8 and Fedora 17,16,15,14,13,12

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 RHEL, CentOS and Fedora.

# yum install iotop

Step 3: Running Iotop

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

# iotop

Example Output

Iotop Command

Iotop Monitoring Command Preview

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
Iotop Disk I/O Monitoring

Iotop Disk I/O Monitoring Preview

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.

Ravi Saive

Owner at TecMint.com
Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Linux Services & Free WordPress Setup

Our post is simply ‘DIY’ aka ‘Do It Yourself, still you may find difficulties and want us to help you out. We offer wide range of Linux and Web Hosting Solutions at fair minimum rates. Please submit your orders by Clicking Here.

One Response

  1. sarath says:

    Hi,

    As far as disk I/O in linux is concerned. We need to first go through several operating system concepts, which will help us in finding out performance bottlenecks.
    Concepts like Minor Page fault and Major Page fault are very important. The number of major page fault is very helpful in finding the IO usage.

    http://www.slashroot.in/linux-system-io-monitoring

Leave a Reply

This work is licensed under a (cc) BY-NC | TecMint uses cookies. By using our services, you comply to use of our cookies. More info: Privacy Policy.
© 2012-2014 All Rights Reserved.