mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
migration/throttle: Add throttle-trig-thres migration parameter
Currently, if the bytes_dirty_period is more than the 50% of bytes_xfer_period, we start or increase throttling. If we make this percentage higher, then we can tolerate higher dirty rate during migration, which means less impact on guest. The side effect of higher percentage is longer migration time. We can make this parameter configurable to switch between mig- ration time first or guest performance first. The default value is 50 and valid range is 1 to 100. Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com> Message-Id: <20200224023142.39360-1-zhukeqian1@huawei.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
297254c71b
commit
dc14a47076
4 changed files with 76 additions and 23 deletions
|
@ -540,6 +540,10 @@
|
|||
# compression, so set the decompress-threads to the number about 1/4
|
||||
# of compress-threads is adequate.
|
||||
#
|
||||
# @throttle-trigger-threshold: The ratio of bytes_dirty_period and bytes_xfer_period
|
||||
# to trigger throttling. It is expressed as percentage.
|
||||
# The default value is 50. (Since 5.0)
|
||||
#
|
||||
# @cpu-throttle-initial: Initial percentage of time guest cpus are throttled
|
||||
# when migration auto-converge is activated. The
|
||||
# default value is 20. (Since 2.7)
|
||||
|
@ -625,7 +629,7 @@
|
|||
'data': ['announce-initial', 'announce-max',
|
||||
'announce-rounds', 'announce-step',
|
||||
'compress-level', 'compress-threads', 'decompress-threads',
|
||||
'compress-wait-thread',
|
||||
'compress-wait-thread', 'throttle-trigger-threshold',
|
||||
'cpu-throttle-initial', 'cpu-throttle-increment',
|
||||
'tls-creds', 'tls-hostname', 'tls-authz', 'max-bandwidth',
|
||||
'downtime-limit', 'x-checkpoint-delay', 'block-incremental',
|
||||
|
@ -660,6 +664,10 @@
|
|||
#
|
||||
# @decompress-threads: decompression thread count
|
||||
#
|
||||
# @throttle-trigger-threshold: The ratio of bytes_dirty_period and bytes_xfer_period
|
||||
# to trigger throttling. It is expressed as percentage.
|
||||
# The default value is 50. (Since 5.0)
|
||||
#
|
||||
# @cpu-throttle-initial: Initial percentage of time guest cpus are
|
||||
# throttled when migration auto-converge is activated.
|
||||
# The default value is 20. (Since 2.7)
|
||||
|
@ -752,6 +760,7 @@
|
|||
'*compress-threads': 'int',
|
||||
'*compress-wait-thread': 'bool',
|
||||
'*decompress-threads': 'int',
|
||||
'*throttle-trigger-threshold': 'int',
|
||||
'*cpu-throttle-initial': 'int',
|
||||
'*cpu-throttle-increment': 'int',
|
||||
'*tls-creds': 'StrOrNull',
|
||||
|
@ -813,6 +822,10 @@
|
|||
#
|
||||
# @decompress-threads: decompression thread count
|
||||
#
|
||||
# @throttle-trigger-threshold: The ratio of bytes_dirty_period and bytes_xfer_period
|
||||
# to trigger throttling. It is expressed as percentage.
|
||||
# The default value is 50. (Since 5.0)
|
||||
#
|
||||
# @cpu-throttle-initial: Initial percentage of time guest cpus are
|
||||
# throttled when migration auto-converge is activated.
|
||||
# (Since 2.7)
|
||||
|
@ -905,6 +918,7 @@
|
|||
'*compress-threads': 'uint8',
|
||||
'*compress-wait-thread': 'bool',
|
||||
'*decompress-threads': 'uint8',
|
||||
'*throttle-trigger-threshold': 'uint8',
|
||||
'*cpu-throttle-initial': 'uint8',
|
||||
'*cpu-throttle-increment': 'uint8',
|
||||
'*tls-creds': 'str',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue