decred / gominer

Go (golang) based GPU miner for Decred.
GNU General Public License v3.0
159 stars 77 forks source link

OpenCL gominer memory leak #217

Open username-rand opened 10 months ago

username-rand commented 10 months ago

This was reported in 2016 but still appears to be an issue. When I start gominer it uses about 5 - 6 % of memory, but after a a day or so it is up to over 70% as reported by top. I've also noticed that some of my workers eventually hang and all I can do is reboot. I don't know the cause because I cannot get to linux but I suspect that gominer may be running the machine out of memory.

As an aside I've noticed that the OpenCL version is a CPU hog using 400% of the CPU which is reported by top (have 4 cpus), so consuming a lot of the CPU. I tried the CUDA version which is much better as far as CPU usage is concerned but is half the hash rate of the OpenCL version.

image

Bassaliga commented 7 months ago

These are persistent problems with OpenCL. 7 years later, the problem remains relevant. OpenCL will never be able to perform calculations without errors or run for long. image_2023-12-04_07-29-20