Niklas Schandry
09/17/2026, 7:34 AMbwamem2_index module behaviour, it requests memory, based on memory { 280.MB * _Math_.ceil(fasta.size() / 10000000) * task.attempt } . However, on AWS it OOMs even on attempt 3. The log states:
ref seq len = 315317090 which I assume is the length of the sequence. By my math (315317090*280/10000000), this should request 8.828 MB * task.attempt, but according to the AWS metrics for this job it requested 3.3 GB for the third (1.1GB per attempt). This also was not an issue before, so I am a bit confused whats going wrong.Mahesh Binzer-Panchal
09/17/2026, 7:54 AMfasta is List? or there is a variable fasta in that process.Niklas Schandry
09/17/2026, 8:09 AMfasta is an input: tuple val(meta), path(fasta)Mahesh Binzer-Panchal
09/17/2026, 8:12 AMpath a List object or a Path object? Path also implements the List interface too I think so iterators work on it, so it might be checking that fasta.size() is actually the file size and not the number of / + 1Niklas Schandry
09/17/2026, 8:25 AM/ in the path? That is either 0 (input filename) or 6 (full path). I think that this tries to estimate sequence length, based on filesize. Idk how reliable that is, I guess it is ok if sequence characters >>> header (which is the case). I also hope that file.size() checks the size of the of the source file, and not that of the symlink?Niklas Schandry
09/17/2026, 8:25 AMNiklas Schandry
09/17/2026, 8:32 AMbwamem2 seems to be fine with that, but it may interfere with the calculation of required ram?Niklas Schandry
09/17/2026, 8:34 AMMahesh Binzer-Panchal
09/17/2026, 8:43 AMNiklas Schandry
09/17/2026, 8:44 AMNiklas Schandry
09/17/2026, 8:45 AMNiklas Schandry
09/17/2026, 9:03 AMNiklas Schandry
09/17/2026, 9:05 AMSimon Pearce
09/17/2026, 12:14 PMMahesh Binzer-Panchal
09/17/2026, 12:42 PMMahesh Binzer-Panchal
09/17/2026, 12:43 PMNiklas Schandry
09/17/2026, 12:47 PMSimon Pearce
09/17/2026, 12:48 PMMatthieu Muffato
09/17/2026, 3:05 PMNiklas Schandry
09/17/2026, 4:13 PMNiklas Schandry
09/18/2026, 6:55 AMSimon Pearce
09/18/2026, 7:46 AMNiklas Schandry
09/18/2026, 9:21 AM