From 03c751f22f1ac289fab4bb9f7b8fc1e82a094885 Mon Sep 17 00:00:00 2001 From: Jonathan Manning Date: Wed, 20 Nov 2024 11:00:41 +0000 Subject: [PATCH] Reduce core usage in hello-config --- docs/hello_nextflow/06_hello_config.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/hello_nextflow/06_hello_config.md b/docs/hello_nextflow/06_hello_config.md index 04d2c890..4e823699 100644 --- a/docs/hello_nextflow/06_hello_config.md +++ b/docs/hello_nextflow/06_hello_config.md @@ -742,7 +742,7 @@ The syntax looks like this when it's by itself in a process block: ```groovy title="Syntax" process { withName: 'GATK_JOINTGENOTYPING' { - cpus = 8 + cpus = 4 } } ``` @@ -756,7 +756,7 @@ process { memory = 2.GB // allocations for a specific process withName: 'GATK_JOINTGENOTYPING' { - cpus = 8 + cpus = 4 } } ``` @@ -774,8 +774,7 @@ nextflow run main.nf -profile my_laptop -with-report report-config-2.html Once again, you probably won't notice a substantial difference in runtime, because this is such a small workload and the tools spend more time in ancillary tasks than in performing the 'real' work. -However, the second report shows that our resource utilization is more balanced now, and the runtime of the `GATK_JOINTGENOTYPING` process has been cut in half. -We probably didn't need to go all the way to 8 CPUs, but since there's only one call to that process, it's not a huge drain. +However, the second report shows that our resource utilization is more balanced now.