mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
migration/dirtyrate: make sample page count configurable
introduce optional sample-pages argument in calc-dirty-rate, making sample page count per GB configurable so that more accurate dirtyrate can be calculated. Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn> Message-Id: <3103453a3b2796f929269c99a6ad81a9a7f1f405.1623027729.git.huangy81@chinatelecom.cn> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Wrapped a couple of long lines
This commit is contained in:
parent
8bd1078aeb
commit
7afa08cd8f
3 changed files with 46 additions and 8 deletions
|
@ -1740,6 +1740,9 @@
|
|||
#
|
||||
# @calc-time: time in units of second for sample dirty pages
|
||||
#
|
||||
# @sample-pages: page count per GB for sample dirty pages
|
||||
# the default value is 512 (since 6.1)
|
||||
#
|
||||
# Since: 5.2
|
||||
#
|
||||
##
|
||||
|
@ -1747,7 +1750,8 @@
|
|||
'data': {'*dirty-rate': 'int64',
|
||||
'status': 'DirtyRateStatus',
|
||||
'start-time': 'int64',
|
||||
'calc-time': 'int64'} }
|
||||
'calc-time': 'int64',
|
||||
'sample-pages': 'uint64'} }
|
||||
|
||||
##
|
||||
# @calc-dirty-rate:
|
||||
|
@ -1756,13 +1760,18 @@
|
|||
#
|
||||
# @calc-time: time in units of second for sample dirty pages
|
||||
#
|
||||
# @sample-pages: page count per GB for sample dirty pages
|
||||
# the default value is 512 (since 6.1)
|
||||
#
|
||||
# Since: 5.2
|
||||
#
|
||||
# Example:
|
||||
# {"command": "calc-dirty-rate", "data": {"calc-time": 1} }
|
||||
# {"command": "calc-dirty-rate", "data": {"calc-time": 1,
|
||||
# 'sample-pages': 512} }
|
||||
#
|
||||
##
|
||||
{ 'command': 'calc-dirty-rate', 'data': {'calc-time': 'int64'} }
|
||||
{ 'command': 'calc-dirty-rate', 'data': {'calc-time': 'int64',
|
||||
'*sample-pages': 'int'} }
|
||||
|
||||
##
|
||||
# @query-dirty-rate:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue