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

What is mds on Mac?

By Junaid, maker of Taskglass · Last reviewed

Summarize this page with

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

  1. 1Let it finish: keep the Mac on and plugged in; indexing can take hours on large disks
  2. 2Exclude folders you never search (build folders, VM images, backups) in System Settings > Spotlight > Search Privacy
  3. 3If it runs for days, rebuild the index: add your disk to Search Privacy, then remove it again
  4. 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

Part of the Taskglass Process Library · More Apple service processes

See this process live in Taskglass.

Taskglass shows what mds 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 →