3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

auto-t: increase RAM when running with valgrind (UML)

This was done for QEMU but not for UML. Running more than a few
tests with --valgrind will generally thrown an OOM error pretty
quick.
This commit is contained in:
James Prestwood 2023-12-19 10:08:26 -08:00 committed by Denis Kenzior
parent 0f1d9685e7
commit 390fd58cad

View File

@ -552,7 +552,12 @@ class UmlRunner(RunnerAbstract):
kern_log = "ignore_loglevel" if "kernel" in args.verbose else "quiet" kern_log = "ignore_loglevel" if "kernel" in args.verbose else "quiet"
cmd = [args.kernel, 'rootfstype=hostfs', 'ro', 'mem=256M', 'mac80211_hwsim.radios=0', if self.args.valgrind:
ram = 512
else:
ram = 256
cmd = [args.kernel, 'rootfstype=hostfs', 'ro', f'mem={ram}M', 'mac80211_hwsim.radios=0',
'time-travel=inf-cpu', 'eth0=mcast', 'eth1=mcast', 'time-travel=inf-cpu', 'eth0=mcast', 'eth1=mcast',
'%s' % kern_log, 'init=%s' % self.init] '%s' % kern_log, 'init=%s' % self.init]
cmd.extend(args.to_cmd().split(' ')) cmd.extend(args.to_cmd().split(' '))