On Thu, Jul 07, 2022 at 12:03:05AM -0400, John Snow wrote: > 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. > > Granted, this means that a 16 core processor is going to ask for 16GB, > but you *probably* meet that requirement if you have such a machine. > > 512MB per core didn't seem to be enough to avoid ENOMEM and SIGABRTs in > the test cases in practice on a six core machine; so I bumped it up to > 1GB which seemed to help.
RHEL recommends 1.5 GB per virtual CPU, so yeah, allowing only 512 MB was unreasonably small by typical standards. > > 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 <js...@redhat.com> > --- > tests/vm/basevm.py | 5 +++++ > 1 file changed, 5 insertions(+) Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|