-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adding instructions for running with limited cpus and/or memory #29
Comments
Ok, I see that these are now in https://github.com/naobservatory/mgs-workflow/blob/master/configs/resources.config; perhaps the README can point people there, and maybe we could start the ec2 modes with a check that these resources are available, and if not give a message informing the user to edit this file. |
I'm running on an instance with 8 cpus and 16G memory. After setting the cpu limit to 7 and the memory limit to 14G on all the non-single processes in the 'resources.config' file, things work until 'RUN:DEDUP:CLUMPIFY_PAIRED'
It looks like this step is not using the memory parameter. I guess in the CLUMPIFY_PAIRED process we need to change par="reorder dedupe containment t=!{task.cpus} -Xmx30g" If I manually change the memory flag to
|
Yeah, these are now all in BBTools modules, as you've seen, have their own memory allocation syntax that doesn't play super nicely with Nextflow's. I'd be very happy for someone to figure out how to make them play well together (e.g. automatically reformatting |
I can do this - I'll open a new issue specifically to track this fix |
@harmonbhasin I think something on this would be good to include in our planned expanded documentation next quarter. |
Clarified this issue with Will: Add a section to the wiki on resources, specifically when you don't have enough resources. The suggested plan of action will most likely be change |
This will be addressed in #152 |
In the previous version of the pipeline, there were options in the config file for limiting the cpus and memory usage, but these parameters seem to be gone. In run.nf, I see how we can set params for fastqc, but not for other steps.
Currently, if I run the test set on an instance with 8 cpus, I fail at the 'RUN:CLEAN:CUTADAPT' step (output below). Somewhere, 'task.cpus' is being set to 16 despite running on an instance with just 8 cpus in 'ec2_local' mode.
The text was updated successfully, but these errors were encountered: