From patchwork Wed Jan 16 16:25:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Beno=C3=AEt_Canet?= X-Patchwork-Id: 212855 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F36F72C0091 for ; Thu, 17 Jan 2013 04:28:32 +1100 (EST) Received: from localhost ([::1]:40470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvVqz-0005qL-EV for incoming@patchwork.ozlabs.org; Wed, 16 Jan 2013 11:28:41 -0500 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 Received: by paradis.irqsave.net (Postfix, from userid 1002) id 082D287432B; Wed, 16 Jan 2013 18:00:00 +0100 (CET) Received: from localhost.localdomain (unknown [192.168.77.1]) by paradis.irqsave.net (Postfix) with ESMTP id AD871874349; Wed, 16 Jan 2013 17:56:13 +0100 (CET) From: =?UTF-8?q?Beno=C3=AEt=20Canet?= To: qemu-devel@nongnu.org Date: Wed, 16 Jan 2013 17:25:04 +0100 Message-Id: <1358353508-5369-11-git-send-email-benoit@irqsave.net> X-Mailer: git-send-email 1.7.10.4 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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 62.212.105.220 Cc: kwolf@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , stefanha@redhat.com 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?= X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org --- 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'] } ## +# @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 +# +# @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' } } + +## # @BlockDeviceStats: # # Statistics of a virtual block device or a block backing device. @@ -747,13 +781,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: