mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
block: Allow configuring whether to account failed and invalid ops
This patch adds two options, "stats-account-invalid" and "stats-account-failed", that can be used to decide whether invalid and failed I/O operations must be used when collecting statistics for latency and last access time. Signed-off-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: ebc7e5966511a342cad428a392c5f5ad56b15213.1446044837.git.berto@igalia.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
7ee12dafe9
commit
362e9299b3
6 changed files with 79 additions and 11 deletions
|
@ -2599,6 +2599,11 @@ Each json-object contain the following:
|
|||
(json-int)
|
||||
- "invalid_flush_operations": number of invalid flush operations
|
||||
(json-int)
|
||||
- "account_invalid": whether invalid operations are included in
|
||||
the last access statistics (json-bool)
|
||||
- "account_failed": whether failed operations are included in the
|
||||
latency and last access statistics
|
||||
(json-bool)
|
||||
- "parent": Contains recursively the statistics of the underlying
|
||||
protocol (e.g. the host file for a qcow2 image). If there is
|
||||
no underlying protocol, this field is omitted
|
||||
|
@ -2624,7 +2629,9 @@ Example:
|
|||
"flush_operations":61,
|
||||
"rd_merged":0,
|
||||
"wr_merged":0,
|
||||
"idle_time_ns":2953431879
|
||||
"idle_time_ns":2953431879,
|
||||
"account_invalid":true,
|
||||
"account_failed":false
|
||||
}
|
||||
},
|
||||
"stats":{
|
||||
|
@ -2639,7 +2646,9 @@ Example:
|
|||
"flush_total_times_ns":49653,
|
||||
"rd_merged":0,
|
||||
"wr_merged":0,
|
||||
"idle_time_ns":2953431879
|
||||
"idle_time_ns":2953431879,
|
||||
"account_invalid":true,
|
||||
"account_failed":false
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -2655,7 +2664,9 @@ Example:
|
|||
"rd_total_times_ns":0
|
||||
"flush_total_times_ns":0,
|
||||
"rd_merged":0,
|
||||
"wr_merged":0
|
||||
"wr_merged":0,
|
||||
"account_invalid":false,
|
||||
"account_failed":false
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -2671,7 +2682,9 @@ Example:
|
|||
"rd_total_times_ns":0
|
||||
"flush_total_times_ns":0,
|
||||
"rd_merged":0,
|
||||
"wr_merged":0
|
||||
"wr_merged":0,
|
||||
"account_invalid":false,
|
||||
"account_failed":false
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -2687,7 +2700,9 @@ Example:
|
|||
"rd_total_times_ns":0
|
||||
"flush_total_times_ns":0,
|
||||
"rd_merged":0,
|
||||
"wr_merged":0
|
||||
"wr_merged":0,
|
||||
"account_invalid":false,
|
||||
"account_failed":false
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue