From nobody Fri May 17 10:13:33 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1587356226; cv=none; d=zohomail.com; s=zohoarc; b=NxnBZnuJFOV3ymrPQgU68orN4C0yKFHu3vop+LT0XKzbLGk1D+k2Vd7Lhq2aPuANeYzIU8KvBKlerJ98M6V1nDoJdRHoo8si2z8C7K1JgzifTDkYuROnkw6MKX1KjA0QqWqs9aSb4skzw3EvBRMtMvzLB4N2Prm9zX41YYoLKis= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587356226; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=14Z3NBIyuQhptqzA5+m+YhNzRoucbjCMN1kagWe4gtI=; b=h4PdjsMZLXM19dXWooUIndspPbgyqEeMvQqeneNfd7CuH5eBc1a60pobt7BXUVaUAkzv2hryXlOkotBPzJ24s1V+IudeYDqPXYmpDP5vUnZ+KUksDA7s4X2v5FjabAMstNj/YqTJ/pPBtLeUBu8X7A/UGE3F8672Ai1XfgZqudU= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1587356226968718.6826095283723; Sun, 19 Apr 2020 21:17:06 -0700 (PDT) Received: from localhost ([::1]:56986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQNrg-0001qE-Sk for importer@patchew.org; Mon, 20 Apr 2020 00:17:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36592 helo=eggs1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQNcH-00075v-DE for qemu-devel@nongnu.org; Mon, 20 Apr 2020 00:01:06 -0400 Received: from Debian-exim by eggs1p.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQNcD-0000iJ-GO for qemu-devel@nongnu.org; Mon, 20 Apr 2020 00:01:05 -0400 Received: from mga09.intel.com ([134.134.136.24]:39949) by eggs1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jQNcC-0000cX-UT for qemu-devel@nongnu.org; Mon, 20 Apr 2020 00:01:01 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2020 21:00:56 -0700 Received: from unknown (HELO devel-ww.sh.intel.com) ([10.239.48.118]) by orsmga001.jf.intel.com with ESMTP; 19 Apr 2020 21:00:54 -0700 IronPort-SDR: mLiZESEn3a88pC5Q5zAkFLL+4hRMxxdkWyEedz3G1AAsrS1tW2TfQu0W2q+tji7q+6fPVOXA+B IfAj4n0Qhodw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False IronPort-SDR: WDCwWHFCDj8FUgWaJzUpOTkebNmdaBqQvGIR/0IfZhkMC2PsylCyX8MvreR3PJSlTGDBOjNaEQ Lq62jRx5cirQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,405,1580803200"; d="scan'208";a="333790702" From: Wei Wang To: qemu-devel@nongnu.org, quintela@redhat.com, dgilbert@redhat.com, peterx@redhat.com Subject: [PATCH v1 1/2] migration/xbzrle: replace transferred xbzrle bytes with encoded bytes Date: Mon, 20 Apr 2020 11:06:42 +0800 Message-Id: <1587352003-3312-2-git-send-email-wei.w.wang@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587352003-3312-1-git-send-email-wei.w.wang@intel.com> References: <1587352003-3312-1-git-send-email-wei.w.wang@intel.com> Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=134.134.136.24; envelope-from=wei.w.wang@intel.com; helo=mga09.intel.com X-detected-operating-system: by eggs1p.gnu.org: First seen = 2020/04/20 00:00:54 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Received-From: 134.134.136.24 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gloryxiao@tencent.com, kevin.tian@intel.com, wei.w.wang@intel.com, yi.y.sun@intel.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Like compressed_size which indicates how many bytes are compressed, we need encoded_size to understand how many bytes are encoded with xbzrle during migration. Replace the old xbzrle_counter.bytes, instead of adding a new counter, because we don't find a usage of xbzrle_counter.bytes currently, which includes 3 more bytes of the migration transfer protocol header (in addition to the encoding header). The encoded_size will further be used to calculate the encoding rate. Signed-off-by: Yi Sun Signed-off-by: Wei Wang --- migration/migration.c | 2 +- migration/ram.c | 18 +++++++++--------- monitor/hmp-cmds.c | 4 ++-- qapi/migration.json | 6 +++--- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index 187ac0410c..8e7ee0d76b 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -926,7 +926,7 @@ static void populate_ram_info(MigrationInfo *info, Migr= ationState *s) info->has_xbzrle_cache =3D true; info->xbzrle_cache =3D g_malloc0(sizeof(*info->xbzrle_cache)); info->xbzrle_cache->cache_size =3D migrate_xbzrle_cache_size(); - info->xbzrle_cache->bytes =3D xbzrle_counters.bytes; + info->xbzrle_cache->encoded_size =3D xbzrle_counters.encoded_size; info->xbzrle_cache->pages =3D xbzrle_counters.pages; info->xbzrle_cache->cache_miss =3D xbzrle_counters.cache_miss; info->xbzrle_cache->cache_miss_rate =3D xbzrle_counters.cache_miss= _rate; diff --git a/migration/ram.c b/migration/ram.c index 04f13feb2e..bca5878f25 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -677,7 +677,7 @@ static int save_xbzrle_page(RAMState *rs, uint8_t **cur= rent_data, ram_addr_t current_addr, RAMBlock *block, ram_addr_t offset, bool last_stage) { - int encoded_len =3D 0, bytes_xbzrle; + int encoded_size =3D 0, bytes_xbzrle; uint8_t *prev_cached_page; =20 if (!cache_is_cached(XBZRLE.cache, current_addr, @@ -702,7 +702,7 @@ static int save_xbzrle_page(RAMState *rs, uint8_t **cur= rent_data, memcpy(XBZRLE.current_buf, *current_data, TARGET_PAGE_SIZE); =20 /* XBZRLE encoding (if there is no overflow) */ - encoded_len =3D xbzrle_encode_buffer(prev_cached_page, XBZRLE.current_= buf, + encoded_size =3D xbzrle_encode_buffer(prev_cached_page, XBZRLE.current= _buf, TARGET_PAGE_SIZE, XBZRLE.encoded_bu= f, TARGET_PAGE_SIZE); =20 @@ -710,7 +710,7 @@ static int save_xbzrle_page(RAMState *rs, uint8_t **cur= rent_data, * Update the cache contents, so that it corresponds to the data * sent, in all cases except where we skip the page. */ - if (!last_stage && encoded_len !=3D 0) { + if (!last_stage && encoded_size !=3D 0) { memcpy(prev_cached_page, XBZRLE.current_buf, TARGET_PAGE_SIZE); /* * In the case where we couldn't compress, ensure that the caller @@ -720,10 +720,10 @@ static int save_xbzrle_page(RAMState *rs, uint8_t **c= urrent_data, *current_data =3D prev_cached_page; } =20 - if (encoded_len =3D=3D 0) { + if (encoded_size =3D=3D 0) { trace_save_xbzrle_page_skipping(); return 0; - } else if (encoded_len =3D=3D -1) { + } else if (encoded_size =3D=3D -1) { trace_save_xbzrle_page_overflow(); xbzrle_counters.overflow++; return -1; @@ -733,11 +733,11 @@ static int save_xbzrle_page(RAMState *rs, uint8_t **c= urrent_data, bytes_xbzrle =3D save_page_header(rs, rs->f, block, offset | RAM_SAVE_FLAG_XBZRLE); qemu_put_byte(rs->f, ENCODING_FLAG_XBZRLE); - qemu_put_be16(rs->f, encoded_len); - qemu_put_buffer(rs->f, XBZRLE.encoded_buf, encoded_len); - bytes_xbzrle +=3D encoded_len + 1 + 2; + qemu_put_be16(rs->f, encoded_size); + qemu_put_buffer(rs->f, XBZRLE.encoded_buf, encoded_size); + bytes_xbzrle +=3D encoded_size + 1 + 2; xbzrle_counters.pages++; - xbzrle_counters.bytes +=3D bytes_xbzrle; + xbzrle_counters.encoded_size +=3D encoded_size; ram_counters.transferred +=3D bytes_xbzrle; =20 return 1; diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c index 9b94e67879..6d3b35ca64 100644 --- a/monitor/hmp-cmds.c +++ b/monitor/hmp-cmds.c @@ -295,8 +295,8 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict) if (info->has_xbzrle_cache) { monitor_printf(mon, "cache size: %" PRIu64 " bytes\n", info->xbzrle_cache->cache_size); - monitor_printf(mon, "xbzrle transferred: %" PRIu64 " kbytes\n", - info->xbzrle_cache->bytes >> 10); + monitor_printf(mon, "xbzrle encoded size: %" PRIu64 " kbytes\n", + info->xbzrle_cache->encoded_size >> 10); monitor_printf(mon, "xbzrle pages: %" PRIu64 " pages\n", info->xbzrle_cache->pages); monitor_printf(mon, "xbzrle cache miss: %" PRIu64 "\n", diff --git a/qapi/migration.json b/qapi/migration.json index eca2981d0a..bf195ff6ac 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -62,7 +62,7 @@ # # @cache-size: XBZRLE cache size # -# @bytes: amount of bytes already transferred to the target VM +# @encoded_size: amount of bytes encoded # # @pages: amount of pages transferred to the target VM # @@ -75,7 +75,7 @@ # Since: 1.2 ## { 'struct': 'XBZRLECacheStats', - 'data': {'cache-size': 'int', 'bytes': 'int', 'pages': 'int', + 'data': {'cache-size': 'int', 'encoded_size': 'int', 'pages': 'int', 'cache-miss': 'int', 'cache-miss-rate': 'number', 'overflow': 'int' } } =20 @@ -333,7 +333,7 @@ # }, # "xbzrle-cache":{ # "cache-size":67108864, -# "bytes":20971520, +# "encoded_size":20971520, # "pages":2444343, # "cache-miss":2244, # "cache-miss-rate":0.123, --=20 2.20.1 From nobody Fri May 17 10:13:33 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1587355585; cv=none; d=zohomail.com; s=zohoarc; b=mgXSfzNk9BPkI7PWnBYNWKHp47t4XRMt4q0rRlnsss7TcEczNIBZ6slOZfOAPDcTk7WEeHaDr0FXAw7xJJUSkAWNK8FCW+5yz4Bga0cNaBPJVNbNVUmyTi4KEeMG6JknTxeFQw9b32tzH4ON2dWx/iDQEA0ljBl1HgwsMrfiCl0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587355585; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=eGtju77zNtZRVDKIoCgOTwMJURwC0TSWugGQUnaBs3g=; b=OPCktYhn0goKAC910u05qxumBnR/TNbpz3kgoxwr2y7yfOAHoZ8V4dX5TpJuCV8+kEuhbz31sc/EADbKJMsbAdWNnNC752bWcYt64DSxP8MMr6Y5XGh26xfiM1HL2djui6RtQNmQu//GqENsvB78G4a9WpBDjqdCDjmOsCdweg0= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1587355585072708.8649824880023; Sun, 19 Apr 2020 21:06:25 -0700 (PDT) Received: from localhost ([::1]:56932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQNhL-0008Ur-4r for importer@patchew.org; Mon, 20 Apr 2020 00:06:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36582 helo=eggs1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQNcF-00073d-O4 for qemu-devel@nongnu.org; Mon, 20 Apr 2020 00:01:04 -0400 Received: from Debian-exim by eggs1p.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQNcD-0000iw-JU for qemu-devel@nongnu.org; Mon, 20 Apr 2020 00:01:03 -0400 Received: from mga09.intel.com ([134.134.136.24]:39951) by eggs1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jQNcC-0000eQ-VG for qemu-devel@nongnu.org; Mon, 20 Apr 2020 00:01:01 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2020 21:00:58 -0700 Received: from unknown (HELO devel-ww.sh.intel.com) ([10.239.48.118]) by orsmga001.jf.intel.com with ESMTP; 19 Apr 2020 21:00:56 -0700 IronPort-SDR: mXzgoDXDtW9xq4vkXLDsG3qctruusVb9dUv6ExsSVUXUrSywuN3O20aTe2R1ov7pSZSZpQJuW+ b6hWtVjfqz5A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False IronPort-SDR: vUUSSr6/GgaPeoFk5JOlzPnL4sISx0Lca0UhfliYmvcNCuweLYIEo5ec+49Gr4bAtH6uLZj65q AJ5uba2PqdUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,405,1580803200"; d="scan'208";a="333790715" From: Wei Wang To: qemu-devel@nongnu.org, quintela@redhat.com, dgilbert@redhat.com, peterx@redhat.com Subject: [PATCH v1 2/2] migration/xbzrle: add encoding rate Date: Mon, 20 Apr 2020 11:06:43 +0800 Message-Id: <1587352003-3312-3-git-send-email-wei.w.wang@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587352003-3312-1-git-send-email-wei.w.wang@intel.com> References: <1587352003-3312-1-git-send-email-wei.w.wang@intel.com> Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=134.134.136.24; envelope-from=wei.w.wang@intel.com; helo=mga09.intel.com X-detected-operating-system: by eggs1p.gnu.org: First seen = 2020/04/20 00:00:54 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Received-From: 134.134.136.24 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gloryxiao@tencent.com, kevin.tian@intel.com, wei.w.wang@intel.com, yi.y.sun@intel.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Users may need to check the xbzrle encoding rate to know if the guest memory is xbzrle encoding-friendly, and dynamically turn off the encoding if the encoding rate is low. Signed-off-by: Yi Sun Signed-off-by: Wei Wang --- migration/migration.c | 1 + migration/ram.c | 31 +++++++++++++++++++++++++++++-- monitor/hmp-cmds.c | 2 ++ qapi/migration.json | 5 ++++- slirp | 2 +- 5 files changed, 37 insertions(+), 4 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index 8e7ee0d76b..84a556a4ac 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -930,6 +930,7 @@ static void populate_ram_info(MigrationInfo *info, Migr= ationState *s) info->xbzrle_cache->pages =3D xbzrle_counters.pages; info->xbzrle_cache->cache_miss =3D xbzrle_counters.cache_miss; info->xbzrle_cache->cache_miss_rate =3D xbzrle_counters.cache_miss= _rate; + info->xbzrle_cache->encoding_rate =3D xbzrle_counters.encoding_rat= e; info->xbzrle_cache->overflow =3D xbzrle_counters.overflow; } =20 diff --git a/migration/ram.c b/migration/ram.c index bca5878f25..c87c38ec80 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -327,6 +327,10 @@ struct RAMState { uint64_t num_dirty_pages_period; /* xbzrle misses since the beginning of the period */ uint64_t xbzrle_cache_miss_prev; + /* Amount of xbzrle pages since the beginning of the period */ + uint64_t xbzrle_pages_prev; + /* Amount of encoded bytes since the beginning of the period */ + uint64_t encoded_size_prev; =20 /* compression statistics since the beginning of the period */ /* amount of count that no free thread to compress data */ @@ -696,6 +700,18 @@ static int save_xbzrle_page(RAMState *rs, uint8_t **cu= rrent_data, return -1; } =20 + /* + * Reaching here means the page has hit the xbzrle cache, no matter wh= at + * encoding result it is (normal encoding, overflow or skipping the pa= ge), + * count the page as encoded. This is used to caculate the encoding ra= te. + * + * Example: 2 pages (8KB) being encoded, first page encoding generates= 2KB, + * 2nd page turns out to be skipped (i.e. no new bytes written to the + * page), the overall encoding rate will be 8KB / 2KB =3D 4, which has= the + * skipped page included. In this way, the encoding rate can tell if t= he + * guest page is good for xbzrle encoding. + */ + xbzrle_counters.pages++; prev_cached_page =3D get_cached_data(XBZRLE.cache, current_addr); =20 /* save current buffer into memory */ @@ -736,7 +752,6 @@ static int save_xbzrle_page(RAMState *rs, uint8_t **cur= rent_data, qemu_put_be16(rs->f, encoded_size); qemu_put_buffer(rs->f, XBZRLE.encoded_buf, encoded_size); bytes_xbzrle +=3D encoded_size + 1 + 2; - xbzrle_counters.pages++; xbzrle_counters.encoded_size +=3D encoded_size; ram_counters.transferred +=3D bytes_xbzrle; =20 @@ -859,7 +874,7 @@ uint64_t ram_get_total_transferred_pages(void) static void migration_update_rates(RAMState *rs, int64_t end_time) { uint64_t page_count =3D rs->target_page_count - rs->target_page_count_= prev; - double compressed_size; + double compressed_size, encoded_size, unencoded_size; =20 /* calculate period counters */ ram_counters.dirty_pages_rate =3D rs->num_dirty_pages_period * 1000 @@ -873,6 +888,18 @@ static void migration_update_rates(RAMState *rs, int64= _t end_time) xbzrle_counters.cache_miss_rate =3D (double)(xbzrle_counters.cache= _miss - rs->xbzrle_cache_miss_prev) / page_count; rs->xbzrle_cache_miss_prev =3D xbzrle_counters.cache_miss; + unencoded_size =3D (xbzrle_counters.pages - rs->xbzrle_pages_prev)= * + TARGET_PAGE_SIZE; + encoded_size =3D xbzrle_counters.encoded_size - rs->encoded_size_p= rev; + if (xbzrle_counters.pages =3D=3D rs->xbzrle_pages_prev) { + xbzrle_counters.encoding_rate =3D 0; + } else if (!encoded_size) { + xbzrle_counters.encoding_rate =3D UINT64_MAX; + } else { + xbzrle_counters.encoding_rate =3D unencoded_size / encoded_siz= e; + } + rs->xbzrle_pages_prev =3D xbzrle_counters.pages; + rs->encoded_size_prev =3D xbzrle_counters.encoded_size; } =20 if (migrate_use_compression()) { diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c index 6d3b35ca64..07f41e582f 100644 --- a/monitor/hmp-cmds.c +++ b/monitor/hmp-cmds.c @@ -303,6 +303,8 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict) info->xbzrle_cache->cache_miss); monitor_printf(mon, "xbzrle cache miss rate: %0.2f\n", info->xbzrle_cache->cache_miss_rate); + monitor_printf(mon, "xbzrle encoding rate: %0.2f\n", + info->xbzrle_cache->encoding_rate); monitor_printf(mon, "xbzrle overflow: %" PRIu64 "\n", info->xbzrle_cache->overflow); } diff --git a/qapi/migration.json b/qapi/migration.json index bf195ff6ac..ee4513c565 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -70,6 +70,8 @@ # # @cache-miss-rate: rate of cache miss (since 2.1) # +# @encoding-rate: rate of cache miss +# # @overflow: number of overflows # # Since: 1.2 @@ -77,7 +79,7 @@ { 'struct': 'XBZRLECacheStats', 'data': {'cache-size': 'int', 'encoded_size': 'int', 'pages': 'int', 'cache-miss': 'int', 'cache-miss-rate': 'number', - 'overflow': 'int' } } + 'encoding-rate': 'number', 'overflow': 'int' } } =20 ## # @CompressionStats: @@ -337,6 +339,7 @@ # "pages":2444343, # "cache-miss":2244, # "cache-miss-rate":0.123, +# "encoding-rate":80.1, # "overflow":34434 # } # } diff --git a/slirp b/slirp index 55ab21c9a3..126c04acba 160000 --- a/slirp +++ b/slirp @@ -1 +1 @@ -Subproject commit 55ab21c9a36852915b81f1b41ebaf3b6509dd8ba +Subproject commit 126c04acbabd7ad32c2b018fe10dfac2a3bc1210 --=20 2.20.1