7116722, a defect that triggered excessive background writes to a file named nvlog.nvlgstg. One early owner test of the hotfix on an RTX 4090 machine still recorded roughly 36 GB written overnight while the rig sat mostly idle, underscoring an uncomfortable truth for Windows 11 users: a single "Healthy" badge in Settings cannot tell the difference between a sleepy desktop drive and one being chewed through by a runaway background process.
So how long will your SSD actually last? Not in brochure fantasy land, but on the exact Windows 11 machine sitting under your desk right now? The answer comes down to one simple division: the rated write endurance you have left, divided by the rate at which your system genuinely writes data over days—not minutes. Built-in Windows 11 tools expose fragments of that puzzle, yet neither Settings nor PowerShell tracks cumulative host bytes written over time. Pair the open-source smartmontools suite with a lean 78-line Python logger and Windows Task Scheduler, however, and in roughly 50 minutes of setup (plus a few days of background data collection), you can turn raw SMART counters into a rolling lifespan projection complete with Event Viewer alerts when hourly writes go rogue.
The Arithmetic Behind SSD Lifespan (and Why One Bad Driver Breaks It)
Every consumer SSD leaves the factory with a manufacturer endurance rating measured in terabytes written (TBW)—typically anywhere from roughly 150 TBW on smaller budget drives to 600 TBW or more on mainstream 1 TB and 2 TB models, and climbing into the thousands for enterprise hardware. That number is not a doomsday timer where the flash memory spontaneously bricks itself at byte one-trillion-and-one. Rather, TBW is a warranty boundary: the total volume of host writes the vendor guarantees the drive will handle within its coverage period, whichever comes first. Samsung’s 2 TB 990 PRO, for example, carries a five-year limited warranty or 1,200 TBW.
Enterprise datasheets often express that same ceiling as drive writes per day (DWPD), meaning how many times you can overwrite the drive's entire usable capacity every single day across the warranty window. Converting between the two is straightforward arithmetic:
TBW = DWPD × Capacity (in TB) × 365 × Warranty Years
Applied to real drives, Samsung’s 2 TB 990 PRO at 1,200 TBW over five years works out to roughly 0.33 DWPD. By contrast, Micron’s 1.92 TB 7500 PRO—a read-intensive enterprise NVMe drive—is rated at 1 DWPD over five years, which translates to 3,504 TBW (1 × 1.92 × 365 × 5), or up to 1,920 GB of host writes per day.
Once you know your drive's TBW ceiling, estimating how long it will take to reach that warranty boundary requires one division:
Years to Rated TBW = (Rated TBW − Lifetime Host TB Written) ÷ Annual Host TB Written
Consider what that math looks like on a brand-new 600 TBW consumer SSD running at four steady-state daily write rates:
| Average Daily Host Writes | Annual Host Writes (Decimal TB/Year) | Illustrative Years to Reach 600 TBW |
|---|---|---|
| 20 GB / day | 7.3 TB / year | ~82.2 years |
| 50 GB / day | 18.25 TB / year | ~32.9 years |
| 120 GB / day | 43.8 TB / year | ~13.7 years |
| 720 GB / day (30 GB / hour, 24/7) | 262.8 TB / year | ~2.3 years |
Look closely at that bottom row. A desktop writing 50 GB a day cruises toward 33 years of theoretical warranty endurance—longer than any motherboard socket stays relevant. Yet if a buggy service hammers the drive at 30 GB every single hour around the clock, that three-decade cushion collapses to just over two years.
Two technical guardrails keep this math honest:
- Host writes are not internal NAND writes. TBW tracks data sent by Windows to the SSD (
Data Units Writtenin NVMe telemetry). Because SSD controllers perform garbage collection, wear leveling, and metadata management behind the scenes—known as write amplification—internal flash wear can move faster than host writes alone. Compare host writes against TBW, never against internal NAND metrics you don't directly observe. - Controller wear estimates and TBW ratios often disagree. NVMe drives report a
Percentage Usedcounter, which Microsoft’s Win32NVME_HEALTH_INFO_LOGdocumentation defines as a vendor-specific estimate of consumed subsystem life (updated once per power-on hour when not asleep), where100indicates estimated endurance consumed without guaranteeing failure, and values can climb past 100 up to 255. Treat both the TBW ratio andPercentage Usedas complementary trend lines rather than gospel.
Section Summary: SSD endurance comes down to rated TBW minus lifetime host writes, divided by your measured yearly write rate. Under normal desktop loads, consumer drives last decades; under sustained background write storms, that margin shrinks to a couple of years.
Why NVIDIA Driver Bug 7116722 Made Write Monitoring Essential
If you need proof that passive faith in Windows health badges is a bad strategy, look at the GeForce driver saga that unfolded across November 2026:
| Driver Version | Release Date | Status in Official Notes & Reporting |
|---|---|---|
| 621.01 | October 21, 2026 | Earlier Game Ready branch cited in third-party rollback guides |
| 621.14 | November 4, 2026 | Named in third-party reporting (e.g., TechPowerUp, TechRepublic) as exhibiting excessive background writes |
| 621.24 | November 12, 2026 | Named as affected in third-party reports; served as base for hotfix |
| 621.35 (Hotfix) | November 20, 2026 | Official optional hotfix targeting bug 7116722 (nvlog.nvlgstg writes); some third-party tests still saw overnight writes |
| 621.40 (WHQL) | November 24, 2026 | Official Game Ready Driver listing 7116722 fixed, with NVIDIA staff noting an extra change over 621.35 |
Third-party outlets including TechPowerUp and TechRepublic linked drivers 621.14 and 621.24 to NVDisplayContainer.exe / NVDisplay.Container.exe continuously rewriting nvlog.nvlgstg on idle systems, with user-reported extremes reaching up to 30 GB per hour. Because NVIDIA distributed Hotfix 621.35 as an optional support download rather than pushing it automatically through the NVIDIA App, many GeForce owners stayed unaware. Even after 621.35 landed, PC Gamer and Hardware Busters highlighted user tests—such as an RTX 4090 machine logging ~36 GB to 40.85 GB overnight—suggesting the hotfix did not silence writes on every setup.
NVIDIA followed up on November 24 with WHQL-certified GeForce Game Ready Driver 621.40, explicitly listing [7116722] under fixed general bugs, and NVIDIA software quality engineer Manuel Guzman noted (as cited by HotHardware and MIXED Reality News) that 621.40 included an additional change beyond the hotfix. That said, early community feedback on 621.40 has been mixed: unconfirmed user reports on NVIDIA’s developer forums describe issues ranging from CUDA workloads hanging in WSL2 on an RTX 5090 (prompting some users to revert to 621.24) to isolated black-screen complaints.
What is the rational response? Don't panic, and don't guess. Even 40 GB overnight is an annoyance rather than instant death for a 600 TBW SSD—whereas 30 GB every hour for 24 hours demands immediate action. Either way, Windows 11 offers no built-in cumulative host-write logger to prove whether your PC is clean before or after a driver change. That is exactly what we are going to build.
Section Summary: NVIDIA’s 621.40 driver officially addresses bug 7116722, though mixed user reports make personal verification smart. Because Windows 11 lacks a native write-rate tracker, logging raw SMART telemetry over time is the only way to know what your system is actually writing.
Prerequisites, Versions, and Time Budget
Before diving into the terminal, gather these components and verify your environment:
- Windows 11 version 26H2 or 25H2: Run
winverto confirm. Windows 11 version 24H2 Home and Pro editions reached end of updates on October 13, 2026 (Enterprise and Education remain serviced until October 12, 2027), so consumer machines still on 24H2 should move up. The November 10, 2026 cumulative security update is KB5132061 (builds26300.9974for 26H2,26200.9974for 25H2, and26100.9974for supported 24H2 editions). - Windows PowerShell 5.1 or PowerShell 7.6 LTS: Every command below works in Windows PowerShell 5.1 (built into Windows 11) or PowerShell 7.6 LTS (Microsoft’s current Long-Term Servicing branch, replacing 7.4 and 7.5 which reached end of support in November 2026).
- smartmontools (latest Windows release): Install with default options so
smartctl.exelands inC:\Program Files\smartmontools\bin. - Python 3.10 or newer: Installed directly from
python.org(not via the Microsoft Store alias, which fails under theSYSTEMTask Scheduler account). Our scripts use only Python’s standard library. - CrystalDiskInfo 9.9.5: Released November 15, 2026, via Crystal Dew World, used for a visual cross-check.
- Administrator rights: While smartmontools documentation notes that Windows NVMe read-only APIs behind
stornvme.syscan work without elevation on some systems, running an elevated Windows Terminal ensures smooth access across storage stacks and is mandatory for registering Task Scheduler jobs. - Your exact SSD’s rated TBW: Look up the vendor datasheet for your specific model and capacity.
First, create a dedicated folder so your scripts, CSV history, and scheduled tasks share one clean path. Open Windows Terminal as Administrator and run:
mkdir C:\ssdlife
Plan your time realistically: Steps 1–6 read existing telemetry and take roughly 25 minutes; Steps 7–8 build and automate the logger in about 10–15 minutes; Steps 9–12 calibrate alerts and investigate culprits, though a trustworthy rate projection requires several days to a week of background logging.
Steps 1 to 3: Read What Windows 11 Already Knows
Step 1: Identify Your Physical Disks, Bus Type, and TBW Budget
A PC with an NVMe boot SSD and a secondary SATA SSD has two entirely different endurance budgets and telemetry interfaces. List them first in your elevated PowerShell prompt:
Get-PhysicalDisk | Select-Object DeviceId, FriendlyName, MediaType, BusType, HealthStatus, OperationalStatus, @{n='SizeGB';e={[math]::Round($_.Size/1GB)}} | Format-Table -AutoSize
Sample output:
DeviceId FriendlyName MediaType BusType HealthStatus OperationalStatus SizeGB
-------- ------------ --------- ------- ------------ ----------------- ------
0 Example NVMe 1TB SSD NVMe Healthy OK 932
1 Example SATA 2TB SSD SATA Healthy OK 1863
Pay attention to BusType. NVMe drives use a standardized health log that Windows and smartctl read uniformly. SATA drives expose vendor-specific SMART attribute tables, and USB enclosures frequently block SMART passthrough altogether. Look up the rated TBW for each drive's exact model number on the manufacturer’s spec sheet—and remember that a Healthy status is not a wear forecast.
Step 2: Capture a Baseline in Windows 11 Settings
Navigate to Start > Settings > System > Storage > Advanced storage settings > Disks & volumes, select your SSD, and click Properties.
Where supported, Windows 11 displays a Drive health section showing three attributes documented by Microsoft Support:
- Estimated remaining life (approximate percentage remaining based on manufacturer predictions—note Microsoft points out it caps at 0% in the UI even though reaching 0% does not automatically mean failure).
- Available spare (normalized 0% to 100% spare flash capacity).
- Temperature (in degrees Celsius).
Take a screenshot and save it in C:\ssdlife with today’s date as your visual baseline. Two caveats apply: Windows’ Drive health panel supports NVMe SSDs—not SATA SSDs or spinning HDDs—and it never shows total gigabytes or terabytes written.
Step 3: Pull PowerShell Reliability Counters
Next, query Windows’ storage reliability counters for a second opinion:
Get-PhysicalDisk | Get-StorageReliabilityCounter | Select-Object DeviceId, Wear, Temperature, PowerOnHours, ReadErrorsTotal, WriteErrorsTotal, ReadLatencyMax | Format-Table -AutoSize
Sample output:
DeviceId Wear Temperature PowerOnHours ReadErrorsTotal WriteErrorsTotal ReadLatencyMax
-------- ---- ----------- ------------ --------------- ---------------- --------------
0 2 38 3120 0 0 41
1 4 33 11204 0 0 12
Here, Wear climbs upward from 0 as a percentage estimate of consumed endurance. Do not be alarmed if several cells come back blank—Microsoft’s documentation notes that returned metrics depend on what the underlying drive and driver stack expose, and external USB drives frequently return latency figures with everything else blank. Like Settings, this cmdlet omits cumulative bytes written.
Section Summary: Windows 11 gives you drive identification, NVMe-only remaining-life percentages, and basic error/wear counters, but leaves a glaring blind spot: cumulative host writes.
Steps 4 to 6: Extract Raw SMART Telemetry and Validate It
Step 4: Query Your Drive Directly with smartctl
Run the smartmontools Windows installer with default settings, then run the following in your elevated terminal:
cd "C:\Program Files\smartmontools\bin"
.\smartctl.exe --scan
.\smartctl.exe -a /dev/nvme0
.\smartctl.exe --json -a /dev/nvme0 | Out-File C:\ssdlife\snapshot.json -Encoding utf8
--scan reveals device identifiers like /dev/nvme0 or /dev/sda. Open C:\ssdlife\snapshot.json and look for the nvme_smart_health_information_log block:
{
"model_name": "Example NVMe 1TB",
"user_capacity": { "bytes": 1000204886016 },
"nvme_smart_health_information_log": {
"critical_warning": 0,
"temperature": 38,
"available_spare": 100,
"percentage_used": 2,
"data_units_written": 99664000,
"power_on_hours": 3120,
"unsafe_shutdowns": 14,
"media_errors": 0
}
}
Crucial developer quirk: smartctl uses exit-status bitmasks to signal warnings—meaning it returns a nonzero exit code whenever any warning flag is present, even when it successfully dumps valid JSON. Any automation script that treats a nonzero exit code as a crash will break unnecessarily; always check for empty output instead.
Step 5: Convert NVMe Data Units to Decimal Terabytes
Per the NVMe specification and Microsoft’s NVME_HEALTH_INFO_LOG reference, data_units_written counts host writes (excluding metadata) in units of 1,000 blocks of 512 bytes—meaning 512,000 bytes per unit. To convert into decimal terabytes (the unit drive makers use for TBW), multiply by 512000 and divide by 1e12 (1,000,000,000,000):
python -c "print(round(99664000 * 512000 / 1e12, 2))"
# Output: 51.03
Stick strictly to decimal terabytes (1e12). Mixing in binary tebibytes (1024^4) skews endurance comparisons by nearly 10%. Below is how to interpret each key NVMe counter:
| NVMe Field | What It Measures | How to Read It |
|---|---|---|
| Percentage Used | Controller’s estimate of consumed flash endurance | Starts at 0%. 5%–15% means most rated life remains. Can exceed 100 without immediate failure |
| Available Spare | Reserve blocks left to replace worn cells | Counts down from 100%. Drops indicate retired flash blocks |
| Data Units Written | Lifetime host writes sent by the OS | Multiply by 512,000 bytes (÷ 1e12) and compare with rated TBW |
| Power On Hours | Active powered hours (excluding sleep states) | Divide total TB written by hours for a lifetime average rate |
| Unsafe Shutdowns | Power losses without clean shutdown notice | Rapidly climbing values point to PSU, UPS, or cable issues |
| Media Errors | Unrecovered ECC/CRC/data integrity failures | Anything above 0 warrants an immediate backup |
| Critical Warning | Bit flags for spare, temp, read-only, or degraded reliability | 0 is healthy; any nonzero bit requires immediate action |
Step 6: Cross-Check Against CrystalDiskInfo 9.9.5
Install and launch CrystalDiskInfo 9.9.5 as Administrator. Match its Total Host Writes value against your smartctl calculation. Minor differences stem from decimal GB versus binary GiB rounding; a discrepancy of tens of terabytes means you are querying the wrong physical drive. Remember, however, CrystalDiskInfo’s own developer notes that the utility reports point-in-time drive data and does not calculate remaining lifespan with certainty—and a drive flashing a cheerful blue "Good" badge can still be suffering a 30 GB/hour write storm.
| Tool | Shows Total Host Writes? | Supported Drives | Role in This Workflow |
|---|---|---|---|
| Windows 11 Settings (Drive health) | No | NVMe only | Quick visual baseline & critical warning check |
Get-StorageReliabilityCounter | No | Driver/stack dependent | PowerShell second opinion on wear & latency |
smartctl (smartmontools) | Yes | NVMe & SATA | Scriptable JSON engine powering our logger |
| CrystalDiskInfo 9.9.5 | Yes | HDD & SSD (NVMe/SATA) | GUI cross-check for Total Host Writes |
Section Summary: Using smartctl --json bypasses Windows’ reporting gaps, giving you exact host-write counters you can validate against CrystalDiskInfo 9.9.5 before automating collection.
Steps 7 and 8: Build the Hourly Logger and Automate It
Step 7: Create C:\ssdlife\collect.py
A single snapshot shows mileage; a CSV time series reveals speed. Save the following script as C:\ssdlife\collect.py. It pulls NVMe telemetry automatically via smartctl --json and appends one timestamped row per run.
(Important SATA warning: While the script includes a --sata-attr fallback defaulting to SMART ID 241 multiplied by logical_block_size, do not treat this as universal. SATA attribute IDs and block multipliers vary widely across vendors—some count in 32 MiB or 512 KiB chunks rather than 512-byte sectors. Always verify your exact SATA model’s datasheet with smartctl -A /dev/sda before trusting SATA host-write numbers.)
import argparse
import csv
import json
import subprocess
from datetime import datetime
from pathlib import Path
FIELDS = [
"timestamp", "device", "model", "capacity_bytes", "bytes_written",
"percentage_used", "available_spare", "power_on_hours",
"unsafe_shutdowns", "media_errors", "critical_warning", "temperature_c"
]
NVME_DATA_UNIT = 512_000 # 1,000 blocks of 512 bytes
def read_smart(smartctl, device):
proc = subprocess.run(
[smartctl, "--json", "-a", device],
capture_output=True, text=True, timeout=60
)
# smartctl sets exit-code bits for warnings; only empty stdout is a failure
if not proc.stdout.strip():
raise RuntimeError("smartctl returned no output: " + proc.stderr.strip())
return json.loads(proc.stdout)
def to_row(device, data, sata_attr):
row = {name: "" for name in FIELDS}
row["timestamp"] = datetime.now().astimezone().isoformat(timespec="seconds")
row["device"] = device
row["model"] = data.get("model_name", "")
row["capacity_bytes"] = data.get("user_capacity", {}).get("bytes", "")
nvme = data.get("nvme_smart_health_information_log")
if nvme:
row["bytes_written"] = nvme["data_units_written"] * NVME_DATA_UNIT
row["percentage_used"] = nvme.get("percentage_used", "")
row["available_spare"] = nvme.get("available_spare", "")
row["power_on_hours"] = nvme.get("power_on_hours", "")
row["unsafe_shutdowns"] = nvme.get("unsafe_shutdowns", "")
row["media_errors"] = nvme.get("media_errors", "")
row["critical_warning"] = nvme.get("critical_warning", "")
row["temperature_c"] = nvme.get("temperature", "")
return row
table = data.get("ata_smart_attributes", {}).get("table", [])
attr = next((a for a in table if a["id"] == sata_attr), None)
if attr is None:
raise RuntimeError("SATA attribute %d not found, check vendor sheet" % sata_attr)
sector = data.get("logical_block_size", 512)
row["bytes_written"] = attr["raw"]["value"] * sector
row["power_on_hours"] = data.get("power_on_time", {}).get("hours", "")
row["temperature_c"] = data.get("temperature", {}).get("current", "")
return row
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--smartctl", default=r"C:\Program Files\smartmontools\bin\smartctl.exe")
parser.add_argument("--device", default="/dev/nvme0")
parser.add_argument("--log", default=r"C:\ssdlife\ssd_log.csv")
parser.add_argument("--sata-attr", type=int, default=241,
help="Verify vendor SMART ID and unit before using on SATA")
args = parser.parse_args()
row = to_row(args.device, read_smart(args.smartctl, args.device), args.sata_attr)
log = Path(args.log)
log.parent.mkdir(parents=True, exist_ok=True)
new_file = not log.exists()
with log.open("a", newline="") as handle:
writer = csv.DictWriter(handle, fieldnames=FIELDS)
if new_file:
writer.writeheader()
writer.writerow(row)
print("%s written=%.2f TB used=%s%%" % (
row["timestamp"], int(row["bytes_written"]) / 1e12, row["percentage_used"] or "n/a"
))
if __name__ == "__main__":
main()
Test it twice, about a minute apart, from your elevated prompt:
python C:\ssdlife\collect.py --device /dev/nvme0
Confirm you get a clean line such as 2026-11-29T09:00:12-05:00 written=51.03 TB used=2% and that C:\ssdlife\ssd_log.csv now holds two data rows.
Step 8: Register an Hourly SYSTEM Task in Task Scheduler
Running the collector under SYSTEM with highest privileges guarantees hourly snapshots even when nobody is signed in. First verify that (Get-Command python).Source does not point into WindowsApps (the Microsoft Store stub will fail under SYSTEM). Then run:
$py = (Get-Command python).Source
$act = New-ScheduledTaskAction -Execute $py -Argument 'C:\ssdlife\collect.py'
$trg = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval (New-TimeSpan -Hours 1) -RepetitionDuration (New-TimeSpan -Days 3650)
Register-ScheduledTask -TaskName 'ssdlife-collect' -Action $act -Trigger $trg -User 'SYSTEM' -RunLevel Highest
Start-ScheduledTask -TaskName 'ssdlife-collect'
Get-ScheduledTaskInfo -TaskName 'ssdlife-collect' | Select-Object LastRunTime, LastTaskResult
A LastTaskResult of 0 means success, and a third row should appear in ssd_log.csv. If a laptop sleeps overnight, it simply skips missed hours; the reporting script below calculates rates using actual elapsed timestamps, not sample counts.
Section Summary: collect.py and the hourly ssdlife-collect scheduled task capture lightweight, gap-tolerant SMART history around the clock without manual babysitting.
Steps 9 and 10: Project Lifespan and Unmask Background Writers
Step 9: Build the Lifespan Estimator (C:\ssdlife\report.py)
Save the following script as C:\ssdlife\report.py. It computes 7-day and 30-day average write rates, projects remaining years to your drive’s TBW rating, flags any single hour that exceeds your write threshold (default 5.0 GB/hour), and logs a Windows Application event (ID 100, source ssdlife) via eventcreate when thresholds are crossed.
import argparse
import csv
import subprocess
import sys
from datetime import datetime, timedelta
TB = 1e12
GB = 1e9
def load(path, device):
rows = []
with open(path, newline="") as handle:
for rec in csv.DictReader(handle):
if device and rec["device"]!= device:
continue
rows.append({
"t": datetime.fromisoformat(rec["timestamp"]),
"written": int(rec["bytes_written"]),
"used": float(rec["percentage_used"]) if rec["percentage_used"] else None,
})
rows.sort(key=lambda r: r["t"])
return rows
def window_rate(rows, days):
cutoff = rows[-1]["t"] - timedelta(days=days)
part = [r for r in rows if r["t"] >= cutoff]
if len(part) < 2:
return None
span = (part[-1]["t"] - part[0]["t"]).total_seconds() / 86400
delta = part[-1]["written"] - part[0]["written"]
if span <= 0 or delta < 0:
return None
return delta / span
def hot_intervals(rows, min_hours, gb_per_hour):
hits = []
for prev, cur in zip(rows, rows[1:]):
hours = (cur["t"] - prev["t"]).total_seconds() / 3600
delta = cur["written"] - prev["written"]
if hours < min_hours or delta < 0:
continue
rate = delta / GB / hours
if rate >= gb_per_hour:
hits.append((prev["t"], cur["t"], rate))
return sorted(hits, key=lambda h: h[2], reverse=True)
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--log", default=r"C:\ssdlife\ssd_log.csv")
parser.add_argument("--device", default="/dev/nvme0")
parser.add_argument("--tbw", type=float, required=True, help="Rated TBW from vendor sheet")
parser.add_argument("--alert-gb-per-hour", type=float, default=5.0)
parser.add_argument("--min-interval-hours", type=float, default=0.9)
parser.add_argument("--min-years", type=float, default=3.0)
args = parser.parse_args()
rows = load(args.log, args.device)
if len(rows) < 2:
sys.exit("Need at least two samples in the log")
last = rows[-1]
written_tb = last["written"] / TB
print("Samples: %d, first %s, last %s" % (len(rows), rows[0]["t"].date(), last["t"].date()))
print("Host writes: %.2f TB of %.0f TBW rated (%.1f%%)" % (
written_tb, args.tbw, 100 * written_tb / args.tbw
))
if last["used"] is not None:
print("Controller percentage used: %.0f%%" % last["used"])
alerts = []
for days in (7, 30):
rate = window_rate(rows, days)
if rate is None:
print("Last %2d days: not enough data" % days)
continue
per_year = rate * 365 / TB
years = (args.tbw - written_tb) / per_year if per_year > 0 else float("inf")
print("Last %2d days: %6.1f GB/day, %5.1f TB/year, %.1f years to rated TBW" % (
days, rate / GB, per_year, years
))
if days == 7 and years < args.min_years:
alerts.append("projected life %.1f years is under %.1f" % (years, args.min_years))
hits = hot_intervals(rows, args.min_interval_hours, args.alert_gb_per_hour)
if hits:
print("Intervals above %.1f GB/hour:" % args.alert_gb_per_hour)
for start, end, rate in hits[:5]:
print(" %s -> %s %.1f GB/hour" % (
start.strftime("%m-%d %H:%M"), end.strftime("%m-%d %H:%M"), rate
))
alerts.append("%d interval(s) above %.1f GB/hour" % (len(hits), args.alert_gb_per_hour))
if alerts:
text = "ssdlife: " + "; ".join(alerts)
print("ALERT: " + text)
try:
subprocess.run(
["eventcreate", "/T", "WARNING", "/ID", "100", "/L", "APPLICATION", "/SO", "ssdlife", "/D", text],
capture_output=True
)
except OSError:
pass
sys.exit(2)
print("OK: no alert thresholds crossed")
if __name__ == "__main__":
main()
Test it with your drive’s TBW figure (for instance, python C:\ssdlife\report.py --tbw 600). On a simulated 31-day dataset averaging 72 GB/day with a 9-hour burst at 30 GB/hour, output looks like this:
Samples: 744, first 2026-10-25, last 2026-11-24
Host writes: 51.27 TB of 600 TBW rated (8.5%)
Controller percentage used: 2%
Last 7 days: 72.0 GB/day, 26.3 TB/year, 20.9 years to rated TBW
Last 30 days: 80.1 GB/day, 29.2 TB/year, 18.8 years to rated TBW
Intervals above 5.0 GB/hour:
11-04 00:00 -> 11-04 01:00 30.0 GB/hour
11-04 01:00 -> 11-04 02:00 30.0 GB/hour
...
ALERT: ssdlife: 9 interval(s) above 5.0 GB/hour
Notice how comparing the 7-day and 30-day windows tells a story: if the 7-day rate is lower than the 30-day rate, a past write storm has already stopped; if the 7-day rate surges far ahead, something is hammering your drive now. Give the logger a full week before trusting the 7-day row so a single Windows Update or game download doesn’t distort your forecast.
Step 10: Identify Which Process and File Are Writing
report.py tells you when a spike happened; Windows diagnostics tell you who caused it. Start with a 60-second PowerShell per-process sample:
$s = Get-Counter '\Process(*)\IO Write Bytes/sec' -SampleInterval 5 -MaxSamples 12
$s.CounterSamples | Where-Object { $_.InstanceName -notin '_total','idle' } |
Group-Object InstanceName |
ForEach-Object {
[pscustomobject]@{
Process = $_.Name
AvgWriteKBps = [math]::Round((($_.Group | Measure-Object CookedValue -Average).Average) / 1KB, 1)
}
} | Sort-Object AvgWriteKBps -Descending | Select-Object -First 10
Treat this strictly as a lead, not a conviction. Windows’ IO Write Bytes/sec counter includes network and device I/O alongside physical disk writes, so an app uploading files or talking to sockets can sit near the top without touching your SSD.
To pinpoint actual physical file writes, run resmon to open Resource Monitor, switch to the Disk tab, sort Processes with Disk Activity by Write (B/sec), and inspect the Disk Activity file list directly underneath. If you are checking for the NVIDIA driver bug, look at Device Manager > Display adapters > [Your GPU] > Driver to verify whether you are running 621.14, 621.24, hotfix 621.35, or 621.40, and watch Resource Monitor for NVDisplay.Container.exe writing heavily to nvlog.nvlgstg (or nvtopps files) while the PC sits idle. Also remember everyday suspects: Windows Update, Defender scans, browser caches, Search Indexing, and OneDrive/cloud sync clients. Never wipe SMART data or spam driver reinstalls hoping to "reset" numbers—your lifetime counters are forensic evidence.
Section Summary: report.py isolates abnormal write windows and projects remaining years, while PowerShell I/O counters and Resource Monitor trace spikes down to the exact process and file.
Steps 11 and 12: Automate Alerts, Test Fixes, and Verify Results
Step 11: Schedule Daily Windows Event Alerts
Schedule report.py to run every morning at 8:00 a.m. as SYSTEM (replacing 600 with your drive’s actual TBW):
$py = (Get-Command python).Source
$act = New-ScheduledTaskAction -Execute $py -Argument 'C:\ssdlife\report.py --tbw 600'
$trg = New-ScheduledTaskTrigger -Daily -At 8am
Register-ScheduledTask -TaskName 'ssdlife-report' -Action $act -Trigger $trg -User 'SYSTEM' -RunLevel Highest
Check logged alerts anytime in PowerShell:
Get-WinEvent -FilterHashtable @{LogName='Application'; ProviderName='ssdlife'} -MaxEvents 5 | Format-List TimeCreated, Id, Message
If you compile large codebases or edit 4K video regularly, raise --alert-gb-per-hour (e.g., --alert-gb-per-hour 25) so legitimate creative work doesn't trip overnight alarms.
Step 12: Change One Variable, Measure a Full Overnight Window
Treat remediation like a controlled lab test:
- Record a full 24-hour baseline in
ssd_log.csv, paying special attention to an idle window like midnight to 6:00 a.m. - Apply one change—for example, updating to NVIDIA GeForce Game Ready Driver
621.40(or rolling back via a clean DDU uninstall to an older branch like621.01if you experience issues with621.40), tweaking an aggressive cache setting, or moving a scratch folder. - Let the logger collect across a full night—including display sleep/wake cycles, since some third-party hotfix testers saw writes resume only after prolonged idle periods—and compare the next midnight-to-6:00 a.m. window against your baseline. Keep a simple
changes.txtlog inC:\ssdlifewith dates so you know which fix dropped your daily rate from 700 GB back to 50 GB.
Section Summary: Daily Event Viewer alerts catch runaway writers within 24 hours, and disciplined before-and-after overnight logging proves whether a fix actually worked.
Common Pitfalls and 10 Troubleshooting Fixes
Even experienced admins trip over the same SSD monitoring traps. Keep these pitfalls in mind:
- Treating TBW as an expiration date: It is a warranty yardstick, not a bricking timer. Keep backups regardless of how many "decades" your math predicts.
- Trusting "Healthy" or "Good" badges: They flag current SMART faults, not ruinous write speeds.
- Mixing decimal TB and binary TiB: Always divide bytes by
1e12when comparing against vendor TBW specs. - Measuring 10-minute windows: Short checks miss sleep/wake triggers and scheduled overnight tasks.
- Forgetting secondary and external drives: Each SSD has its own budget; log additional drives with separate
--deviceand--logflags. - Confusing wear with slowdowns: An SSD slows down from thermal throttling or being 95% full long before its flash wears out—making an SSD speed and thermal check (topics covered regularly across WindowsForum hardware guides) a great companion diagnostic.
If something breaks during setup, check these 10 quick fixes:
smartctlreturns Access Denied: Run Windows Terminal as Administrator, and verify your scheduled tasks run asSYSTEMwithHighestprivileges.smartctl --scanreturns nothing: Reinstall smartmontools as Administrator, confirm the disk appears in Disk Management, and try explicitly specifying the type, such assmartctl -a -d nvme /dev/nvme0.- SSD is in a USB enclosure: Many USB bridges block SMART passthrough. Test
-d sat,-d sntjmicron,-d sntasmedia, or-d sntrealtek. If all fail, read the drive internally or use the manufacturer’s utility. collect.pythrows a JSON error: Check the--smartctlpath and run the rawsmartctl --json -acommand manually; remember nonzero exit codes alone are not failures unlessstdoutis empty.- SATA drive fails with "attribute 241 not found": Inspect
smartctl -A /dev/sda, verify the vendor’s exact host-write attribute ID and block unit size from the datasheet, and pass--sata-attr <ID>only once confirmed. Percentage Useddisagrees with TBW percentage: Expected—one is controller wear estimation, the other is a warranty counter ratio. Alert on whichever climbs faster.- Bytes written drops between rows: You replaced the drive, pointed at a different device ID, or a counter wrapped. Archive the old CSV before logging a replacement SSD.
- Scheduled task runs but
ssd_log.csvstays empty: RunGet-ScheduledTaskInfo -TaskName ssdlife-collect. A nonzeroLastTaskResultusually meanspythonresolved to aWindowsAppsStore stub instead of apython.orginstallation. - Legitimate game installs trigger hourly alerts: Raise
--alert-gb-per-hourto fit your workload and check the 7-day trend before acting. eventcreatefails with access denied: Runreport.pyfrom an elevated terminal or let theSYSTEMscheduled task handle Event Log writes.
Advanced Tips and Frequently Asked Questions
Once your baseline logger has run cleanly for a month, a few refinements turn it into a permanent maintenance safety net: export CSV columns to Grafana/Prometheus alongside smartd monitoring, add checks to report.py for any drop in Available Spare or any Media Errors > 0, keep at least 15%–20% free space on SSDs to curb write amplification, and offload heavy scratch caches (builds, video proxies, VMs) onto a dedicated secondary drive. If you ever sell or repurpose the PC, back up ssd_log.csv—years of write-rate history is the one diagnostic record you can never regenerate from a drive’s lifetime totals alone.
Frequently Asked Questions
How long do SSDs last under normal home Windows 11 use?
Typically far longer than the PC itself. At 50 GB/day, a 600 TBW drive reaches its warranty limit in roughly 33 years of arithmetic—though your actual figure depends on measuring your real write rate rather than guessing.
What happens when an SSD hits 100% of its TBW rating?
Warranty coverage ends, not necessarily the hardware. Drives frequently run well past TBW, while occasional units fail earlier. Monitor Percentage Used, Available Spare, and Media Errors, and keep current backups regardless.
Can Windows 11 26H2 show total host writes natively?
No. The Settings Drive health panel reports estimated remaining life, available spare, and temperature on supported NVMe drives, while Get-StorageReliabilityCounter omits total bytes written. You need smartctl, CrystalDiskInfo 9.9.5, or a vendor utility to read cumulative host writes.
Should I replace my SSD immediately if my projection says 2 years?
Not before investigating with Step 10. A misbehaving driver, sync client, or runaway cache often accounts for 80%–90% of unexpected writes. Fix the culprit first, re-measure overnight, and only upgrade to a higher-endurance drive if legitimate daily workloads are burning through your budget.
Does NVIDIA Hotfix 621.35 still matter now that 621.40 is out?
GeForce Game Ready Driver 621.40 (November 24, 2026) carries NVIDIA’s official WHQL fix for bug 7116722. Whichever branch you choose—updating to 621.40 or stepping back if your specific GPU hits forum-reported issues—let collect.py verify overnight idle writes on your own hardware.
Correction (November 29, 2026): An earlier version of this article described the collect.py logger as 75 lines. The script as printed in Step 7 is 78 lines.
References
- How Long Do SSDs Last? Measure Yours in 12 Steps, 50 Min - shattered.io shattered.io · 2026-11-29T16:55:31+00:00
- techrepublic.com techrepublic.com
- samsung.com samsung.com