Nazeem.Me

A blog about technology, football and all the other random stuff in my life

Two weeks on the SSD-eating NVIDIA driver, measured

Written by

in

, ,

·

In my last storage post I committed to not buying a drive for three years. That plan depends on the drives I already own wearing out slowly and predictably.

Then this turned up. Users are reporting that NVIDIA’s GeForce drivers 621.14 and 621.24 keep writing to the system SSD while the PC sits idle. The figures quoted are around 3 GB an hour on 621.14 and up to 30 GB an hour on 621.24. The culprit appears to be NVDisplay.Container.exe rewriting a single log file, nvlog.nvlgstg, under C:\ProgramData\NVIDIA Corporation\nvtopps\nct\. NVIDIA hasn’t confirmed any of it.

My main desktop, BigBlackBox, had been on 621.14 for two weeks by the time I read about it. I rolled back to 621.01 straight away. Then I wanted to know what the two weeks had actually cost.


Pinning down the window

Windows keeps every driver package it installs in the DriverStore, with a date on each. That gave me the exact window: 621.14 went in on 6 November at 10:12, and the rollback to 621.01 landed on 20 November at 11:50. Fourteen days.

The boot drive is a 1 TB Samsung 990 PRO, rated for 600 TB of writes. If the worst reports were true and applied to my machine, two weeks of 30 GB an hour would be about 10 TB, or nearly 2% of its life gone to a log file.


SMART can’t answer it alone

The obvious place to look is the drive’s own write counter. The problem is that it’s a lifetime total. It tells you how much has been written, not when.

I did have one earlier reading to compare against: the snapshot from the 38-drive audit on 25 September.

990 PRO25 Sep23 NovChange
Data written25.0 TB26.7 TB+1.7 TB
Data read24.6 TB26.5 TB+1.9 TB
Power-on hours3,5293,652+123
Wear used2%2%—
Media errors00—

1.7 TB in two months, with the 621.14 fortnight somewhere in the middle. That could be a driver writing nonstop for two weeks, or two months of normal use. A before-and-after pair can’t tell those apart. I needed something that recorded writes over time.


The history file I didn’t know I had

Samsung Magician runs in the background on this machine. It turns out it keeps a 10 MB file called Hist.dat in C:\ProgramData\Samsung\Samsung Magician\. It’s a SQLite database with one sample a minute for every Samsung drive, going back to 21 September. Magician keeps it locked, so you have to copy it with shared read access before you can open it.

None of its columns are labelled. Each metric is just a type number, from 1 to 21 plus 80. Two patterns gave the main ones away. In every sample, type 15 is exactly type 16 plus type 19, and type 18 is exactly type 17 plus type 20. Those look like total throughput split into reads and writes, and total IOPS split the same way. Type 80 sits between 45 and 58 the whole time, so that’s temperature.

A guess about units isn’t evidence, so I checked it against SMART. Adding up the two throughput series since 25 September gives 2.86 TB moved over 106 sampled hours. SMART says reads plus writes grew by about 3.6 TB over 123 power-on hours. Magician was running for about 86% of the time the drive was on, so that’s a close match. The units are bytes per second, and the data is usable.

I still can’t say which of the two series is reads and which is writes. As it turned out, that didn’t matter.


What 621.14 actually wrote

PeriodHours powered onWritten per powered-on hour
Before (25 Sep – 6 Nov), 621.01 and earlier67.2~15 GB
621.14 (6 Nov – 20 Nov)34.5~10 GB
After rollback (20 Nov – 23 Nov)4.3~20 GB

Writes went down during the 621.14 window, not up. Both throughput series show the same drop, which is why it didn’t matter which one was reads and which was writes.

The second column matters more than the third. In fourteen days the machine was only on for 34.5 hours. The rest of the time it was asleep or off, and a sleeping PC doesn’t run a driver that writes logs. The whole window wrote about 0.34 TB, all of it from me actually using the machine.

That rules out the worst case. At 30 GB an hour, those 34.5 hours alone would have meant about 1 TB. It doesn’t rule out a smaller leak. The 3 GB an hour reported on 621.14 would add about 100 GB over the window, and that’s small enough to hide inside normal day-to-day variation. Even then, 100 GB is about 0.02% of the drive’s rated life.

On 621.01 now, the log file is 49 KB, and the two NVIDIA container processes have written 8.4 MB between them since this morning’s boot. The reports describe hundreds of megabytes an hour.


What else the re-read turned up

Since I was reading every drive in the box anyway, I checked the things the September audit had flagged.

  • The sleep-wake fix is holding. In September, the 990 PRO had logged 1.19 power cycles for every hour powered on. That was the machine waking up every fifteen minutes and going back to sleep. Since then, every internal drive has added 56 cycles in about 122 hours, or 0.46 an hour.
  • The Crucial M500 hasn’t moved. Its reserve block count and wear are flat, and it has written almost nothing in two months. It’s still on the list, but it isn’t getting worse.
  • One counter is broken, not alarming. The 990 PRO reports a second throttling timer stuck at 65,535 seconds, the maximum the counter can hold. It hasn’t moved in two months, so it’s a placeholder value, not 18 hours of throttling.

Checking your own machine

If you’re on 621.14 or 621.24, this takes ten minutes:

  1. Look at the log file. Check the size and last-modified time of C:\ProgramData\NVIDIA Corporation\nvtopps\nct\nvlog.nvlgstg. Come back five minutes later. If it’s growing by hundreds of KB a minute while you’re doing nothing, you have the problem.
  2. Open Resource Monitor (resmon), go to the Disk tab, and sort by Write (B/sec) while the PC is idle. NVDisplay.Container.exe shouldn’t be anywhere near the top.
  3. Find out how much your PC is actually on. Every report is in GB per hour. What matters for your drive is GB per hour multiplied by the hours your machine is awake. A PC that sleeps when you’re not using it limits the damage on its own.
  4. If you run a Samsung drive with Magician, you already have history. Hist.dat can give you a before-and-after for any date range in the last couple of months, with no setup.

The fix most people report as reliable is rolling back to 621.01. Stopping the NVIDIA Display Container LS service and deleting the log only helps until the file grows back.


The lesson, again

The Mac mini in the last post wrote 47 TB in a month, and I only found out because I went and read the counters. This time the scare was bigger than the damage. 621.14 cost my boot drive somewhere between nothing and 0.02% of its life, and it sits at 4.5% used overall. Rolling back was still right. But the reason the drive came through fine wasn’t the rollback. It was a PC that sleeps most of the day.

What I’d change is how I found out. I learned about this from a news site, two weeks in. A spike in writes doesn’t trip any health check, and the only reason I could answer the question afterwards was that Samsung happened to be logging throughput. The next step for the three-year plan is to read every drive’s write counter on a schedule, so the next silent writer shows up as a jump in my own numbers before I read about it.