-
-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about iostat avgqu-sz #126
Comments
Hi, |
Merci Sebastien! I was wondering because I can't get the exact same values. Basically if I stress the hard drive, my implementation of this function shows it straight but iostat take a longer time to show that high activity is happening (longer time took to show progression). |
Sorry, no obvious reasons come to my mind. |
Thanks for the quick reply! |
Does iostat behave the same if you don't use a VM? |
My last real linux died literally 2 days ago so I can't tell :/ |
Hi,
First, thanks a lot for that amazing tool!
I want to calculate the avgqu-sz. Looking at the code it seems that the formula is:
((current_ticks - prev_ticks) / itv * HZ ) / 1000
where itv * HZ == (jiffies_uptime - previous_jiffies_uptime) * HZ
and current_ticks or prev_ticks are the last field from /proc/diskstats at each interval. (weighted time spent doing I/Os (ms) according to https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats
Is this correct?
Best regards.
The text was updated successfully, but these errors were encountered: