What's the maximum number of threads that bwa mem can handle?
1
0
Entering edit mode
8.7 years ago
anp375 ▴ 190

I remember reading that if we go beyond 4, something gets messed up - either the alignment, or an error is thrown. I can't find this info however. I want to use -t 12.

bwa mem threads • 2.2k views
ADD COMMENT
0
Entering edit mode

Unless you have a fast disk storage system I/O may become a limiting factor (assuming you have ample RAM available to allocate to 12 threads).

ADD REPLY
0
Entering edit mode

I assume 28gb is enough ram? I actually have a fast disk storage as well so I guess it doesn't matter. Thank you.

ADD REPLY
0
Entering edit mode

You will find out as you start running. If some of the threads remain in (non-R state in "top -H") then that would be a clue.

ADD REPLY
0
Entering edit mode

RAM may become limiting, depending upon the sequence composition of your reads and the reference genome. My recollection is that the reference is loaded only once (~4 GB) but the alignment data load scales with the number of threads (~2-3 GB per thread). Heng may provide a more accurate response if you post to the BWA mailing list.

ADD REPLY
1
Entering edit mode
8.7 years ago
DG 7.3k

I've never had a problem running with more than 4 threads. You can definitely use 12.

ADD COMMENT

Login before adding your answer.

Traffic: 2489 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6