dunovo
dunovo copied to clipboard
align_families.py: Kalign memory leak
In version 2.0.6.
The issue may be in the AlnStrs object allocated in the kalign C code and returned back to Python, which then may not properly free it.
Update: 88b2e02 didn't fix this, but it reduced memory usage so that it's now very similar to MAFFT. Suggests it could be the same underlying issue, independent of the particular aligner.
Idea: Maybe set maxtasksperchild
on multiprocessing.Pool
and see if replacing workers periodically helps.