migration/throttle: Add throttle-trig-thres migration parameter
commitdc14a470763c96fd9d360e1028ce38e8c3613a77
authorKeqian Zhu <zhukeqian1@huawei.com>
Mon, 24 Feb 2020 02:31:42 +0000 (24 10:31 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 13 Mar 2020 09:36:30 +0000 (13 09:36 +0000)
tree94e4b1b2ae5f0d37d588db7beb45bfe56c6a4282
parent297254c71b302abf9f4f37c41e274b5722e1a5da
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>
migration/migration.c
migration/ram.c
monitor/hmp-cmds.c
qapi/migration.json