Skip to contentBlack FridayTaskglass is $9 instead of $14Get the deal →

What is mdworker_shared on Mac?

By Junaid, maker of Taskglass · Last reviewed

Summarize this page with

Spotlight indexing worker; modern macOS runs several at once to read files for search.

mdworker_shared is the form of the Spotlight worker that current macOS mostly uses. Spotlight starts these workers to read different kinds of files and extract text and details for search. You'll often see several at a time, and they come and go as needed.

Category
Apple service
Made by
Apple
Safe to quit:
With care

Shown in Activity Monitor as mdworker_shared

Also searched as “mdworker shared”.

Why is mdworker_shared using so much CPU or memory?

  • Indexing after a macOS update, migration or new drive
  • Many new or changed files, like downloads, photos or code
  • Large or complex documents

What to do

  1. 1Let indexing finish with the Mac on and plugged in
  2. 2Exclude folders you never search in System Settings > Spotlight > Search Privacy
  3. 3Restart your Mac if they stay busy for days

Safe to quit? With care.

Spotlight starts new workers as needed; quitting one doesn't stop indexing.

Typical CPU and memory use

Rough ranges on Apple Silicon Macs. Yours will vary.

CPU
0% when idle; can be 10–100% each while indexing
Memory
10–100 MB each

Measured on an Apple M4 Mac running macOS 27.0.1 on November 17, 2026, during normal use:

  • mdworker_shared: 21 MB of memory (largest of 7 copies), running as your user account

Resident memory from ps at one moment. It changes with what you're doing.

Is it genuine? How to check

Malware sometimes borrows the name of a real process. The real one runs from a fixed place and carries its maker's code signature, so check both.

mdworker_shared

Location
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mdworker_shared
Part of
CoreServices (a macOS framework)
Signed by
Apple (part of macOS)
Started by
launchd job com.apple.mdworker.shared (user agent, started on demand)

Check the signature in Terminal:

codesign -dv --verbose=2 "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mdworker_shared"

The genuine file prints these lines:

Identifier=com.apple.mdworker_shared
Authority=macOS Software Signing
TeamIdentifier=not set

To see where the running copy lives, run this in Terminal and compare the path:

ps -axo pid,user,comm | grep -F mdworker_shared

In Activity Monitor: select the process, click the Info button (ⓘ), then Open Files and Ports. The first line is the program's path.

Paths and signatures checked on macOS 27.0.1 (26A434), Apple M4, November 17, 2026. Other macOS versions can differ.

How to restart mdworker_shared

Quit it in Activity Monitor, or run killall mdworker_shared in Terminal. Launchd starts it again the next time an app or macOS asks for it: it is the launchd job com.apple.mdworker.shared (an agent in your user session), defined in /System/Library/LaunchAgents/com.apple.mdworker.shared.plist.

Related processes

Part of the Taskglass Process Library · More Apple service processes

See this process live in Taskglass.

Taskglass shows what mdworker_shared is doing on your Mac right now, groups it under the app that started it, and checks its code signature for you. It explains 224 processes this way.

See how Taskglass works →How it compares with Activity Monitor →