SiftMac
What is this process? · Updated 1 December 2026

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

By Mohit Nippanikar, who makes SiftMac

The short answer

Check your own Mac. SiftMac’s free scan lists what’s using space and says, for each item, whether it comes back on its own.

Download the free scanMac · macOS 13+ · nothing leaves your Mac

On this page
  1. What mdworker and mdworker_shared are
  2. Why they’re busy
  3. What to do about it
  4. Are mdworker processes safe, or malware?
  5. Questions

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 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 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 SiftMac · scanning is free, and so is up to 20 GB of cleaning for 7 days · See how it works