Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any body has the problem of Memory Explosion? #44

Closed
zhangzhaocs opened this issue Apr 27, 2019 · 4 comments
Closed

Any body has the problem of Memory Explosion? #44

zhangzhaocs opened this issue Apr 27, 2019 · 4 comments

Comments

@zhangzhaocs
Copy link

Hi Tim,
When I run this code, the memory usage is getting bigger and finally got an explosion.
I was wondering if you have the same problem and what's the solution?

Looking forward to your kind feedback.
Thanks,
tsingker88

@TimDettmers
Copy link
Owner

I worked on this problem in the past and could resolve some issues, but it seems that there are still issues with the background loader NumPy pointers that are not released.

Two things that might help in this case is: (1) Use fewer loader_threads for the Streambatcher, (2) play around reducing the samples_per_file variable in the StreamToHDF5 class (I think increasing the samples per file should improve the memory profile, but I am not sure anymore).

Let me know if that helps!

@zhangzhaocs
Copy link
Author

Your suggestion really helps.
Thank, Tim.

@1780041410
Copy link

How did you solve this problem? Can you email to me?

@1780041410
Copy link

1780041410@qq.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants