jhhung / PEAT

An ultra fast and accurate paired-end adapter trimmer that needs no a priori adapter sequences.
Other
22 stars 7 forks source link

PEAT always uses 2 cpus even with -n 1 #19

Closed tseemann closed 9 years ago

tseemann commented 9 years ago

It always seems to use 2 threads (200% CPU) ? Do you have a main thread and a file reading thread ? If I use -n 2 I get 300% CPU. I assume you use N+1 threads.

% PEAT paired -n 1 -1 R1.fq -2 R2.fq > /dev/null
% top
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 43455 tseemann  20   0  207196 143740    740 R 200.0  0.0   0:11.71 PEAT
RalfHsiao commented 9 years ago

We fix this problem and update the program in release. Thank you your advice.