-
Notifications
You must be signed in to change notification settings - Fork 31
Change resource allocations #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
Changing the resource allocation to be more reasonable
Changes the parameters of single and low
Reducing resource allocation. Changed module to use process_single.
process_low
Even number of CPUs for compatibility
@maxulysse the "process_single" etc. labels are not standardized in nf-core, right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this! I have two comments for you to look into
@@ -1,6 +1,6 @@ | |||
process BOWTIE2_BUILD { | |||
tag "$fasta" | |||
label 'process_high' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The files in modules/nf-core
are automatically fetched from https://github.com/nf-core/modules/ and should not be modified manually.
Instead, you should specify the new label in base.config
. See this example from Sarek: https://github.com/nf-core/sarek/blob/master/conf/base.config#L74-L77
conf/base.config
Outdated
withLabel:process_single { | ||
cpus = { 1 } | ||
memory = { 6.GB * task.attempt } | ||
time = { 4.h * task.attempt } | ||
cpus = { 2 } | ||
memory = { 2.GB * task.attempt } | ||
time = { 10.m * task.attempt } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not exactly sure about which modules use process_single
, but the name suggest these modules should run on only one core no? If you modify this label, there is a risk that future modules will be overallocated.
Wouldn't it be better to set the label to process_low
for bowtie, fastqc and fastq_screen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall change that now along with reverting the main.nf files to original
|
PR checklist
nf-core lint
).nf-test test main.nf.test -profile test,docker
).nextflow run . -profile debug,test,docker --outdir <OUTDIR>
).Changed the resource allocations, including CPU, memory and time