Difference between revisions of "Disk usage related information"
(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...") |
m |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|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: | 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= | |||
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. | |||
To see top like listing of processes but in terms of their disk usage and not CPU, one can use: | To see top like listing of processes but in terms of their disk usage and not CPU, one can use: | ||
Line 25: | Line 26: | ||
=atop= | |||
Information on atop is available at [[Rocky 9.x atop]] | |||
atop | |||
[[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:
- iostat
- iotop
- 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