]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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)
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

index 9cdb251665f829485af1984cc5d18f0c2ca844d9..d1212665ed9cec90cec3ae6a2086a02f57e2ee82 100644 (file)
@@ -1,8 +1,8 @@
 <domain type='kvm'>
   <name>alice</name>
   <uuid>1f35c25d-6a7b-4ee1-2461-d7e530e7b2a9</uuid>
-  <memory unit='MiB'>200</memory>
-  <currentMemory unit='MiB'>200</currentMemory>
+  <memory unit='MiB'>260</memory>
+  <currentMemory unit='MiB'>260</currentMemory>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
index 982a1aac0fc0b1d104a3ffee831b3b9a90d578c8..b55bf8ca2615204e7efb8b551e0ae9fa8f1a4472 100644 (file)
@@ -1,8 +1,8 @@
 <domain type='kvm'>
   <name>bob</name>
   <uuid>72728516-377f-f5be-ea1d-b1f1e851538f</uuid>
-  <memory unit='MiB'>128</memory>
-  <currentMemory unit='MiB'>128</currentMemory>
+  <memory unit='MiB'>150</memory>
+  <currentMemory unit='MiB'>150</currentMemory>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
index 33dc08adc7c84e0a6f9dd27bd31bd125c90d26fe..60c15350db8a61f958529a25f988f0fcb00365d3 100644 (file)
@@ -1,8 +1,8 @@
 <domain type='kvm'>
   <name>carol</name>
   <uuid>6bc2eef5-7faf-cde0-5f27-6fc29f93bc3d</uuid>
-  <memory unit='MiB'>128</memory>
-  <currentMemory unit='MiB'>128</currentMemory>
+  <memory unit='MiB'>150</memory>
+  <currentMemory unit='MiB'>150</currentMemory>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
index 93ce82e632d96b6bbe2aa35f63fcaf1c6145e298..e9402b4fbeb000bd6c2169fb4b0c2a1f827ab410 100644 (file)
@@ -1,8 +1,8 @@
 <domain type='kvm'>
   <name>dave</name>
   <uuid>05f1debe-4e38-4f3d-10a0-c07fbb70d816</uuid>
-  <memory unit='MiB'>128</memory>
-  <currentMemory unit='MiB'>128</currentMemory>
+  <memory unit='MiB'>150</memory>
+  <currentMemory unit='MiB'>150</currentMemory>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
index df77348d083d6fce7a616ba8643a58d1569ec308..e2271384c8e8d79cdf9257d40bd6f05cdb966a06 100644 (file)
@@ -1,8 +1,8 @@
 <domain type='kvm'>
   <name>moon</name>
   <uuid>b5e00ad3-1c81-3b2a-7f66-cdf8727b3c65</uuid>
-  <memory unit='MiB'>128</memory>
-  <currentMemory unit='MiB'>128</currentMemory>
+  <memory unit='MiB'>150</memory>
+  <currentMemory unit='MiB'>150</currentMemory>
   <vcpu placement='static'>4</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
index 68c160a805a0b23c86b29ad95cb4bb1784c1b894..b76ff3541e6b2aed4b8537c35a1adeb2ff46bcea 100644 (file)
@@ -1,8 +1,8 @@
 <domain type='kvm'>
   <name>sun</name>
   <uuid>35341843-346c-a63a-786b-9df0fd5e6264</uuid>
-  <memory unit='MiB'>144</memory>
-  <currentMemory unit='MiB'>144</currentMemory>
+  <memory unit='MiB'>150</memory>
+  <currentMemory unit='MiB'>150</currentMemory>
   <vcpu placement='static'>2</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
index 07e1b995d604da4168619f53d0e501270972e4d1..ca13695847d9a4403a4dfd1a594a0bdca89066dd 100644 (file)
@@ -1,8 +1,8 @@
 <domain type='kvm'>
   <name>venus</name>
   <uuid>f0838df9-7cc0-84f5-6c14-2d16ab002e8d</uuid>
-  <memory unit='MiB'>128</memory>
-  <currentMemory unit='MiB'>128</currentMemory>
+  <memory unit='MiB'>150</memory>
+  <currentMemory unit='MiB'>150</currentMemory>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
index aa259d06f433fd8b9b431d2a2d4878cba0079a58..89c07b981630fe881594cff36cf43b6ca8e5e521 100644 (file)
@@ -1,8 +1,8 @@
 <domain type='kvm'>
   <name>winnetou</name>
   <uuid>b1d3d2f7-e20b-ab95-277e-66d4cac33cc3</uuid>
-  <memory unit='MiB'>160</memory>
-  <currentMemory unit='MiB'>160</currentMemory>
+  <memory unit='MiB'>200</memory>
+  <currentMemory unit='MiB'>200</currentMemory>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>