Monitoring real time disk io
alle tools hieronder werden op identieke wijze geïnstaleerd : sudo apt install atop ( , sudo apt install iotop , etc)
==atop==
atop
atop | grep Brave
==iostat==
monitoring system input/output statistics for devices and partitions.
monitors system I/O by observing the time the devices are active in relation to their average transfer rates.
comes with various information related to disk I/O
part of sysstat suite => sudo apt install sysstat
iostat -dxm
-x : show more detailed statistics information
-d : display only device report
-m : display in MB
iotop
http://guichaz.free.fr/iotop/
– requires sudo to run
sudo iotop & disown
– lists only the top io consuming processes :
sudo iotop -o & disown
ioping
- monitor I/O speed and latency in real time
- how long it takes a disk to respond to requests.
ioping /dev/sda10 -c4
dstat
by default 1 second interval , all disks :
dstat --disk --io
only specific disk :
dstat --disk --io -D sdb
vmstat
virtual memory statistics. It is a performance monitoring command, which also provides information about block IO and CPU activity in addition to memory.
The first line of the report will contain the average I/O values since the last reboot and the subsequent lines show real-time statistics as shown below:
vmstat** -d 1 5
- d : Display only the disk statistics
- Time Interval (1) : The statistics will be re-measured and reported every second
- Count Value (5) : The statistics will be reported five times before it exits.
get current top1 disk I/O
to get PID of the #1 disk I/O consuming process :
get process info from PID
with the PID of a IO consuming process ,
met ps -aux | grep '...' kan je info over het proces nagaan