• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Possible return of "GPU-Z Memory leak when left open for days"?

Joined
Sep 23, 2016
Messages
16 (0.01/day)
Processor Core i7-12700K
Motherboard Gigabyte Z690 Aorus Master
Cooling Noctua NH-D15S
Memory 32 GB G.Skill DDR5
Video Card(s) ASUS ROG-STRIX GTX 3070 (8 GB)
Storage Samsung 1 TB 960 Pro NvME
Display(s) Philips 326M6F (32" 2560x1440)
Case Fractal Design Define 7
Audio Device(s) Creative Sound BlasterX AE-5
Power Supply Seasonic TX-850
Mouse Cobra RedDragon
Keyboard Corsair K95 RGB Platinum XT
Software Windows 11 Pro 64-bit
Yes, I found the older thread - but the "resolution" of that one wasn't very definite, and may or may not be related to what I am seeing.

Basically, the last 1 or 2 releases of GPU-Z (either just 1.11.0 or including 1.10.0 also) have been exhibiting a monotonic growth in the process's working set of 4 KB or 8 KB every 6-8 seconds, as displayed by Process Explorer on fully up-to-date 64-bit Windows 10.

So, after 4 days - including hibernating at night, so no restarts of GPU-Z - we are up to 1/4 GB... not crippling, obviously, but annoying, and it seemed like the longer this goes without getting fixed, the more difficult it might be to find. :cool:

I have an MSI NVidia GTX 1070 card, with the NVidia 372.90 WHQL driver - and I am not asking GPU-Z to log anything, just requesting the usual "Refresh sensors while GPU-Z is in background".

Let me know if there is anything else I can supply, or questions I can answer - thanks! :)
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
27,029 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
Stops growing around 10 MB here on Windows 7 + GTX 980 Ti, so I suspect it's a leak in the NVIDIA driver again, for Pascal only.

Will try to replicate on Pascal
 
