Philippe Mathieu-Daudé
f25e7ab2b0
block/nvme: Add driver statistics for access alignment and hw errors
Keep statistics of some hardware errors, and number of
aligned/unaligned I/O accesses.
QMP example booting a full RHEL 8.3 aarch64 guest:
{ "execute": "query-blockstats" }
{
"return": [
{
"device": "",
"node-name": "drive0",
"stats": {
"flush_total_time_ns": 6026948,
"wr_highest_offset": 3383991230464,
"wr_total_time_ns": 807450995,
"failed_wr_operations": 0,
"failed_rd_operations": 0,
"wr_merged": 3,
"wr_bytes": 50133504,
"failed_unmap_operations": 0,
"failed_flush_operations": 0,
"account_invalid": false,
"rd_total_time_ns": 1846979900,
"flush_operations": 130,
"wr_operations": 659,
"rd_merged": 1192,
"rd_bytes": 218244096,
"account_failed": false,
"idle_time_ns": 2678641497,
"rd_operations": 7406,
},
"driver-specific": {
"driver": "nvme",
"completion-errors": 0,
"unaligned-accesses": 2959,
"aligned-accesses": 4477
},
"qdev": "/machine/peripheral-anon/device[0]/virtio-backend"
}
]
}
Suggested-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Message-id: 20201001162939.1567915-1-philmd@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2020-10-23 13:42:16 +01:00
..
2020-10-02 15:46:40 +02:00
2020-10-02 15:46:40 +02:00
2019-10-10 10:56:18 +02:00
2019-10-10 10:56:17 +02:00
2020-07-27 12:37:25 +02:00
2020-09-07 12:31:31 +02:00
2019-10-10 10:56:18 +02:00
2020-09-07 12:31:31 +02:00
2020-10-13 13:33:46 +02:00
2020-09-07 12:31:31 +02:00
2020-05-18 19:05:25 +02:00
2020-07-10 15:18:08 +02:00
2020-09-23 16:07:44 +01:00
2020-09-07 12:31:31 +02:00
2020-10-05 10:59:06 +01:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-09-07 12:31:31 +02:00
2020-09-07 12:31:31 +02:00
2020-10-05 10:59:42 +01:00
2019-09-13 12:18:37 +02:00
2020-07-21 10:49:02 +02:00
2020-07-06 08:49:28 +02:00
2020-07-10 15:18:08 +02:00
2020-05-28 13:15:22 -05:00
2019-06-12 13:20:20 +02:00
2018-12-14 11:52:40 +01:00
2020-05-18 19:05:25 +02:00
2019-06-12 13:20:20 +02:00
2020-09-16 10:33:48 +01:00
2020-09-16 10:33:48 +01:00
2020-09-07 12:31:31 +02:00
2020-07-10 15:18:08 +02:00
2020-06-05 09:54:48 +01:00
2020-10-05 10:59:42 +01:00
2019-06-12 13:18:33 +02:00
2020-09-29 15:41:35 +02:00
2020-03-16 22:07:42 +01:00
2020-10-05 10:59:06 +01:00
2020-09-07 12:31:31 +02:00
2020-10-09 15:04:32 -05:00
2020-09-23 16:07:44 +01:00
2020-09-07 12:31:31 +02:00
2020-10-23 13:42:16 +01:00
2020-07-10 15:18:08 +02:00
2018-02-09 05:05:11 +01:00
2020-03-06 17:15:38 +01:00
2020-10-06 08:34:49 +02:00
2020-09-15 11:05:12 +02:00
2019-10-26 15:38:06 +02:00
2020-10-02 15:46:40 +02:00
2020-09-15 11:05:13 +02:00
2020-10-06 08:34:49 +02:00
2020-05-13 14:20:31 +02:00
2020-09-15 11:31:10 +02:00
2020-10-06 08:34:49 +02:00
2020-09-15 11:05:13 +02:00
2019-04-30 15:29:00 +02:00
2017-07-17 11:34:11 +08:00
2017-07-17 11:34:11 +08:00
2019-04-30 15:29:00 +02:00
2020-07-10 15:18:08 +02:00
2020-07-06 10:34:14 +02:00
2020-09-15 11:05:12 +02:00
2020-07-10 15:18:08 +02:00
2020-09-15 11:31:10 +02:00
2020-07-10 15:18:08 +02:00
2020-10-15 16:06:28 +02:00
2020-09-07 12:31:31 +02:00
2020-07-10 15:18:08 +02:00
2020-09-07 12:31:31 +02:00
2020-09-23 16:07:44 +01:00
2020-09-23 16:07:44 +01:00
2020-09-09 17:17:58 +01:00
2020-08-21 06:18:24 -04:00
2020-07-10 15:18:08 +02:00
2019-06-12 13:20:20 +02:00
2020-04-30 17:51:07 +02:00
2020-09-15 11:05:13 +02:00
2019-04-30 15:29:00 +02:00
2020-10-13 13:33:45 +02:00
2020-07-10 15:18:08 +02:00
2020-09-16 10:33:48 +01:00
2019-06-12 13:18:33 +02:00
2018-08-28 18:21:38 +02:00