top i/o

Thanks to Belostotsky Moshe for the info of iotop.

If you want to see what processes using CPU most then you use top command in Linux.
But if you want to see what processes do the highest number of read/write to the disk?
Well for this you have  iotop. but it is not installed by default in Linux machine.
In RedHat based machine (redhat, centos, suse) you can easily install this with yum:


yum install iotop -y

In Debian based machine:


apt-get install iotp -y

in both case you need to use sudo if you don’t have root privileges.

in order to run it you just need to run:


iotop

And you get output like this:diskio
In the header you see the total read and write, and below this just like in the normal top command, you see the different processes, and the number read bytes and write bytes (per second)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s