# What is mdsync, and why is it using CPU?

What is this process? · Updated 1 December 2026. By Mohit Nippanikar, who makes SiftMac.

## The short answer

- **It’s part of Spotlight.** `mdsync` sits in Spotlight’s own folder in macOS, and its launchd job runs it as the scan worker for Spotlight’s server. Howard Oakley lists it among the services involved in Spotlight indexing.
- **When it’s normal:** after a macOS update, a migration, or connecting a disk Spotlight hasn’t indexed yet. Apple says indexing can take hours or even days depending on how much data there is.
- **When to act:** if it stays busy for days, check indexing with `mdutil -s`, keep folders and disks you never search out of Spotlight, and rebuild the index only if searches are clearly broken.

## 1. What mdsync is

The program is `/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdsync`, beside `mds`, `mds_stores` and the `mdworker` processes. launchd starts it from `/System/Library/LaunchDaemons/com.apple.metadata.mds.scan.plist`, a job labelled `com.apple.metadata.mds.scan` that belongs to Spotlight. Being a LaunchDaemon, it serves the whole Mac rather than one user.

Apple doesn’t document mdsync, so its launchd job is the best description available. That job passes it the names `mdworker-scan` and `MDSSyncScanWorker`, and the program’s version string names the Spotlight project. Put together: it is the worker Spotlight’s server hands disk scans to, walking a volume to find what needs indexing, while `mdworker_shared` reads the contents of individual files.

Oakley’s article on rebuilding Spotlight indexes lists it in one line among the other services involved in indexing, alongside `mdwrite`. Beyond that, little is published, so treat any detailed claim about it with care.

## 2. Why it’s busy

Apple says Spotlight indexes at first setup, after software updates or upgrades, and as data changes. Scans are the first stage of that, so mdsync shows up when Spotlight has a whole volume to go through:

- **After a macOS update or upgrade,** when Spotlight checks the disk again.
- **After moving to a new Mac** or restoring from a backup, with every file new to the index.
- **When you connect a disk** that Spotlight hasn’t seen, including large external drives.
- **After an index rebuild,** whether from `mdutil -E` or removing a disk from Search Privacy.
- **On disks with very many small files,** such as code projects or photo exports, where a scan has more entries to walk.

A scan that ends in hours or a day is expected. One that runs for days and starts over each time is not.

## 3. What to do about it

First see what Spotlight thinks of each volume. These only read:

```
mdutil -s /
mdutil -s -a
```

The first reports whether indexing is enabled for the startup disk; the second does the same for every mounted volume. A disk you don’t expect to be indexed is a candidate for exclusion.

1. **Leave it on power and awake.** Apple says indexing finishes sooner when the Mac is idle, plugged in and online.
2. **Exclude what you never search.** Apple’s steps: System Settings › Spotlight (or Siri & Spotlight), click Search Privacy at the bottom, and drag in the disk or folder. Backup disks, build folders and archives are good candidates.
3. **Restart the Mac** if the scan seems stuck rather than slow.
4. **Rebuild only when the index is damaged.** Oakley’s view is that rebuilding is justified only when searches are known to be broken, not when indexing seems slow, since a rebuild usually takes longer. Apple’s way is to add the disk to Search Privacy, wait a few seconds, then remove it again; Spotlight reindexes it.

## 4. Should you quit or disable it?

Don’t try to remove it. It is part of Spotlight on the sealed system volume, and macOS starts it whenever Spotlight needs a scan. Stopping it in Activity Monitor only means the scan starts again later.

The supported way to give it less work is Search Privacy: anything in that list isn’t scanned or indexed. Turning Spotlight indexing off for a whole disk with `mdutil` also stops scans there, but then Spotlight, and the apps that search through it, can’t find anything on that disk.

If mdsync keeps scanning the same disk over and over, run Disk Utility’s First Aid on that disk. It is a quick, safe check that rules out a damaged volume before you rebuild anything.

## Questions

### Is mdsync a virus?

No. It sits in Spotlight’s folder inside `CoreServices.framework` and is started by launchd from `com.apple.metadata.mds.scan.plist`.

### What is the difference between mdsync and mdworker?

From its launchd job, mdsync is Spotlight’s scan worker, which goes through volumes. `mdworker_shared` processes import the contents of individual files into the index.

### How long does Spotlight indexing take?

Apple says it can take hours or even days, depending on how much data there is, and that later updates are faster.

### Can I stop mdsync from scanning my external drive?

Yes. Add the drive to Search Privacy in Spotlight settings. Spotlight then won’t index it, and won’t find files on it.

## How SiftMac handles it

SiftMac has no hand in mdsync: it doesn’t manage or stop processes, CPU or memory, and it leaves Spotlight’s index alone. It scans the disk on its own terms and shows what fills it.

Download: https://siftmac.com/SiftMac.dmg (scanning is free, and so is up to 20 GB of cleaning for 7 days).

## Sources

- [Apple: About Spotlight indexing and search results](https://support.apple.com/en-us/102321)
- [The Eclectic Light Company: When and how to rebuild Spotlight indexes](https://eclecticlight.co/2024/11/19/when-and-how-to-rebuild-spotlight-indexes/)
- [mdutil(1) man page](https://keith.github.io/xcode-man-pages/mdutil.1.html)

## Related

- [What is mds, and why is it using CPU?](https://siftmac.com/process/mds)
- [What are mdworker and mdworker_shared, and why are they using CPU?](https://siftmac.com/process/mdworker)
- [What is mds_stores, and why is it using so much CPU?](https://siftmac.com/process/mds-stores)
- [Is it safe to delete .Spotlight-V100 (the Spotlight index)?](https://siftmac.com/safe-to-delete/spotlight-index)
- [What is corespotlightd, and why is it using so much memory?](https://siftmac.com/process/corespotlightd)

Canonical: https://siftmac.com/process/mdsync
