[RFC PATCH 0/2] Add dirty page rate limit qtest

huangy81@chinatelecom.cn posted 2 patches 2 years, 1 month ago
Test checkpatch failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/cover.1646840370.git.huangy81@chinatelecom.cn
Maintainers: Thomas Huth <thuth@redhat.com>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Juan Quintela <quintela@redhat.com>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>
tests/qtest/dirtylimit-test.c   | 288 ++++++++++++++++++++++++++++++++++++++++
tests/qtest/meson.build         |   2 +
tests/qtest/migration-helpers.c |  95 +++++++++++++
tests/qtest/migration-helpers.h |  15 +++
tests/qtest/migration-test.c    | 102 --------------
5 files changed, 400 insertions(+), 102 deletions(-)
create mode 100644 tests/qtest/dirtylimit-test.c
[RFC PATCH 0/2] Add dirty page rate limit qtest
Posted by huangy81@chinatelecom.cn 2 years, 1 month ago
From: Hyman Huang(黄勇) <huangy81@chinatelecom.cn>

This patchset is dirtylimit qtest and plan to be a supplement
for patch series "support dirty restraint on vCPU".

Dirtylimit qtest use the existing bootsect in tests/migration/i386
to start test vm. The x86.bootsect repeatedly increments the
first byte of each page in a 100MB range, so it can be a workload
for dirtylimit test.

We limit dirtyrate at one-third of origin workload to check if
dirtylimit take effect, then query the dirtylimit info and cancel
it, so all the qmp interface can be covered.  

Since the dirtylimit has not been merged yet, this patchset is
posted for RFC.

Please review, thanks !

Yong.

Hyman Huang (2):
  migration-test: Export migration-test util funtions
  tests: Add dirty page rate limit test

 tests/qtest/dirtylimit-test.c   | 288 ++++++++++++++++++++++++++++++++++++++++
 tests/qtest/meson.build         |   2 +
 tests/qtest/migration-helpers.c |  95 +++++++++++++
 tests/qtest/migration-helpers.h |  15 +++
 tests/qtest/migration-test.c    | 102 --------------
 5 files changed, 400 insertions(+), 102 deletions(-)
 create mode 100644 tests/qtest/dirtylimit-test.c

-- 
1.8.3.1