You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also found using SimpleSearcher.search might lead to memory leak. I did an experiment of BM25 search with 5K queries over msmarco-v1-passage. With all Pyserini search results (top-1000) kept in RAM, it ends up with 8.43GB (much larger than it should be, ~1GB I think). What makes this more serious is about the memory leak, I found no matter what kind of memory cleaning I did, there would be still around 5.5GB remaining.
Related issue #431
I also found using
SimpleSearcher.search
might lead to memory leak. I did an experiment of BM25 search with 5K queries overmsmarco-v1-passage
. With all Pyserini search results (top-1000) kept in RAM, it ends up with 8.43GB (much larger than it should be, ~1GB I think). What makes this more serious is about the memory leak, I found no matter what kind of memory cleaning I did, there would be still around 5.5GB remaining.I used
psutil.Process(os.getpid()).memory_info()[0] / 2**30
to track the RAM used. More details can be found inhttps://colab.research.google.com/drive/1MUxe9RCpm-Ax2wF1agnUusXe6FF88wt-?usp=sharing
Interestingly, I found a fix:
Looking forward to your insights & ideas!
The text was updated successfully, but these errors were encountered: