From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvVqm-0005b2-0K for qemu-devel@nongnu.org; Wed, 16 Jan 2013 11:28:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvVqi-0007Xm-Uh for qemu-devel@nongnu.org; Wed, 16 Jan 2013 11:28:27 -0500 Received: from nodalink.pck.nerim.net ([62.212.105.220]:43377 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvVqi-0007Xe-FO for qemu-devel@nongnu.org; Wed, 16 Jan 2013 11:28:24 -0500 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Wed, 16 Jan 2013 17:25:04 +0100 Message-Id: <1358353508-5369-11-git-send-email-benoit@irqsave.net> In-Reply-To: <1358353508-5369-1-git-send-email-benoit@irqsave.net> References: <1358353508-5369-1-git-send-email-benoit@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] =?utf-8?q?=5BRFC_V1_10/14=5D_qapi=3A_Add_support_for?= =?utf-8?q?_deduplication_infos_in_qapi-schema=2Ejson=2E?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , stefanha@redhat.com --- qapi-schema.json | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 5dfa052..1a5014c 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -720,6 +720,40 @@ { 'command': 'query-block', 'returns': ['BlockInfo'] } =20 ## +# @BlockDeviceDedupInfo +# +# Statistics of the deduplication on a virtual block device implementing= it +# since QEMU startup. +# +# @deduplicated-clusters: Number of clusters which where deduplicate= d. +# +# @non-deduplicated-clusters: Number of clusters which where not dedupli= cated. +# +# @missing-data-reads: Number of reads which where done to comple= te +# 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 +# +# @running: True if deduplication is running +# +# 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', + 'running': 'bool'=C2=A0}=C2=A0} + +## # @BlockDeviceStats: # # Statistics of a virtual block device or a block backing device. @@ -747,13 +781,17 @@ # growable sparse files (like qcow2) that are used o= n top # of a physical device. # +# @deduplication: #optional @BlockDeviceDedupInfo describing deduplicati= on +# 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' } } =20 ## # @BlockStats: --=20 1.7.10.4