# What are mdworker and mdworker_shared, and why are they using CPU?

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

## The short answer

- **They’re Spotlight’s file readers.** Apple’s manual page calls `mdworker` the metadata server worker, used by `mds` to scan and index files when a volume is mounted or a file changes. `mdworker_shared` is the form you see on current macOS.
- **Many copies and short CPU bursts are normal.** They appear when there are new files to read and exit when they’re done. After an update or a big copy, that can go on for hours.
- **You can quit them, but it doesn’t help much.** `mds` just starts more. If they never finish, find the folder they are stuck on and keep it out of Spotlight.

## 1. What mdworker and mdworker_shared are

Both programs sit beside the rest of Spotlight in `/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/`. The manual page covers them in two sentences: mdworker is the metadata server worker process, used by mds to scan and index files as a volume is mounted or a file changes. It has no configuration and is not meant to be run by hand.

A worker’s job is to open one file after another and pull out what Spotlight can search: the text of a PDF, the artist of a song, the size of an image. It hands that to `mds`, and [mds_stores](https://siftmac.com/process/mds-stores) writes it into the index.

On macOS 15.5 there are five per-user launch files for them in `/System/Library/LaunchAgents`. `com.apple.mdworker.shared.plist` and `com.apple.mdworker.mail.plist` start the `mdworker_shared` binary; the `single` and `sizing` ones start `mdworker`. Each can run more than once, which is why Activity Monitor shows a row of processes with the same name. While this page was being written, an idle Mac had between five and twelve of them, each using next to nothing.

## 2. Why they’re busy

Workers follow files. Apple says Spotlight indexes at first setup, after a software update or upgrade, and as data changes, and that a first index can take hours or even days depending on how much data there is. Day to day, the things that wake a crowd of workers are:

- A download, an unzip or a `git clone` that lands thousands of files at once.
- Connecting an external drive that has not been indexed on this Mac.
- New mail arriving in bulk; one of the launch files is a worker set aside for Mail.
- A folder that changes constantly, such as a build directory or a virtual machine disk. Each change is a file to read again.
- A very large file, which can hold one worker for a while.

A worker that stays at high CPU for a few minutes on a big file is fine. The same pattern for days, with the Mac otherwise idle, means something keeps feeding them.

## 3. What to do about it

1. **Check whether Spotlight says it’s indexing.** Press Command-Space. Apple says a progress indicator appears at the top of the Spotlight window while indexing runs.
2. **Leave the Mac on power and online for a while.** Apple notes indexing goes faster when the Mac isn’t in use.
3. **Find the folder.** While the workers are busy, run the command below. It lists the files they have open, which usually points at one folder or one drive.
4. **Exclude what doesn’t need searching.** In System Settings › Spotlight (Siri & Spotlight on older versions), click Search Privacy and add build folders, virtual machines or a backup drive. Spotlight stops reading them.
5. **Reindex one disk or folder** if results are wrong or the workers loop on it: add it to the Search Privacy list, wait a few seconds, remove it again and click Done. Apple describes this as the fix for stubborn search issues.
6. **Update macOS.** Apple’s first advice for unexpected Spotlight results is to install the latest updates.

```
lsof -c mdworker | grep -v -e /System -e /usr/ -e /private/var -e /dev/ | tail -n 20
```

`killall mdworker_shared` is harmless: the workers hold no data of their own and `mds` starts new ones when it has files for them. It is also pointless as a cure, for the same reason. It only helps if a single worker is plainly stuck on one file.

## 4. Are mdworker processes safe, or malware?

They are Apple’s, and seeing a dozen of them is not a sign of infection. What matters is the path. This lists each running worker with where it started from:

```
ps -axo user,pid,comm | grep '[m]dworker'
```

Every line should begin with the `Metadata.framework` path from the top of this page. Then check either binary’s signature, for example:

```
codesign -dv /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker_shared
```

It reports `Identifier=com.apple.mdworker_shared`. A system-sounding name proves nothing by itself, so an “mdworker” that runs from your home folder, `/Library/Application Support` or a temporary folder is not Spotlight and should be examined.

Don’t turn Spotlight off altogether to get rid of the workers. Search in Finder, Mail and many apps depends on the index they build.

## Questions

### Why are there so many mdworker_shared processes?

`mds` starts several workers so files can be read side by side, and macOS has separate launch files for different kinds of work, including one for Mail. They exit when there is nothing left to read.

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

They are two binaries in the same Spotlight folder. Apple’s manual page describes the worker under the name `mdworker` and has no separate entry for `mdworker_shared`; on macOS 15.5 the shared and Mail launch files start `mdworker_shared`, and that is the name you will mostly see.

### Is it safe to kill mdworker_shared?

Yes. Workers keep no data and `mds` starts new ones when needed. It will not stop indexing for long.

### How do I stop mdworker using so much CPU?

Let a first index finish, then add folders that change constantly to Search Privacy in Spotlight settings so the workers stop reading them.

## How SiftMac handles it

SiftMac doesn’t manage processes or CPU and has no control over Spotlight’s workers. It scans the disk and shows what is taking space.

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

## Sources

- [mdworker(8) manual page](https://keith.github.io/xcode-man-pages/mdworker.8.html)
- [Apple: About Spotlight indexing and search results](https://support.apple.com/en-us/102321)
- [mdutil(1) manual 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 is mds_stores, and why is it using so much CPU?](https://siftmac.com/process/mds-stores)
- [What is corespotlightd, and why is it using so much memory?](https://siftmac.com/process/corespotlightd)
- [Is it safe to delete .Spotlight-V100 (the Spotlight index)?](https://siftmac.com/safe-to-delete/spotlight-index)
- [What is spotlightknowledged, and why is it using CPU?](https://siftmac.com/process/spotlightknowledged)

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