Debian Codegraph @

debian/patches/autopkgtest-memory.patch

raw symbols SCIP
1 Description: cap memory usage in autopkgtest context.
2 The default calculation method to reserve memory for the java runtime
3 environment causes excessive memory usage on ci.debian.net machines.
4 Author: Étienne Mollier <[email protected]>
5 Bug-Debian: https://bugs.debian.org/1120170
6 Forwarded: not-needed
7 Last-Update: 2025-11-06
8 ---
9 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
10 --- bbmap.orig/calcmem.sh
11 +++ bbmap/calcmem.sh
12 @@ -214,6 +214,10 @@
13 && [ "$RAM" -gt "2000" ]
14 then RAM="2000"
15 fi
16 + # cap to 4GiB on shared autopkgtest resources (ci.debian.net).
17 + if [ -n "$AUTOPKGTEST_TMP" ] && [ "$RAM" -gt "4000" ]
18 + then RAM="4000"
19 + fi
20 #echo $RAM
21 fi
22 #local z="-Xmx${RAM}m"