aboutsummaryrefslogtreecommitdiff
path: root/migration/savevm.c
diff options
context:
space:
mode:
authorLukas Straub <lukasstraub2@web.de>2020-05-11 13:10:44 +0200
committerDr. David Alan Gilbert <dgilbert@redhat.com>2020-06-01 18:44:27 +0100
commitbb70b66ed7a5600a63437fb6d64dedb44f670e58 (patch)
treedcac9bc50eb0326987316259efe0b8de4e210cd1 /migration/savevm.c
parente0d138aa9b3a4c72fe8bca735686132fdea646b7 (diff)
downloadqemu-bb70b66ed7a5600a63437fb6d64dedb44f670e58.zip
qemu-bb70b66ed7a5600a63437fb6d64dedb44f670e58.tar.gz
qemu-bb70b66ed7a5600a63437fb6d64dedb44f670e58.tar.bz2
migration/colo.c: Use event instead of semaphore
If multiple packets miscompare in a short timeframe, the semaphore value will be increased multiple times. This causes multiple checkpoints even if one would be sufficient. Fix this by using a event instead of a semaphore for triggering checkpoints. Now, checkpoint requests will be ignored until the checkpoint event is sent to colo-compare (which releases the miscompared packets). Benchmark results (iperf3): Client-to-server tcp: without patch: ~66 Mbit/s with patch: ~61 Mbit/s Server-to-client tcp: without patch: ~702 Kbit/s with patch: ~16 Mbit/s Signed-off-by: Lukas Straub <lukasstraub2@web.de> Message-Id: <fd601ba1beb524aada54ba66e87ebfc12cf4574b.1589193382.git.lukasstraub2@web.de> Reviewed-by: zhanghailiang <zhang.zhanghailiang@huawei.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/savevm.c')
0 files changed, 0 insertions, 0 deletions