Skip to content

Commit

Permalink
backingchain: slow down the process of blockcommit to check for alloc…
Browse files Browse the repository at this point in the history
…ation changes

The blockcommit runs too fast with the default set, limiting the bandwidth to 10 MiB/s
in order to observe the allocation change process

Signed-off-by: Hu Shuai <[email protected]>
  • Loading branch information
hs0210 committed Jun 15, 2023
1 parent 2aad5b2 commit b36ed5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
virsh_opt = " -k0"
variants case:
- inactive_layer:
commit_option = "--top ${target_disk}[3] --base ${target_disk}[1] --wait --verbose"
commit_option = "--top ${target_disk}[3] --base ${target_disk}[1] --wait --verbose --bandwidth 10"
commit_success_msg = "Commit complete"
- active_layer:
commit_option = " --wait --verbose --pivot "
commit_option = " --wait --verbose --pivot --bandwidth 10"
commit_success_msg = "Successfully pivoted"
variants:
- file_disk:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def run_test():
test.fail("%s should keep changing during blockcommit %s." % (
disappear_alloc, virsh_session.get_stripped_output()))
alloc_dict = alloc_new_dict
time.sleep(1)

test.log.info("TEST_STEP3: Check %s should disappear" % disappear_alloc)
if utils_misc.wait_for(lambda: commit_success_msg in
Expand Down

0 comments on commit b36ed5a

Please sign in to comment.