Editing IO statistics
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
== Kernel interface == | == Kernel interface == | ||
− | The stats are reported via the proc files. Currently it is available in kernels starting from 028stab069.1. | + | The stats in question are reported via the proc files. Currently it is available in kernels starting from 028stab069.1. |
=== Files === | === Files === | ||
− | * | + | * /proc/bc/$id/iostat |
: statistics for beancounter $id | : statistics for beancounter $id | ||
− | * | + | * /proc/bc/iostat |
: statistics for all beancounters | : statistics for all beancounters | ||
Line 43: | Line 43: | ||
New columns might be added at the end of row in future. | New columns might be added at the end of row in future. | ||
− | Separate stats exist for fuse and flush, | + | Separate stats exist for fuse and flush, with the only numeric fields shown are 9 and 10, others are set to 0. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Queues === | === Queues === | ||
Line 86: | Line 62: | ||
active = sum(b.used_time - a.used_time) * 100 / interval; | active = sum(b.used_time - a.used_time) * 100 / interval; | ||
− | waiting = sum(b.wait_time - | + | waiting = sum(b.wait_time - b.wait_time) * 100 / interval; |
idle = 100 - (active + waiting); | idle = 100 - (active + waiting); | ||
Line 111: | Line 87: | ||
== See also == | == See also == | ||
* [[IO accounting]] | * [[IO accounting]] | ||
− | * [[I/O priorities | + | * [[I/O priorities for containers]] |
− |