Open leowill01 opened 4 months ago
Hello,
As of bowtie2 v2.5.0 we moved to async model (dedicated thread) for processing I/O. The --threads
flag specifies the number of computational (alignment) threads that bowtie2 will use, hence the thread count will always be +1 than the default or the value specified.
when i run bowtie2 and specify the number of threads to use(eg
-p 1
,-p 4
), the amount of CPU usage is always 1 more core in use than is specified by the number of threads to use. for example, if i specify-p 1
:the cpu usage (via
htop
) for the process with be at ~200% indicating a usage of 2 threads, not 1:likewise, for any other number of threads, it always uses n+1 CPU cores. for
-p 4
:CPU usage (via
htop
):(between 400-500% core usage because i have other jobs running, but bare system it would be ~500% indicating usage of 5 CPU cores)
this is effectively limiting cutting my sample throughput in half because when
bowtie2
is in usage with 1 thread specified, every job uses 2 threads instead. is this a bug or a feature? am i missing something?tested on: