Skip to content
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

GATK2 Unified Genotyper creates too many threads #32

Closed
nsoranzo opened this issue Feb 18, 2014 · 3 comments
Closed

GATK2 Unified Genotyper creates too many threads #32

nsoranzo opened this issue Feb 18, 2014 · 3 comments

Comments

@nsoranzo
Copy link
Collaborator

My colleague Paolo Uva noticed that the gatk2_unified_genotyper tool creates a number of threads which is 6 times the number of cores it has been assigned in job_conf.xml (i.e. $GALAXY_SLOTS). This is due to the options "--num_threads ${GALAXY_SLOTS:-4}" (specified by the macro @threads@) and "--num_cpu_threads_per_data_thread 6".

When this job runs on a machine where it is supposed to occupy only a part of the available CPU cores, it harms the performances of other jobs.

The easiest solution is obviously to change the second option to "--num_cpu_threads_per_data_thread 1".

@bgruening
Copy link
Owner

I will read again the documentation and make the changes, I think it also applies for the other tools as well.

@nsoranzo
Copy link
Collaborator Author

I think it also applies for the other tools as well.

No, unified_genotyper is the only wrapper having both threading mechanisms enabled:

$ grep -l THREADS *.xml|xargs grep num_cpu_threads_per_data_thread
realigner_target_creator.xml:    --num_cpu_threads_per_data_thread 1
unified_genotyper.xml:    --num_cpu_threads_per_data_thread 6

bgruening added a commit that referenced this issue Feb 19, 2014
@bgruening
Copy link
Owner

Fixed and package updated.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants