What is mdworker_shared on Mac? Why it uses so much CPU, and how to fix it

Updated · 2 min read · by

Quick answer

mdworker_shared is Spotlight's helper processes that open files and read their contents for the search index. Seeing several at once is normal. Short spikes are normal. If it stays high, something is keeping it busy, and the steps below find and fix it.

What is mdworker_shared?

mdworker_shared processes do the reading for Spotlight. Each one opens files, pulls out text and details (like the title of a document, or the size and date of a photo) and hands them to mds_stores to add to the index.

macOS starts several of them at once to get through big batches of files faster, so it's normal to see many mdworker_shared entries in Activity Monitor. They exit when there's nothing left to read.

Why is mdworker_shared using so much CPU?

How to fix high mdworker_shared CPU usage

  1. Confirm it in Activity Monitor. Press ⌘ Space, type Activity Monitor, open the CPU tab and sort by % CPU. Watch mdworker_shared for a minute: short spikes are normal, only steady high usage needs fixing.
  2. Let them finish while plugged in. They stop on their own once Spotlight is caught up.
  3. Exclude folders you never search (build output, caches, virtual machines) in Spotlight's privacy list in System Settings.
  4. Check for a constantly changing folder. If they never stop, an app may be rewriting files nonstop; excluding that folder fixes it.

More help: How to check CPU usage on a Mac

Questions people ask

What is mdworker_shared on a Mac?

mdworker_shared is Spotlight's helper processes that open files and read their contents for the search index. Seeing several at once is normal.

Can I quit mdworker_shared?

You can, but Spotlight starts new ones as soon as it needs them. Excluding busy folders is the lasting fix.

Is mdworker_shared a virus?

Yes. mdworker_shared is part of Spotlight in macOS, and several running at once is expected.