]> git.ipfire.org Git - thirdparty/strongswan.git/commit
testing: Increase memory for guest hosts to run Debian trixie
authorTobias Brunner <tobias@strongswan.org>
Fri, 15 Aug 2025 12:48:49 +0000 (14:48 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 18 Sep 2025 09:13:32 +0000 (11:13 +0200)
commit3aa7e1d418dfcc4532c9eba6486d48385320402a
tree9574c1695aa3fba7b96557689257977324b6ad57
parent1767ba2a13569ca94e808417d600918a5477684a
testing: Increase memory for guest hosts to run Debian trixie

While some increase was necessary anyway because the idle system requires
about 5-10 MiB more memory, the main issue is resolving the code line and
function name in case of a memory leak.  Calling addr2line requires a lot
more memory than before.  Using backtraces via libbfd doesn't help either
because the trigger is the bfd_find_nearest_line() call we use as well.
And because we'd try to resolve all symbols that way (for whitelisting),
the memory overhead would be even higher and affect every shutdown, even
if no leak occurred.  It also causes a significant time overhead (running
all tests took 75m instead of 48m).

I also tested switching to ASAN/LSAN.  The peak memory usage is slightly
higher than when using libbfd, but enabling it also increased the runtime
overhead a lot (the daemon and swanctl both required about 10-20 MiB more
memory, not just during the shutdown).
testing/config/kvm/alice.xml
testing/config/kvm/bob.xml
testing/config/kvm/carol.xml
testing/config/kvm/dave.xml
testing/config/kvm/moon.xml
testing/config/kvm/sun.xml
testing/config/kvm/venus.xml
testing/config/kvm/winnetou.xml