-
Notifications
You must be signed in to change notification settings - Fork 37
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
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? |
Aratz
left a comment
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
| 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
|
|
The settings should be reviewed again before merging. Seems a bit low on resource allocation. |
|
Thank you for your contribution and looking into this. We have discussed your suggestions and while they seem reasonable for the small test dataset, we fear that they will be unhelpful for a full dataset. I also prefer to leave the base configs for |
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