Disk usage related information

From Notes_Wiki
Revision as of 05:50, 7 May 2013 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Information_tools|Information tools</yambe:breadcrumb> =Disk usage related information= If the performance of a system is poor, then the most common reasons...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Information_tools|Information tools</yambe:breadcrumb>

Disk usage related information

If the performance of a system is poor, then the most common reasons for poor performance are high usage of CPU, memory, network or disk. CPU usage can be monitored using top or htop, memory usage can be seen using free -m or top, network usage can be seen using iptraf, tcptrack, etc. Similalry for disk usage one can use:

  1. iostat
  2. iotop
  3. atop


iostat

One can use following command:

iostat 5

to see disk usage in last five seconds to see if disk usage is very high. The first set of values printed are cumulative till the command was run, so they should be ignored. Second set of values onwards can be used for actual diagnosis.


iotop

To see top like listing of processes but in terms of their disk usage and not CPU, one can use:

iotop


atop

Atop is a more comprehensive monitoring tool. It looks at CPU, RAM, hdd, etc. all parameters while monitoring. This can be useful if combination of various parameters need to be monitored using same tool. To start atop use:

atop


<yambe:breadcrumb>Information_tools|Information tools</yambe:breadcrumb>