diff options
author | Hyman Huang(黄勇) | 2021-06-07 03:11:34 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert | 2021-06-08 21:18:25 +0200 |
commit | 7afa08cd8fd2e5016658c39f6eb327e92edf0612 (patch) | |
tree | ab63a6bdb88414e3bbf1dff7eba9127a175e5312 /qapi | |
parent | sockets: Support multipath TCP (diff) | |
download | qemu-7afa08cd8fd2e5016658c39f6eb327e92edf0612.tar.gz qemu-7afa08cd8fd2e5016658c39f6eb327e92edf0612.tar.xz qemu-7afa08cd8fd2e5016658c39f6eb327e92edf0612.zip |
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
Diffstat (limited to 'qapi')
-rw-r--r-- | qapi/migration.json | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/qapi/migration.json b/qapi/migration.json index 7a5bdf9a0d..1124a2dda8 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -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: |