in reply to Re^5: Memory Usage in Regex On Large Sequence
in thread Memory Usage in Regex On Large Sequence
Hi Browser,
Yup, removing Bio::SeqIO doesn't resolve the crashes but it dramatically speeds up execution. Further, the program runs quite a bit deeper before crashing. I also tried reducing the number of threads in the BioPerl-less program, and found that the fewer threads active at any one time, the deeper execution can go. So, with just 3 threads it completes, but with 5 it terminates about 80% of the way through the dataset. That seems to suggest that the threads are using a lot of memory: is there a way of assessing the memory footprint of an individual threads?
Also, you had previously mentioned that it might be useful to just create a pool of threads at the front, and to reuse them. I'd like to try that out, but I'm unsure how to do that, and didn't see anything in perldoc threads, but I could have missed it. My thought here is that perhaps threads are "leaking" some memory on my system, and reusing threads might help identify that.
Many thanks (again) for your help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Memory Usage in Regex On Large Sequence
by BrowserUk (Patriarch) on Sep 26, 2006 at 23:08 UTC | |
by bernanke01 (Beadle) on Sep 27, 2006 at 00:45 UTC | |
by bobf (Monsignor) on Sep 27, 2006 at 03:25 UTC | |
by BrowserUk (Patriarch) on Sep 27, 2006 at 01:20 UTC |