I may be asking a silly question but in the bwa me...
# modules
r
I may be asking a silly question but in the bwa mem modules. cpu is set to 8 in some configs i have seen then in the command line 8 cpu are given to bwamem and 8 to samtools view. Is it because with the pipe the data sent from bwamem pauses its use of the cpu untill samtools view finishes writting the data ? I was wondering if giving 12 globally and putting 8 and 4 would be a viable option.
m
It's because most applications don't fully utilize cpu cycles, and letting the operating system manage time splicing between the tools using the cpu cycles generally leads to the best performance.
r
even inside a docker container that just hard limit the process to 8 cpus ?
m
Yes