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

NVIDIA NVML lib memory leak #292

Closed
nicehashdev opened this issue Mar 29, 2021 · 12 comments
Closed

NVIDIA NVML lib memory leak #292

nicehashdev opened this issue Mar 29, 2021 · 12 comments
Labels
good first issue Good for newcomers

Comments

@nicehashdev
Copy link
Contributor

nicehashdev commented Mar 29, 2021

EDIT, from last post:
Latest non-DCH drivers (465.89) work fine for all generations (Pascal, Volta, Turing and Ampere): https://www.nvidia.com/download/driverResults.aspx/172060/en-us

No memory leak, decent speeds, complete compatibility.

DCH ONLY!
It looks like latest NVIDIA drivers (461.92 and 491.75, perhaps others) have massive memory leak bugs in NVML library. This memory leak affects all applications using NVML library including Excavator and NiceHash QuickMiner. We have determined that version 460.89 NON-DCH is good and has no memory leak that would affect Excavator or NiceHash QuickMiner hence it can be used for days/weeks without any restarts.

There is a simple test to verify whether you have memory leak version of drivers:

  1. Open CMD.EXE as Administrator.
  2. Run: nvidia-smi.exe -l and observe memory consumption of process nvidia-smi.exe (for example with Task Manager).
  3. If you see increase of several kB once per second, then there is leak of power consumption method - which we have bypassed with Excavator already thus Excavator is not affected.
  4. If you see increase of several hundred kB once per second, then there is massive memory leak as explained. Excavator is also affected in this case.

I will post more information when more is known.

@nicehashdev nicehashdev added the good first issue Good for newcomers label Mar 29, 2021
@nicehashdev nicehashdev pinned this issue Mar 29, 2021
@nicehashdev
Copy link
Contributor Author

Looks like NON-DCH 460.89 is fine, 460.89 DCH still has issue of huge memory leak.

@bmwf30
Copy link

bmwf30 commented Mar 29, 2021

What is dch?

@KGA00
Copy link

KGA00 commented Mar 29, 2021

What is dch?

Microsoft DCH (Declarative Componentized Hardware supported apps) driver and refers to a new Windows 10 driver package preinstalled by OEMS implementing the Microsoft Universal Driver paradigm. While the base core component files remain the same, the way DCH drivers are packaged differs from previous Legacy (Standard) drivers.
Recommend the normal driver, WHQL, and not DCH.

@Alamer1
Copy link

Alamer1 commented Mar 29, 2021

is the beta driver 470.05 effected by this leak as well? thanks for the findings

@nicehashdev
Copy link
Contributor Author

It looks like DCH drivers have this issue. Non-DCH are OK. Also 470.05 DCH is affected and is leaking mem badly.

@CocoCrisp
Copy link

I found a way to download the 461.92 standard type and it seems the leak I had is gone now.

@nicehashdev
Copy link
Contributor Author

Yes, looks like only DCH versions are affected.

@Alamer1
Copy link

Alamer1 commented Mar 30, 2021

is the beta driver 470.05 effected by this leak as well? thanks for the findings

is there anyway to go around this? im using this driver due to having 3060s mining eth on quick miner.

@nicehashdev
Copy link
Contributor Author

Try to find non DCH version.

@nicehashdev
Copy link
Contributor Author

Latest non-DCH drivers (465.89) work fine for all generations (Pascal, Volta, Turing and Ampere): https://www.nvidia.com/download/driverResults.aspx/172060/en-us

No memory leak, decent speeds, complete compatibility.

@nicehashdev nicehashdev unpinned this issue Apr 2, 2021
@nicehashdev
Copy link
Contributor Author

Since we have a solution for this, it is no longer relevant.

@Jsaini23
Copy link

Hey guys i tried using the drivers mentioned...atill have mem leak

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

No branches or pull requests

6 participants