How macOS actually works
Seeing an unfamiliar process at the top of Activity Monitor is alarming. These ones are usually fine.
| Process | Job |
|---|---|
mds | Metadata server — coordinates indexing |
mds_stores | Writes and maintains the index files |
mdworker | Short-lived workers that read individual files |
mdimport | Imports a specific file's metadata |
mdsync | Synchronises index stores |
sudo mdutil -EHours of activity in those cases is expected. It should subside.
Sustained activity for more than a day with no obvious trigger usually means indexing is failing and restarting. Common causes: a corrupted index, a drive mounting repeatedly, or a sync client rewriting files continuously.
The fix is generally to rebuild once, and to exclude whatever is churning.
sudo fs_usage -w -f filesys mdworker
That shows which files the workers are reading, which usually identifies the culprit immediately.
sudo mdutil -i off /
Search stops working while it is off, so use this to diagnose rather than as a solution.
Content indexing means opening and parsing files — that is what mdworker is doing when it uses CPU. A names-only index reads directory entries, which is dramatically cheaper, and after the initial scan it only processes changes as they are reported.
No. It is part of Spotlight and ships with macOS.
Identify what it is indexing with fs_usage, exclude that location, and rebuild once.
Everywhere keeps track of every file on your Mac — including the folders Spotlight hides and drives you have unplugged. Free for a day, then $19 once.
Download for Mac