How to see an average of I/O of disk with iotop command?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
With iotop -o
command I can see the write and read speed of the disk per second. But it varies a lot, from 0 to high values. I'd like to see an average of it per minute or per 10 seconds.
How can I do it?
linux iotop
add a comment |Â
up vote
0
down vote
favorite
With iotop -o
command I can see the write and read speed of the disk per second. But it varies a lot, from 0 to high values. I'd like to see an average of it per minute or per 10 seconds.
How can I do it?
linux iotop
sudo iotop -od 10
andsudo iotop -od 60
will show averages of 10 s and 1 min.
â sudodus
Aug 16 at 21:52
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
With iotop -o
command I can see the write and read speed of the disk per second. But it varies a lot, from 0 to high values. I'd like to see an average of it per minute or per 10 seconds.
How can I do it?
linux iotop
With iotop -o
command I can see the write and read speed of the disk per second. But it varies a lot, from 0 to high values. I'd like to see an average of it per minute or per 10 seconds.
How can I do it?
linux iotop
linux iotop
edited Aug 16 at 21:34
msp9011
3,46643862
3,46643862
asked Aug 16 at 20:55
Henrique Barcelos
1
1
sudo iotop -od 10
andsudo iotop -od 60
will show averages of 10 s and 1 min.
â sudodus
Aug 16 at 21:52
add a comment |Â
sudo iotop -od 10
andsudo iotop -od 60
will show averages of 10 s and 1 min.
â sudodus
Aug 16 at 21:52
sudo iotop -od 10
and sudo iotop -od 60
will show averages of 10 s and 1 min.â sudodus
Aug 16 at 21:52
sudo iotop -od 10
and sudo iotop -od 60
will show averages of 10 s and 1 min.â sudodus
Aug 16 at 21:52
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
I hope sar
is the better way to get the average result
sar -d 1 10 | awk '/Average/ print $2" "$4*0.000512"MB/s "$5*0.000512"MB/s"' | sed 's#DEV.*#DEV rd_sec/s wr_sec/s#' | column -t
rd_sec/s
andwr_sec/s
are number of sectors read and write from the device. The size of a sector is 512 bytes.multiply by
.000512
to convert into MB/sec
Is there a way to list in MB/s?
â Henrique Barcelos
Aug 16 at 21:44
@HenriqueBarcelos check my updated answer
â msp9011
Aug 16 at 22:10
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I hope sar
is the better way to get the average result
sar -d 1 10 | awk '/Average/ print $2" "$4*0.000512"MB/s "$5*0.000512"MB/s"' | sed 's#DEV.*#DEV rd_sec/s wr_sec/s#' | column -t
rd_sec/s
andwr_sec/s
are number of sectors read and write from the device. The size of a sector is 512 bytes.multiply by
.000512
to convert into MB/sec
Is there a way to list in MB/s?
â Henrique Barcelos
Aug 16 at 21:44
@HenriqueBarcelos check my updated answer
â msp9011
Aug 16 at 22:10
add a comment |Â
up vote
0
down vote
I hope sar
is the better way to get the average result
sar -d 1 10 | awk '/Average/ print $2" "$4*0.000512"MB/s "$5*0.000512"MB/s"' | sed 's#DEV.*#DEV rd_sec/s wr_sec/s#' | column -t
rd_sec/s
andwr_sec/s
are number of sectors read and write from the device. The size of a sector is 512 bytes.multiply by
.000512
to convert into MB/sec
Is there a way to list in MB/s?
â Henrique Barcelos
Aug 16 at 21:44
@HenriqueBarcelos check my updated answer
â msp9011
Aug 16 at 22:10
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I hope sar
is the better way to get the average result
sar -d 1 10 | awk '/Average/ print $2" "$4*0.000512"MB/s "$5*0.000512"MB/s"' | sed 's#DEV.*#DEV rd_sec/s wr_sec/s#' | column -t
rd_sec/s
andwr_sec/s
are number of sectors read and write from the device. The size of a sector is 512 bytes.multiply by
.000512
to convert into MB/sec
I hope sar
is the better way to get the average result
sar -d 1 10 | awk '/Average/ print $2" "$4*0.000512"MB/s "$5*0.000512"MB/s"' | sed 's#DEV.*#DEV rd_sec/s wr_sec/s#' | column -t
rd_sec/s
andwr_sec/s
are number of sectors read and write from the device. The size of a sector is 512 bytes.multiply by
.000512
to convert into MB/sec
edited Aug 16 at 22:09
answered Aug 16 at 21:28
msp9011
3,46643862
3,46643862
Is there a way to list in MB/s?
â Henrique Barcelos
Aug 16 at 21:44
@HenriqueBarcelos check my updated answer
â msp9011
Aug 16 at 22:10
add a comment |Â
Is there a way to list in MB/s?
â Henrique Barcelos
Aug 16 at 21:44
@HenriqueBarcelos check my updated answer
â msp9011
Aug 16 at 22:10
Is there a way to list in MB/s?
â Henrique Barcelos
Aug 16 at 21:44
Is there a way to list in MB/s?
â Henrique Barcelos
Aug 16 at 21:44
@HenriqueBarcelos check my updated answer
â msp9011
Aug 16 at 22:10
@HenriqueBarcelos check my updated answer
â msp9011
Aug 16 at 22:10
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f463070%2fhow-to-see-an-average-of-i-o-of-disk-with-iotop-command%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
sudo iotop -od 10
andsudo iotop -od 60
will show averages of 10 s and 1 min.â sudodus
Aug 16 at 21:52