From d9b05b5897e9cd33b74715da0754f4806f90b1fa Mon Sep 17 00:00:00 2001 From: Ruben Vorderman <r.h.p.vorderman@lumc.nl> Date: Mon, 6 Jul 2020 10:32:31 +0200 Subject: [PATCH] 2GB per thread is sufficient --- bwa.wdl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bwa.wdl b/bwa.wdl index 0c35bf3..4a0e86a 100644 --- a/bwa.wdl +++ b/bwa.wdl @@ -30,7 +30,7 @@ task Mem { Int threads = 4 Int sortThreads = 1 - Int sortMemoryPerThreadGb = 4 + Int sortMemoryPerThreadGb = 2 Int compressionLevel = 1 # BWA needs slightly more memory than the size of the index files (~10%). Add a margin for safety here. Int memoryGb = 1 + ceil(size(bwaIndex.indexFiles, "G") * 1.2) + sortMemoryPerThreadGb * sortThreads @@ -95,7 +95,7 @@ task Kit { Int threads = 4 Int sortThreads = 1 - Int sortMemoryPerThreadGb = 4 + Int sortMemoryPerThreadGb = 2 Int compressionLevel = 1 # BWA needs slightly more memory than the size of the index files (~10%). Add a margin for safety here. Int memoryGb = 1 + ceil(size(bwaIndex.indexFiles, "G") * 1.2) + sortMemoryPerThreadGb * sortThreads -- GitLab