What is mds on Mac?
By Junaid, maker of Taskglass · Last reviewed
The Spotlight metadata server: coordinates indexing so you can search your Mac instantly.
mds is the metadata server behind Spotlight. It coordinates indexing of your files, hands work to mdworker processes that read the files, and answers searches from Spotlight, Finder and other apps. Heavy activity is normal after a macOS update, after restoring or migrating files, or when you connect a new drive, and it settles once indexing is done.
- Category
- Apple service
- Made by
- Apple
- Safe to quit:
- With care
Shown in Activity Monitor as mds
Why is mds using so much CPU or memory?
- Indexing after a macOS update, migration or restore
- A new external drive connected, or large numbers of files added or changed
- Cloud folders or developer folders with many files changing constantly
- A damaged index being rebuilt
What to do
- 1Let it finish: keep the Mac on and plugged in; indexing can take hours on large disks
- 2Exclude folders you never search (build folders, VM images, backups) in System Settings > Spotlight > Search Privacy
- 3If it runs for days, rebuild the index: add your disk to Search Privacy, then remove it again
- 4Restart your Mac
Safe to quit? With care.
macOS relaunches it right away; search may be incomplete while indexing continues.
Typical CPU and memory use
Rough ranges on Apple Silicon Macs. Yours will vary.
- CPU
- Near 0% when idle; 10–100%+ while indexing
- Memory
- 20–200 MB
Measured on an Apple M4 Mac running macOS 27.0.1 on November 17, 2026, during normal use:
mds: 16 MB of memory, running as root (the system)
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.
mds
- Location
- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mds
- Part of
- CoreServices (a macOS framework)
- Signed by
- Apple (part of macOS)
- Started by
- launchd job
com.apple.metadata.mds(system daemon, kept running)
Check the signature in Terminal:
codesign -dv --verbose=2 "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mds"
The genuine file prints these lines:
Identifier=com.apple.mds 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 mds
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 mds
Quit it in Activity Monitor, or run sudo killall mds in Terminal. Launchd starts it again within seconds: it is the launchd job com.apple.metadata.mds (a system daemon), defined in /System/Library/LaunchDaemons/com.apple.metadata.mds.plist.
Related processes
- mds_storesMaintains Spotlight's search index on disk, updating it as files change.
- mdworkerA Spotlight worker that reads files and extracts searchable details for the index.
- mdworker_sharedSpotlight indexing worker; modern macOS runs several at once to read files for search.
- SpotlightThe Spotlight search window and menu bar search you open with Command-Space.
- corespotlightdIndexes content that apps share with Spotlight, like emails, notes and messages.
- fseventsdRecords which folders have changed so apps like Spotlight and Time Machine can react.
Part of the Taskglass Process Library · More Apple service processes