
Fix for WorkloadsSessionHost.exe RAM Hoarding on Copilot+ PCs (Recover 4GB+ of RAM)
The Problem
If you own a Copilot+ PC (AMD Ryzen AI, Intel Lunar Lake, or Snapdragon X) running Windows 11 24H2 or 25H2, you may have noticed multiple WorkloadsSessionHost.exe processes silently consuming anywhere from 2GB to 8GB of RAM while doing absolutely nothing visible.
These are part of Microsoft's AI infrastructure. They stay loaded indefinitely to pre-warm AI models. The problem: they never release that memory, even when idle. On 16GB machines, this pushes idle usage above 60%.
The AMD Ryzen AI Bug
On Strix Point (XDNA2 NPU), there's a confirmed bug where models are loaded into System RAM and executed on CPU instead of the NPU, wasting 3–4GB of shared memory for nothing.
The Solution: WorkloadManager
I developed a lightweight PowerShell daemon that runs silently and enforces a 60-second lifetime on every WorkloadsSessionHost.exe process.
How it works:
- Windows spawns the process.
- WorkloadManager detects the PID within 3 seconds.
- Starts a 60-second countdown.
- At 60s →
Stop-Process -Force→ RAM is freed. - If you use Click to Do again, Windows spawns a fresh instance, it works, and 60s later it's cleaned up again.
Results (Real Logs)
In my testing (Lenovo Yoga 7), a single cleanup cycle freed over 4,350 MB across 7 processes:
- PID 10004 → 4,161 MB freed (The main offender)
- PID 8720 → 527 MB freed
- PID 9320 → 307 MB freed
Installation & GitHub
I've made the script open-source so anyone can audit and use it.
Quick Steps:
- Download the files (Installer, Uninstaller, and the Script).
- Open Terminal as Admin.
- Run the installer: PowerShellSet-ExecutionPolicy Bypass -Scope Process -Force & "C:\Path\To\Instalar-WorkloadManager.ps1"
Verify it's working:
Run this to see your recovered RAM:
PowerShell
Get-EventLog -LogName Application -Source WorkloadManager -Newest 20 | Select-Object TimeCreated, Message
FAQ
- Does it break Click to Do? NO. It just kills the process after it's been idle.
- Does it disable Recall? Yes, the installer includes registry keys to kill Recall permanently.
- Is it safe? Yes, it doesn't modify system files or delete anything; it just manages process lifetime.
Feel free to share, modify, or contribute!