-
Notifications
You must be signed in to change notification settings - Fork 78
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
investigate memory leak in OpenCL code #73
Comments
I have a miner monitor which using gominer adl implementation, then found this memory leak(also higher cpu usage). The problem is that gominer init adl every time when it call doADLCommand, move it to init_adl function solve this problem. I'm lazy to fork, so here is the patch:
|
I was looking at this again and the problem seems to lie in the OpenCL library that we use. I was able to reproduce the issue by modifying one of the demos/examples: |
gominer has a small memory leak under normal usage that grows over time.
With a tiny worksize where it runs through the OpenCL loop hundreds of times per second, it will leak a few MB in seconds.
Need to add some debug code to find the size of the leak and then pinpoint where exactly it's occurring.
The text was updated successfully, but these errors were encountered: