[Bioperl-l] Perl script uses all my cpu
Jason Stajich
jason.stajich at gmail.com
Wed Oct 30 05:24:41 UTC 2013
are you sure it is bioperl that is causing this - if you run top I am sure it is the fasta command that is causing this:
Also not sure why you initialize searchIO twice. Just initialize it in the loop where you use it.
Is the CPU just from running the application fasta36 ? you can specify the number of threads with -T -- so to ask for 1 processor add "-T 1" to your fasta cmd
On Oct 29, 2013, at 2:05 PM, Antony03 <antony.vincent.1 at ulaval.ca> wrote:
> Hi,
>
> I wrote this perl script http://pastebin.com/PWVKvcQ6 and it uses bioperl
> modules. It works well (I think) but it uses all my cpu (8)...i don't
> understand why.
>
> Is someone know how execute my code on only one cpu?
>
> Thanks!
>
> Antony
>
>
>
> --
> View this message in context: http://bioperl.996286.n3.nabble.com/Perl-script-uses-all-my-cpu-tp17189.html
> Sent from the Bioperl-L mailing list archive at Nabble.com.
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
Jason Stajich
jason.stajich at gmail.com
jason at bioperl.org
More information about the Bioperl-l
mailing list