diff options
| author | Hyman Huang <yong.huang@smartx.com> | 2023-11-01 22:04:07 +0800 |
|---|---|---|
| committer | Juan Quintela <quintela@redhat.com> | 2023-11-03 07:48:25 +0100 |
| commit | 4cc563d460b6e8a29d18b27381dab8ca0621f2da (patch) | |
| tree | 6a7c56ad8ab2861d076bf1259ed9f865969756aa /tests/migration/guestperf/shell.py | |
| parent | 17257b90be4f51dd3040ca2e472201407b2327c4 (diff) | |
| download | focaccia-qemu-4cc563d460b6e8a29d18b27381dab8ca0621f2da.tar.gz focaccia-qemu-4cc563d460b6e8a29d18b27381dab8ca0621f2da.zip | |
tests/migration: Introduce dirty-ring-size option into guestperf
Dirty ring size configuration is not supported by guestperf tool. Introduce dirty-ring-size (ranges in [1024, 65536]) option so developers can play with dirty-ring and dirty-limit feature easier. To set dirty ring size with 4096 during migration test: $ ./tests/migration/guestperf.py --dirty-ring-size 4096 xxx Signed-off-by: Hyman Huang <yong.huang@smartx.com> Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <8a388cec5c1f73a34d42515bbc43837e97ee3839.1698847223.git.yong.huang@smartx.com>
Diffstat (limited to 'tests/migration/guestperf/shell.py')
| -rw-r--r-- | tests/migration/guestperf/shell.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/migration/guestperf/shell.py b/tests/migration/guestperf/shell.py index 8a809e3dda..7d6b8cd7cf 100644 --- a/tests/migration/guestperf/shell.py +++ b/tests/migration/guestperf/shell.py @@ -60,6 +60,8 @@ class BaseShell(object): parser.add_argument("--prealloc-pages", dest="prealloc_pages", default=False) parser.add_argument("--huge-pages", dest="huge_pages", default=False) parser.add_argument("--locked-pages", dest="locked_pages", default=False) + parser.add_argument("--dirty-ring-size", dest="dirty_ring_size", + default=0, type=int) self._parser = parser @@ -89,7 +91,9 @@ class BaseShell(object): locked_pages=args.locked_pages, huge_pages=args.huge_pages, - prealloc_pages=args.prealloc_pages) + prealloc_pages=args.prealloc_pages, + + dirty_ring_size=args.dirty_ring_size) class Shell(BaseShell): |