I bought an RX 9070 XT to make my PC faster. It did, for about a week. Then it got sluggish, and Task Manager insisted with a straight face that nothing was using the memory.
The culprit turned out to be the display driver, amdkmdag.sys. Every time any program starts on Windows, it keeps a tiny souvenir and never gives it back: about 2 KB of kernel memory (non-paged and paged pool) per process start. Task Manager can’t see it, and only a reboot clears it.
A gaming PC starting a few thousand programs a day won’t notice. Mine runs developer tools and AI coding agents that start programs constantly, and after 9 days the driver had hoarded this:
| Kernel pool tag | Leaked allocations | Size |
|---|---|---|
| File (non-paged) | 4.1 million | 1.57 GB |
| FMfn (paged) | 9.7 million | 3.4 GB |
| Ntfc, IoNm, D2d (paged) | about 4 million each | 1.3 GB |
About 6.3 GB of RAM, gone. In the middle of a global RAM shortage, that’s roughly US$85 (about AU$125) at today’s prices, about US$9 a day. While the rest of us ration RAM, my driver is stockpiling it like toilet paper in March 2020.
Sound familiar?
- RAM usage creeps up over days and the processes in Task Manager don’t add up
- High non-paged pool or paged pool usage in Task Manager or RAMMap
- poolmon shows the File and FMfn tags growing and never shrinking
- The PC gets laggy after a long uptime, and a reboot fixes it
Check yours (a few minutes, no admin needed)
The script below starts whoami 4,000 times and counts the kernel file objects left behind. It doesn’t install or change anything. Mine reports 1.01 leaked per program start; a healthy PC should show close to 0.
Please reply with your result, especially if you have another Radeon (RDNA3 or RDNA2 would show whether this is new):
GPU:
Driver version:
File per process start:
The receipts: xperf trace and what I ruled out
- Kernel pool trace (xperf,
-PoolTag File+FMfn, allocation stacks) while starting 2,000 programs: 4,009 processes started, and 4,009 File objects were left outstanding, every one with amdkmdag.sys on the allocation stack. - On driver 32.0.32015.2008 the frames are always
amdkmdag+0x6707AF > +0x66F805 > +0x4C5C6D, called from Windows’ process-creation path. That call site ran 4,010 times. - The leaked objects have no open handles, so a reference is never released.
- Same leak on three drivers: 32.0.22042.14002 (May 2026), Adrenalin 26.8.1 (32.0.31041.1004) and 26.9.2 (32.0.32015.2008).
- No change after: disabling the integrated Radeon graphics, stopping every AMD service and closing Adrenalin, or unloading Sandboxie (the only non-Microsoft file system filter).
- System: Ryzen 9 9950X3D, MSI B650M GAMING WIFI (BIOS 1.D4), 32 GB RAM, Sapphire RX 9070 XT, Windows 11 Pro 25H2 (build 26200.9457).
Filed with the AMD Bug Report Tool too, and I’m happy to share the full trace files privately with AMD.
Test script (Test-ProcessStartPoolLeak.ps1)
Save as Test-ProcessStartPoolLeak.ps1, then run powershell -ExecutionPolicy Bypass -File .\Test-ProcessStartPoolLeak.ps1
<#
.SYNOPSIS
Measures how many kernel FILE objects are leaked per process start.
.DESCRIPTION
Starts a short-lived process (whoami.exe) many times and compares the number of
outstanding kernel pool allocations for the 'File' tag (non-paged) and the 'FMfn'
tag (paged, Filter Manager file-name cache) before and after, against an idle
window of the same length.
A healthy system returns to about 0 leaked File objects per process start.
The affected system returns about 1.0 per process start, and the objects are
never freed until reboot.
No administrator rights are needed. Nothing is installed or changed.
Counters come from NtQuerySystemInformation(SystemPoolTagInformation), the same
source poolmon uses.
.PARAMETER Count
Number of processes to start per round (default 2000).
.PARAMETER Rounds
Number of start/idle rounds (default 2).
.EXAMPLE
powershell -ExecutionPolicy Bypass -File .\Test-ProcessStartPoolLeak.ps1
#>
param([int]$Count = 2000, [int]$Rounds = 2)
Add-Type -TypeDefinition @"
using System; using System.Runtime.InteropServices;
public static class PoolTagCounters {
[DllImport("ntdll.dll")] static extern int NtQuerySystemInformation(int cls, IntPtr buf, int len, out int ret);
const int SystemPoolTagInformation = 22;
// Returns outstanding allocations: [0] = 'File' non-paged, [1] = 'FMfn' paged.
public static long[] Read() {
int len = 4 << 20; IntPtr buf = Marshal.AllocHGlobal(len); int ret;
try {
int st = NtQuerySystemInformation(SystemPoolTagInformation, buf, len, out ret);
if (st != 0) throw new Exception("NtQuerySystemInformation failed: 0x" + st.ToString("X8"));
int n = Marshal.ReadInt32(buf); long[] res = new long[2];
for (int i = 0; i < n; i++) {
IntPtr e = (IntPtr)((long)buf + 8 + (long)i * 40); // SYSTEM_POOLTAG, x64 layout
uint tag = (uint)Marshal.ReadInt32(e);
if (tag == 0x656C6946) res[0] = (long)Marshal.ReadInt32(e, 24) - Marshal.ReadInt32(e, 28); // 'File'
if (tag == 0x6E664D46) res[1] = (long)Marshal.ReadInt32(e, 4) - Marshal.ReadInt32(e, 8); // 'FMfn'
}
return res;
} finally { Marshal.FreeHGlobal(buf); }
}
}
"@
$exe = Join-Path $env:windir 'System32\whoami.exe'
function Start-Children([int]$n) {
for ($i = 0; $i -lt $n; $i++) {
$psi = New-Object Diagnostics.ProcessStartInfo $exe
$psi.UseShellExecute = $false
$psi.RedirectStandardOutput = $true
$psi.CreateNoWindow = $false # share this console, so no extra conhost.exe per start
$p = [Diagnostics.Process]::Start($psi)
$null = $p.StandardOutput.ReadToEnd()
$p.WaitForExit()
$p.StandardOutput.Dispose()
$p.Dispose()
}
}
function Measure-Window([string]$label, [scriptblock]$work) {
[GC]::Collect(); [GC]::WaitForPendingFinalizers(); Start-Sleep 2
$before = [PoolTagCounters]::Read(); $sw = [Diagnostics.Stopwatch]::StartNew()
& $work
[GC]::Collect(); [GC]::WaitForPendingFinalizers(); Start-Sleep 5
$after = [PoolTagCounters]::Read()
[pscustomobject]@{ Window = $label; Seconds = [int]$sw.Elapsed.TotalSeconds
FileLeaked = $after[0] - $before[0]; FMfnLeaked = $after[1] - $before[1] }
}
Write-Host "Starting $Count x $Rounds short-lived processes ($exe)..." -ForegroundColor Cyan
$results = for ($r = 1; $r -le $Rounds; $r++) {
$start = Measure-Window "start $Count processes (round $r)" { Start-Children $Count }
$start
$idle = [Math]::Max(5, $start.Seconds - 7)
Measure-Window "idle ${idle}s (round $r)" { Start-Sleep $idle }
}
$results | Format-Table -AutoSize
$starts = $results | Where-Object Window -like 'start*'
$idles = $results | Where-Object Window -like 'idle*'
$total = $Count * $Rounds
$file = ($starts | Measure-Object FileLeaked -Sum).Sum / $total
$fmfn = ($starts | Measure-Object FMfnLeaked -Sum).Sum / $total
$drift = ($idles | Measure-Object FileLeaked -Sum).Sum
"Outstanding after starts, per process start: File = {0:N2} FMfn = {1:N2}" -f $file, $fmfn
"Background drift across all idle windows: File {0:+#;-#;0} (other activity on the PC; should be small next to the start rounds)" -f $drift
"Expected on a healthy system: File close to 0 per process start."