[Debian-med-packaging] Bug#1120170: Bug#1120170: bbmap autopkgtest uses insane amount of memory

Étienne Mollier emollier at debian.org
Thu Nov 6 21:43:03 GMT 2025


Control: tags -1 + patch

Étienne Mollier, on 2025-11-06:
> If so, I consider implementing a check based on the definition
> of the AUTOPKGTEST_TMP environment variable.  That sounds very
> hackish, but would avoid hammering on ci.d.n, while having low
> risk of introducing possible performance regressions for end
> users.

Said patch would look like:

-------8<--------------8<--------------8<--------------8<-------
Description: cap memory usage in autopkgtest context.
 The default calculation method to reserve memory for the java runtime
 environment causes excessive memory usage on ci.debian.net machines.
Author: Étienne Mollier <emollier at debian.org>
Bug-Debian: https://bugs.debian.org/1120170
Forwarded: not-needed
Last-Update: 2025-11-06
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- bbmap.orig/calcmem.sh
+++ bbmap/calcmem.sh
@@ -214,6 +214,10 @@
 		  && [ "$RAM" -gt "2000" ]
 		then RAM="2000"
 		fi
+		# cap to 4G on shared autopkgtest resources (ci.debian.net).
+		if [ -n "$AUTOPKGTEST_TMP" ] && [ "$RAM" -gt "4000" ]
+		then RAM="4000"
+		fi
 		#echo $RAM
 	fi
 	#local z="-Xmx${RAM}m"
-------8<--------------8<--------------8<--------------8<-------

I'll upload tomorrow, unless I'm told it's not a good idea to
implement such check this way, while a more appropriate approach
would be in order.  I had hoped to pull the latest upstream
version of the package while at it, but it seems something in my
autopkgtest invocation lets it spin forever, and I lost a lot of
time waiting for the infinite loop to finish.

Anyways, let's continue tomorrow.
-- 
  .''`.  Étienne Mollier <emollier at debian.org>
 : :' :  pgp: 8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
 `. `'   sent from /dev/pts/1, please excuse my verbosity
   `-    on air: Rausch - Drain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20251106/a4eed31f/attachment.sig>


More information about the Debian-med-packaging mailing list