]> Git Repo - qemu.git/commit
tests/migration: Add some slack to auto converge
authorDr. David Alan Gilbert <[email protected]>
Mon, 10 Feb 2020 19:57:31 +0000 (19:57 +0000)
committerJuan Quintela <[email protected]>
Thu, 13 Feb 2020 09:57:35 +0000 (10:57 +0100)
commit6e1f837a142731e0a271aae2eb83c17ca32f4db3
tree1ec5155f782b7dd88db3bf9e1ef6c2a5f400557c
parent2a1bc8bde7cc42ea8bf5d52c7c9a7774fde0edcd
tests/migration: Add some slack to auto converge

There's an assert in autoconverge that checks that we quit the
iteration when we go below the expected threshold.  Philippe
saw a case where this assert fired with the measured value
slightly over the threshold. (about 3k out of a few million).

I can think of two reasons:
  a) Rounding errors
  b) That after we make the decision to quit iteration we do one
    more sync and that sees a few more dirty pages.

So add 1% slack to the assertion, that should cover a and
most cases of b, probably all we'll see for the test.

Signed-off-by: Dr. David Alan Gilbert <[email protected]>
Reviewed-by: Juan Quintela <[email protected]>
Reviewed-by: Peter Xu <[email protected]>
Signed-off-by: Juan Quintela <[email protected]>
tests/qtest/migration-test.c
This page took 0.020958 seconds and 4 git commands to generate.