mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
migration/xbzrle: add encoding rate
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 <yi.y.sun@intel.com> Signed-off-by: Wei Wang <wei.w.wang@intel.com> Message-Id: <1588208375-19556-1-git-send-email-wei.w.wang@intel.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
59c59c67ee
commit
e460a4b1a4
4 changed files with 44 additions and 3 deletions
|
@ -70,6 +70,8 @@
|
|||
#
|
||||
# @cache-miss-rate: rate of cache miss (since 2.1)
|
||||
#
|
||||
# @encoding-rate: rate of encoded bytes (since 5.1)
|
||||
#
|
||||
# @overflow: number of overflows
|
||||
#
|
||||
# Since: 1.2
|
||||
|
@ -77,7 +79,7 @@
|
|||
{ 'struct': 'XBZRLECacheStats',
|
||||
'data': {'cache-size': 'int', 'bytes': 'int', 'pages': 'int',
|
||||
'cache-miss': 'int', 'cache-miss-rate': 'number',
|
||||
'overflow': 'int' } }
|
||||
'encoding-rate': 'number', 'overflow': 'int' } }
|
||||
|
||||
##
|
||||
# @CompressionStats:
|
||||
|
@ -337,6 +339,7 @@
|
|||
# "pages":2444343,
|
||||
# "cache-miss":2244,
|
||||
# "cache-miss-rate":0.123,
|
||||
# "encoding-rate":80.1,
|
||||
# "overflow":34434
|
||||
# }
|
||||
# }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue