Processes that eat CPU and memory: mds_stores, MsMpEng, vmmem and other usual suspects
Most slowdowns after an update, a big copy or a long uptime come from a handful of background jobs. Each is doing something useful: indexing, scanning, syncing or compacting. They look alarming because they use all the CPU for a while. The question is whether it ends. Here are the usual ones.
macOS
| Process | What it does | What to do |
|---|---|---|
mds_stores, mdworker_shared | Spotlight indexing | Normal for an hour or so after an update or after adding many files. If stuck for a day, exclude big folders in System Settings, Siri & Spotlight, or rebuild the index with sudo mdutil -E /. |
photoanalysisd, mediaanalysisd | Photos scans faces and objects | Finishes by itself, faster when the Mac is plugged in and the lid open |
cloudd, bird | iCloud Drive sync | High while a large folder is syncing; check the iCloud status in Finder |
kernel_task | Slows the CPU to cool the Mac | Not the cause: it is the effect of heat. Check vents, external monitors, and what else is hot. |
backupd | Time Machine | Normal during a backup |
Xcode's SourceKitService, swift-frontend | Indexing and compiling | Quit Xcode, delete DerivedData if it never settles |
Windows
| Process | What it does | What to do |
|---|---|---|
MsMpEng.exe (Antimalware Service Executable) | Defender scanning | Heavy on node_modules and build folders. Add your project folder as an exclusion if you accept the risk. |
TiWorker.exe, TrustedInstaller.exe | Windows Update installing | Let it finish, then restart |
SearchIndexer.exe | Search indexing | Reduce the indexed folders in Indexing Options |
vmmem, vmmemWSL | WSL 2 and Docker virtual machine | Cap it in .wslconfig: see the vmmem article |
OneDrive.exe | Sync | Pause sync, or choose which folders sync |
java.exe, node.exe | Gradle and Kotlin daemons, dev servers | gradle --stop; close dev servers you forgot |
WmiPrvSE.exe | Windows Management Instrumentation queries | A monitoring tool is usually asking too often |
Linux
| Process | What it does | What to do |
|---|---|---|
tracker-miner-fs-3 (GNOME), baloo_file (KDE) | File indexing | Turn indexing off in the desktop settings if you do not search |
snapd | Snap refresh and mounting | Normal after boot; consider fewer snaps |
packagekitd, unattended-upgrade | Updates | Wait; do not kill it halfway |
kswapd0 | The kernel swapping to disk | You are out of memory. Find the biggest process with ps aux --sort=-%mem | head. |
dockerd, containerd | Containers | docker stats shows which container |
How to find your own culprit
- Mac: Activity Monitor, sort by CPU or Memory; or
top -o cpu. - Windows: Task Manager, Details tab; Resource Monitor for disk.
- Linux:
htoportop;iotopfor disk.
Rule of thumb: if it is busy for under an hour after an update, wait. If it is busy for a day, it is stuck on one file or folder, and you can usually find which in the process's open files (lsof -p <pid> on Mac and Linux).
Where Zofle fits. Zofle is a free disk cleanup and file finder for Mac and Windows. It shows what is filling a disk, folder by folder, lists developer caches, old build folders and leftovers with their size and date, lets you untick what you want to keep, and sends the rest to the Trash or Recycle Bin first so you can undo it.
Sources and method
- Apple Support: If your Mac is slow, Activity Monitor user guide.
- Microsoft Learn: Task Manager, Windows Update, Microsoft Defender exclusions.
- Linux man pages:
top,ps,journalctl. - Paths and commands are from each tool's own documentation and can differ by version; run the 'find it' command on your own machine before deleting anything.
Zofle Pro news
People signing up now will get Zofle Pro, with more features, for free when we launch it.