How to see an average of I/O of disk with iotop command?

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question























  • sudo iotop -od 10 and sudo iotop -od 60 will show averages of 10 s and 1 min.
    – sudodus
    Aug 16 at 21:52














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?










share|improve this question























  • sudo iotop -od 10 and sudo iotop -od 60 will show averages of 10 s and 1 min.
    – sudodus
    Aug 16 at 21:52












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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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















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










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 and wr_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






share|improve this answer






















  • 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










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























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 and wr_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






share|improve this answer






















  • 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














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 and wr_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






share|improve this answer






















  • 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












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 and wr_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






share|improve this answer














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 and wr_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







share|improve this answer














share|improve this answer



share|improve this answer








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
















  • 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

















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?