Joined
Sep 23, 2016
Messages
16 (0.01/day)
Processor Core i7-12700K
Motherboard Gigabyte Z690 Aorus Master
Cooling Noctua NH-D15S
Memory 32 GB G.Skill DDR5
Video Card(s) ASUS ROG-STRIX GTX 3070 (8 GB)
Storage Samsung 1 TB 960 Pro NvME
Display(s) Philips 326M6F (32" 2560x1440)
Case Fractal Design Define 7
Audio Device(s) Creative Sound BlasterX AE-5
Power Supply Seasonic TX-850
Mouse Cobra RedDragon
Keyboard Corsair K95 RGB Platinum XT
Software Windows 11 Pro 64-bit
Cool, thanks for looking into this - and to think, I was troubled when, with my old AMD 7850 card, GPU-Z's WS would get up to 50-60 MB. :cool:

I am puzzled - how could anything like a memory leak in the NVidia driver show up in my [GPU-Z] process's WS?

A tidbit: the suspend/resume caused this to briefly shrink by 8 MB, but the instant the system was back, it resumed its march to... well, we'll see - I do have another 12 GB still unused.
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
27,029 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
I am puzzled - how could anything like a memory leak in the NVidia driver show up in my [GPU-Z] process's WS?
GPU-Z loads NVIDIA libraries into its process space to query things. If there's a memory leak in those libraries it will show as owned by GPU-Z.
Similar issue when the OpenCL driver crashes during detection, GPU-Z will crash with it, people will blame GPU-Z...

Now that I'm thinking about it, maybe I can unload the NVIDIA library every few hundred calls, which could free up the memory.

Going on a two week vacation tomorrow, so this will have to wait a bit.
 
Joined
Sep 23, 2016
Messages
16 (0.01/day)
Processor Core i7-12700K
Motherboard Gigabyte Z690 Aorus Master
Cooling Noctua NH-D15S
Memory 32 GB G.Skill DDR5
Video Card(s) ASUS ROG-STRIX GTX 3070 (8 GB)
Storage Samsung 1 TB 960 Pro NvME
Display(s) Philips 326M6F (32" 2560x1440)
Case Fractal Design Define 7
Audio Device(s) Creative Sound BlasterX AE-5
Power Supply Seasonic TX-850
Mouse Cobra RedDragon
Keyboard Corsair K95 RGB Platinum XT
Software Windows 11 Pro 64-bit
GPU-Z loads NVIDIA libraries into its process space to query things. If there's a memory leak in those libraries it will show as owned by GPU-Z.
Similar issue when the OpenCL driver crashes during detection, GPU-Z will crash with it, people will blame GPU-Z...

Now that I'm thinking about it, maybe I can unload the NVIDIA library every few hundred calls, which could free up the memory.

Going on a two week vacation tomorrow, so this will have to wait a bit.

Ahhh... like nvapi.dll? :) Sure, this could help - if it cleans up after itself when it is unloaded.

Yup, enjoy - I am sure everything will be waiting for you when you return. :cool:
 
Joined
Sep 23, 2016
Messages
16 (0.01/day)
Processor Core i7-12700K
Motherboard Gigabyte Z690 Aorus Master
Cooling Noctua NH-D15S
Memory 32 GB G.Skill DDR5
Video Card(s) ASUS ROG-STRIX GTX 3070 (8 GB)
Storage Samsung 1 TB 960 Pro NvME
Display(s) Philips 326M6F (32" 2560x1440)
Case Fractal Design Define 7
Audio Device(s) Creative Sound BlasterX AE-5
Power Supply Seasonic TX-850
Mouse Cobra RedDragon
Keyboard Corsair K95 RGB Platinum XT
Software Windows 11 Pro 64-bit
...
Yup, enjoy - I am sure everything will be waiting for you when you return. :cool:
So, I trust you are refreshed and recharged after your vacation, since this pesky little "feature" is still present in the latest (1.12) release of GPU-Z. :cool:

Not to be in any way combative - but merely to provoke thought - I will mention that neither MSI Afterburner's nor HWiNFO's NVidia monitoring functions exhibit this particular behavior.

Since none of the primary monitoring apps I know of are open source, I am unable to offer any suggestions or assistance - other than testing any possible fixes. ;)
 
Joined
Sep 23, 2016
Messages
16 (0.01/day)
Processor Core i7-12700K
Motherboard Gigabyte Z690 Aorus Master
Cooling Noctua NH-D15S
Memory 32 GB G.Skill DDR5
Video Card(s) ASUS ROG-STRIX GTX 3070 (8 GB)
Storage Samsung 1 TB 960 Pro NvME
Display(s) Philips 326M6F (32" 2560x1440)
Case Fractal Design Define 7
Audio Device(s) Creative Sound BlasterX AE-5
Power Supply Seasonic TX-850
Mouse Cobra RedDragon
Keyboard Corsair K95 RGB Platinum XT
Software Windows 11 Pro 64-bit
Following up, Martin from HWiNFO confirms he is using NVAPI for "almost all" NVIDIA GPU queries, so this would seem to have narrowed the possibilities for the monotonic WS growth GPU-Z exhibits to either using NVAPI [somehow] differently, or ... something else entirely [besides NVAPI]. :cool:

BTW, my question to him included your potential mitigation mentioned above, but he didn't comment on it one way or another, so it could still be worth exploring.

Thanks, W1zzard, and of course, I am ready to test anything you would like me to take a look at.
 

rtwjunkie

PC Gaming Enthusiast
Supporter
Joined
Jul 25, 2008
Messages
13,909 (2.42/day)
Location
Louisiana -Laissez les bons temps rouler!
System Name Bayou Phantom
Processor Core i7-8700k 4.4Ghz @ 1.18v
Motherboard ASRock Z390 Phantom Gaming 6
Cooling All air: 2x140mm Fractal exhaust; 3x 140mm Cougar Intake; Enermax T40F Black CPU cooler
Memory 2x 16GB Mushkin Redline DDR-4 3200
Video Card(s) EVGA RTX 2080 Ti Xc
Storage 1x 500 MX500 SSD; 2x 6TB WD Black; 1x 4TB WD Black; 1x400GB VelRptr; 1x 4TB WD Blue storage (eSATA)
Display(s) HP 27q 27" IPS @ 2560 x 1440
Case Fractal Design Define R4 Black w/Titanium front -windowed
Audio Device(s) Soundblaster Z
Power Supply Seasonic X-850
Mouse Coolermaster Sentinel III (large palm grip!)
Keyboard Logitech G610 Orion mechanical (Cherry Brown switches)
Software Windows 10 Pro 64-bit (Start10 & Fences 3.0 installed)
I'm curious why you would leave GPU-z open for days. Please don't be offended, I only ask because it doesn't make sense to me. Hopefully you can explain for me.
 
Joined
Sep 23, 2016
Messages
16 (0.01/day)
Processor Core i7-12700K
Motherboard Gigabyte Z690 Aorus Master
Cooling Noctua NH-D15S
Memory 32 GB G.Skill DDR5
Video Card(s) ASUS ROG-STRIX GTX 3070 (8 GB)
Storage Samsung 1 TB 960 Pro NvME
Display(s) Philips 326M6F (32" 2560x1440)
Case Fractal Design Define 7
Audio Device(s) Creative Sound BlasterX AE-5
Power Supply Seasonic TX-850
Mouse Cobra RedDragon
Keyboard Corsair K95 RGB Platinum XT
Software Windows 11 Pro 64-bit
Umm, why not [leave it open for days]? :) And, BTW, the "days" thing is just a good way to see really big WS sizes - the growth rate is on the order of 1 KB/sec, which you need to pay attention to to actually notice.

Further, I typically don't do a full restart of my system unless forced to by some update that can't complete otherwise, preferring to hibernate (which has started to become unstable on the latest Win 10 for me), or just sleep my system.

And no worries about any "offense" being taken - questions are just questions. :D
 
Joined
Sep 23, 2016
Messages
16 (0.01/day)
Processor Core i7-12700K
Motherboard Gigabyte Z690 Aorus Master
Cooling Noctua NH-D15S
Memory 32 GB G.Skill DDR5
Video Card(s) ASUS ROG-STRIX GTX 3070 (8 GB)
Storage Samsung 1 TB 960 Pro NvME
Display(s) Philips 326M6F (32" 2560x1440)
Case Fractal Design Define 7
Audio Device(s) Creative Sound BlasterX AE-5
Power Supply Seasonic TX-850
Mouse Cobra RedDragon
Keyboard Corsair K95 RGB Platinum XT
Software Windows 11 Pro 64-bit
For those still eagerly following this thread :cool:, after less than a week (and with my system sleeping about half the time), my Working Set for GPU-Z 1.12.0 on 64-bit Win10 is up over 330 MB. For the really interested, the CPU time used by GPU-Z over that elapsed real time is ~2 hours.

The "records" in the memory segment that is growing monotonically appear to have some sort of binary "preamble" or spacer, then really get going with "NVAPI Clock config"... and end with "... MHz" and a LF character - note that all of these are 16-bit characters - then it all just repeats indefinitely.

As always, happy to answer any questions or run any requested tests.:)
 
Joined
Apr 28, 2011
Messages
1,066 (0.22/day)
Location
Botevgrad, Bulgaria, Europe
System Name Main PC/OldPC/3rd PC
Processor Intel Core i7-3770K Ivy Bridge/Core i5-3470 Ivy Bridge/Core i3-4330 Haswell
Motherboard ASUS P8Z77-V/ASRock Z68 Pro3 Gen1/ASUS H81M2
Cooling Cooler Master Hyper 212 EVO/Intel Box cooler/Intel Box cooler
Memory 32GB Corsair Vengeance/32GB ADATA/16GB ADATA
Video Card(s) SAPPHIRE R9 290 Tri-X OC 4GB/MSI RX 480 8GB/SAPPHIRE R9 390 8GB
Storage 2x1TB ADATA SSDs in RAID0+3 HDDs/2xCrucial 1TB SSDs in RAID0+3 HDDs/Samsung 1TB SSD+8TB+4TB HDDs
Display(s) Philips 274E5QHAB@HDMI + Philips 273EQH@DVI (both 27")
Case Fractal Design Define R4 Titanium
Audio Device(s) Kenwood Mini HiFi system/Microlab speakers/Philips HDMI (main)+LG TV monitor HDMI + Apple headphones
Power Supply Cooler Master Silent ProM 600 W (modular)
Mouse Microsoft Ergonomic Sculpt Desktop 2.0 (combo)@Razer Goliath mousepad (Medium speed)
Keyboard Microsoft Ergonomic Sculpt Desktop 2.0 (combo)
Software Win10 64-bit (Main PC v.1809 RTM Enterprise/2nd PC v.1903 Insider Preview Pro/3rd PC - same as 2nd)
Curious, what tool do you use to read the GPU-Z memory space? Low-level debugger?
(SoftICE/etc)
 
Last edited:

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
27,029 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
The "records" in the memory segment that is growing monotonically appear to have some sort of binary "preamble" or spacer, then really get going with "NVAPI Clock config"... and end with "... MHz" and a LF character - note that all of these are 16-bit characters - then it all just repeats indefinitely.
Bah this is the GPU-Z internal log, I invited you to the GPU-Z Beta group to test the fix
 
Last edited:
Joined
Sep 23, 2016
Messages
16 (0.01/day)
Processor Core i7-12700K
Motherboard Gigabyte Z690 Aorus Master
Cooling Noctua NH-D15S
Memory 32 GB G.Skill DDR5
Video Card(s) ASUS ROG-STRIX GTX 3070 (8 GB)
Storage Samsung 1 TB 960 Pro NvME
Display(s) Philips 326M6F (32" 2560x1440)
Case Fractal Design Define 7
Audio Device(s) Creative Sound BlasterX AE-5
Power Supply Seasonic TX-850
Mouse Cobra RedDragon
Keyboard Corsair K95 RGB Platinum XT
Software Windows 11 Pro 64-bit
Curious, what tool do you use to read the GPU-Z memory space? Low-level debugger?
(SoftICE/etc)

Nothing that exotic, I am just a "recent convert" to Process Hacker (and running my own 64-bit build)... this is the first thing that has made me leave good ol' Process Explorer behind.;)

@W1zzard: heading over now.
 

Kegelcizer

New Member
Joined
Nov 25, 2016
Messages
1 (0.00/day)
Hi,
I'm experiencing the same thing on my ASUS GeForce GTX 1060 Turbo 6GB DDR5 192-bit, Windows 8.1 64 bit up to date, 375.95 WHQL driver.
Also, ASUS GPU TWEAK has the same issue for me, not at the same rate though.

I see W1zzard has an idea of what this issue is, but if you need more details from my system, I'll supply them with pleasure.
 
Joined
Oct 30, 2016
Messages
5 (0.00/day)
can confirm same issue on Asus GTX 1070

after start it has about 10 MB after 1 day open it has over 100 MB and after some days it grows to 300 MB ram usage

Windows 10 Build 14393.447
 
Joined
Sep 23, 2016
Messages
16 (0.01/day)
Processor Core i7-12700K
Motherboard Gigabyte Z690 Aorus Master
Cooling Noctua NH-D15S
Memory 32 GB G.Skill DDR5
Video Card(s) ASUS ROG-STRIX GTX 3070 (8 GB)
Storage Samsung 1 TB 960 Pro NvME
Display(s) Philips 326M6F (32" 2560x1440)
Case Fractal Design Define 7
Audio Device(s) Creative Sound BlasterX AE-5
Power Supply Seasonic TX-850
Mouse Cobra RedDragon
Keyboard Corsair K95 RGB Platinum XT
Software Windows 11 Pro 64-bit
Just to "close the loop", W1zzard's fix does appear to take care of the problem... a test version has been running since yesterday, and still is using less than 30 MB. :)
 
Top