OSDN Git Service

migration/calc-dirty-rate: replaced CRC32 with xxHash
authorAndrei Gudkov <gudkov.andrei@huawei.com>
Thu, 27 Apr 2023 12:42:57 +0000 (15:42 +0300)
committerJuan Quintela <quintela@redhat.com>
Mon, 15 May 2023 08:33:03 +0000 (10:33 +0200)
commit00a3f9c60ab0e5c8fd7bfbc300323f012cdd2fa6
treef4d477975cc4d4797828323f89ae645ac78a1aa1
parent8844bb8d896595ee1d25d21c770e6e6f29803097
migration/calc-dirty-rate: replaced CRC32 with xxHash

This significantly reduces overhead of dirty page
rate calculation in sampling mode.
Tested using 32GiB VM on E5-2690 CPU.

With CRC32:
total_pages=8388608 sampled_pages=16384 millis=71

With xxHash:
total_pages=8388608 sampled_pages=16384 millis=14

Signed-off-by: Andrei Gudkov <gudkov.andrei@huawei.com>
Message-Id: <cd115a89fc81d5f2eeb4ea7d57a98b84f794f340.1682598010.git.gudkov.andrei@huawei.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/dirtyrate.c
migration/trace-events