Re: [PATCH v2 3/4] migration/calc-dirty-rate: added n-zero-pages metric

2023-05-10 Thread Juan Quintela
Andrei Gudkov wrote: > In sampling mode, a new metric is collected and reported: > number of pages entirely filled with zeroes. Good idea. > @@ -331,11 +336,20 @@ static uint32_t compute_page_hash(void *ptr) > v2 = QEMU_XXHASH_SEED + XXH_PRIME64_2; > v3 = QEMU_XXHASH_SEED + 0; > v

[PATCH v2 3/4] migration/calc-dirty-rate: added n-zero-pages metric

2023-04-27 Thread Andrei Gudkov via
In sampling mode, a new metric is collected and reported: number of pages entirely filled with zeroes. Signed-off-by: Andrei Gudkov --- migration/dirtyrate.c | 40 +++- migration/dirtyrate.h | 1 + qapi/migration.json | 4 3 files changed, 40 insertio