diff options
author | Lin Ma <lma@suse.com> | 2022-07-29 19:16:05 +0800 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2022-08-01 11:32:23 -0400 |
commit | 0d84bcfbfa2aa08396e836cb37fd0df167a6f6a4 (patch) | |
tree | e79512aed391415c60b894e18c9c9aa98bf9292f /tests | |
parent | 58ffe7fa7ad2582a41a59d1b919f514505005e6a (diff) | |
download | virt-manager-0d84bcfbfa2aa08396e836cb37fd0df167a6f6a4.tar.gz |
cli: Add iothreadids attributes thread_pool_min and thread_pool_max
These two optional attributes allow setting lower and upper boundary for
number of worker threads for given IOThread. For example:
--iothreads iothreads=2,\
iothreadids.iothread0.id=1,\
iothreadids.iothread1.id=2,\
iothreadids.iothread1.thread_pool_min=8,\
iothreadids.iothread1.thread_pool_max=16
Signed-off-by: Lin Ma <lma@suse.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/cli/compare/virt-install-many-devices.xml | 2 | ||||
-rw-r--r-- | tests/test_cli.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/data/cli/compare/virt-install-many-devices.xml b/tests/data/cli/compare/virt-install-many-devices.xml index 8198c2d1..87d48812 100644 --- a/tests/data/cli/compare/virt-install-many-devices.xml +++ b/tests/data/cli/compare/virt-install-many-devices.xml @@ -12,7 +12,7 @@ <iothreads>5</iothreads> <iothreadids> <iothread id="1"/> - <iothread id="2"/> + <iothread id="2" thread_pool_min="8" thread_pool_max="16"/> </iothreadids> <memory>65536</memory> <currentMemory>65536</currentMemory> diff --git a/tests/test_cli.py b/tests/test_cli.py index 74022fc3..f401fc06 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -545,7 +545,7 @@ memorytune0.vcpus=0-3,memorytune0.node0.id=0,memorytune0.node0.bandwidth=60 --memorybacking size=1,unit='G',nodeset=0,1,nosharepages=yes,locked=yes,discard=yes,allocation.mode=immediate,access_mode=shared,source_type=file,hugepages.page.size=12,hugepages.page1.size=1234,hugepages.page1.unit=MB,hugepages.page1.nodeset=2,allocation.threads=8 ---iothreads iothreads=5,iothreadids.iothread1.id=1,iothreadids.iothread2.id=2 +--iothreads iothreads=5,iothreadids.iothread0.id=1,iothreadids.iothread1.id=2,iothreadids.iothread1.thread_pool_min=8,iothreadids.iothread1.thread_pool_max=16 --metadata title=my-title,description=my-description,uuid=00000000-1111-2222-3333-444444444444,genid=e9392370-2917-565e-692b-d057f46512d6,genid_enable=yes |