summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLin Ma <lma@suse.com>2022-08-02 13:02:30 +0800
committerCole Robinson <crobinso@redhat.com>2022-08-02 14:56:09 -0400
commit2984c13cffd39cd2fd607d66ce6acfe9709b494c (patch)
tree639a11a19ffc89be6d5811b34be3e316ebee6b44 /tests
parent90e13549b4f2dd74b3343a3a28c30f31c20032d5 (diff)
downloadvirt-manager-2984c13cffd39cd2fd607d66ce6acfe9709b494c.tar.gz
cli: Add --iothreads defaultiothread.thread_pool_{min,max}
It allows to set the thread pool size to optimize spawning worker threads for the default event loop in real time environment. For example: --iothreads defaultiothread.thread_pool_min=8,\ defaultiothread.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.xml1
-rw-r--r--tests/test_cli.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/data/cli/compare/virt-install-many-devices.xml b/tests/data/cli/compare/virt-install-many-devices.xml
index 87d48812..9826aecd 100644
--- a/tests/data/cli/compare/virt-install-many-devices.xml
+++ b/tests/data/cli/compare/virt-install-many-devices.xml
@@ -14,6 +14,7 @@
<iothread id="1"/>
<iothread id="2" thread_pool_min="8" thread_pool_max="16"/>
</iothreadids>
+ <defaultiothread thread_pool_min="4" thread_pool_max="32"/>
<memory>65536</memory>
<currentMemory>65536</currentMemory>
<blkiotune>
diff --git a/tests/test_cli.py b/tests/test_cli.py
index f401fc06..47b59055 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.iothread0.id=1,iothreadids.iothread1.id=2,iothreadids.iothread1.thread_pool_min=8,iothreadids.iothread1.thread_pool_max=16
+--iothreads iothreads=5,iothreadids.iothread0.id=1,iothreadids.iothread1.id=2,iothreadids.iothread1.thread_pool_min=8,iothreadids.iothread1.thread_pool_max=16,defaultiothread.thread_pool_min=4,defaultiothread.thread_pool_max=32
--metadata title=my-title,description=my-description,uuid=00000000-1111-2222-3333-444444444444,genid=e9392370-2917-565e-692b-d057f46512d6,genid_enable=yes