[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC V2 12/16] qapi: Add support for deduplication infos i
From: |
Benoît Canet |
Subject: |
[Qemu-devel] [RFC V2 12/16] qapi: Add support for deduplication infos in qapi-schema.json. |
Date: |
Wed, 6 Feb 2013 13:32:15 +0100 |
---
qapi-schema.json | 40 +++++++++++++++++++++++++++++++++++++++-
1 file changed, 39 insertions(+), 1 deletion(-)
diff --git a/qapi-schema.json b/qapi-schema.json
index cf4e9d6..ec61f6a 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -814,6 +814,40 @@
'stopping' ] }
##
+# @BlockDeviceDedupInfo
+#
+# Statistics of the deduplication on a virtual block device implementing it
+# since QEMU startup.
+#
+# @deduplicated-clusters: Number of clusters which where deduplicated.
+#
+# @non-deduplicated-clusters: Number of clusters which where not deduplicated.
+#
+# @missing-data-reads: Number of reads which where done to complete
+# unaligned or sub cluster sized writes.
+#
+# @ram-hash-creations: Number of cluster hash created in RAM.
+#
+# @ram-hash-deletions: Number of cluster hash deleted in RAM.
+#
+# @ram-usage: Number of bytes of RAM used.
+#
+# @deleted-clusters: Number of deleted cluster when refcount == 0
+#
+# @refcount-overflows: Number of refcount overflows
+#
+# @status: Status of the deduplication
+#
+# Since: 1.5.0
+##
+{ 'type': 'BlockDeviceDedupInfo',
+ 'data': {'deduplicated-clusters': 'int', 'non-deduplicated-clusters': 'int',
+ 'missing-data-reads': 'int', 'ram-hash-creations': 'int',
+ 'ram-hash-deletions': 'int', 'ram-usage': 'int',
+ 'deleted-clusters': 'int', 'refcount-overflows': 'int',
+ 'status': 'DedupStatus' } }
+
+##
# @BlockDeviceStats:
#
# Statistics of a virtual block device or a block backing device.
@@ -841,13 +875,17 @@
# growable sparse files (like qcow2) that are used on top
# of a physical device.
#
+# @deduplication: #optional @BlockDeviceDedupInfo describing deduplication
+# metrics (since 1.5)
+#
# Since: 0.14.0
##
{ 'type': 'BlockDeviceStats',
'data': {'rd_bytes': 'int', 'wr_bytes': 'int', 'rd_operations': 'int',
'wr_operations': 'int', 'flush_operations': 'int',
'flush_total_time_ns': 'int', 'wr_total_time_ns': 'int',
- 'rd_total_time_ns': 'int', 'wr_highest_offset': 'int' } }
+ 'rd_total_time_ns': 'int', 'wr_highest_offset': 'int',
+ '*deduplication': 'BlockDeviceDedupInfo' } }
##
# @BlockStats:
--
1.7.10.4
- [Qemu-devel] [RFC V2 15/16] qcow2: returns deduplication metrics and status via bdrv_get_info(), (continued)
- [Qemu-devel] [RFC V2 15/16] qcow2: returns deduplication metrics and status via bdrv_get_info(), Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V2 10/16] qcow2: Count cluster deleted metric, Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V2 11/16] qcow2: Count deduplication refcount overflow metric., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V2 07/16] qcow2: Collect undeduplicated cluster metric., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V2 02/16] qcow2: Enable the deduplication feature., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V2 04/16] qcow2: Initialize deduplication metrics., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V2 08/16] qcow2: Count QCowHashNode creation metrics., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V2 09/16] qcow2: Count QCowHashNode removal from tree for metrics., Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V2 16/16] qapi: Return virtual block device deduplication metrics in QMP, Benoît Canet, 2013/02/06
- [Qemu-devel] [RFC V2 12/16] qapi: Add support for deduplication infos in qapi-schema.json.,
Benoît Canet <=
- [Qemu-devel] [RFC V2 13/16] block: Add deduplication metrics to BlockDriverInfo., Benoît Canet, 2013/02/06