]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration/postcopy: Avoid clearing dirty bitmap for postcopy too
authorPeter Xu <peterx@redhat.com>
Fri, 13 Jun 2025 14:08:01 +0000 (10:08 -0400)
committerFabiano Rosas <farosas@suse.de>
Fri, 11 Jul 2025 13:37:37 +0000 (10:37 -0300)
commitadb13d6e42d6e0084e19a41303138d5d022e5904
tree3df2d37b8c106dc7d33b30a68c6802d0f6591869
parent7aaa1fc072ca7b9abf08c62504faa96126b583ce
migration/postcopy: Avoid clearing dirty bitmap for postcopy too

This is a follow up on the other commit "migration/ram: avoid to do log
clear in the last round" but for postcopy.

https://lore.kernel.org/r/20250514115827.3216082-1-yanfei.xu@bytedance.com

I can observe more than 10% reduction of average page fault latency during
postcopy phase with this optimization:

  Before: 268.00us (+-1.87%)
  After:  232.67us (+-2.01%)

The test was done with a 16GB VM with 80 vCPUs, running a workload that
busy random writes to 13GB memory.

Cc: Yanfei Xu <yanfei.xu@bytedance.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20250613140801.474264-12-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/ram.c