Difference between revisions of "Disk usage related information"

From Notes_Wiki
m
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>Information_tools|Information tools</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Information tools]] > [[Disk usage related information]]
=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:
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:
Line 8: Line 7:




==iostat==
=iostat=


One can use following command:
One can use following command:
Line 17: Line 16:




==iotop==
=iotop=


Sometimes machine may be too slow and using top may indicate very high value of %wa indicating slowness due to disk I/O.  If this continues for long even load average would increase to indicate slow performance.  To figure out which processes are using more disk we can install '<tt>iotop</tt>' tool which lists processes in order of their disk usage.   
Sometimes machine may be too slow and using top may indicate very high value of %wa indicating slowness due to disk I/O.  If this continues for long even load average would increase to indicate slow performance.  To figure out which processes are using more disk we can install '<tt>iotop</tt>' tool which lists processes in order of their disk usage.   
Line 27: Line 26:




==atop==
=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:
Information on atop is available at [[Rocky 9.x atop]]
<pre>
atop
</pre>




<yambe:breadcrumb>Information_tools|Information tools</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Information tools]] > [[Disk usage related information]]

Latest revision as of 07:22, 15 June 2023

Home > CentOS > CentOS 6.x > Information tools > 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

Sometimes machine may be too slow and using top may indicate very high value of %wa indicating slowness due to disk I/O. If this continues for long even load average would increase to indicate slow performance. To figure out which processes are using more disk we can install 'iotop' tool which lists processes in order of their disk usage.

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

iotop


atop

Information on atop is available at Rocky 9.x atop


Home > CentOS > CentOS 6.x > Information tools > Disk usage related information