[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 10/10] tests/vm: add 512MB extra memory per core
From: |
John Snow |
Subject: |
[PATCH v2 10/10] tests/vm: add 512MB extra memory per core |
Date: |
Thu, 16 Jun 2022 10:26:59 -0400 |
If you try to run a 16 or 32 threaded test, you're going to run out of
memory very quickly with qom-test and a few others. Bump the memory
limit to try to scale with larger-core machines.
Add this magic in early to the configuration process so that the
config file, if provided, can still override it.
Signed-off-by: John Snow <jsnow@redhat.com>
---
tests/vm/basevm.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index d7d0413df35..69200ca5f1e 100644
--- a/tests/vm/basevm.py
+++ b/tests/vm/basevm.py
@@ -99,6 +99,12 @@ def __init__(self, args, config=None):
self._source_path = args.source_path
# Allow input config to override defaults.
self._config = DEFAULT_CONFIG.copy()
+
+ if args.jobs and args.jobs > 4:
+ # Add a gig per every 2 jobs over 4
+ overage = (args.jobs - 4) // 2
+ self._config['memory'] = f"{4 + overage}G"
+
if config != None:
self._config.update(config)
self.validate_ssh_keys()
--
2.34.3
- [PATCH v2 02/10] tests/qemu-iotests: skip 108 when FUSE is not loaded, (continued)
- [PATCH v2 02/10] tests/qemu-iotests: skip 108 when FUSE is not loaded, John Snow, 2022/06/16
- [PATCH v2 04/10] tests/vm: use 'cp' instead of 'ln' for temporary vm images, John Snow, 2022/06/16
- [PATCH v2 06/10] tests/vm: switch centos.aarch64 to CentOS 8 Stream, John Snow, 2022/06/16
- [PATCH v2 07/10] tests/vm: update sha256sum for ubuntu.aarch64, John Snow, 2022/06/16
- [PATCH v2 05/10] tests/vm: switch CentOS 8 to CentOS 8 Stream, John Snow, 2022/06/16
- [PATCH v2 08/10] tests/vm: remove ubuntu.i386 VM test, John Snow, 2022/06/16
- [PATCH v2 09/10] tests/vm: remove duplicate 'centos' VM test, John Snow, 2022/06/16
- [PATCH v2 10/10] tests/vm: add 512MB extra memory per core,
John Snow <=
- Re: [PATCH v2 00/10] Improve reliability of VM tests, John Snow, 2022/06/17