What is mds, and why is it using CPU?
- It’s the head of Spotlight. Apple’s manual page says
mdsis the metadata server and serves all clients of the metadata APIs, including Spotlight. It decides what needs indexing and answers searches. - Some CPU is normal while files are being indexed or apps are searching. Apple says a first index can take hours or even days. Constant high CPU on a settled Mac is worth a look.
- Don’t bother quitting it. It runs as root, launchd is told to keep it alive, and it returns at once. Use Spotlight’s settings or
mdutilto change what it does.
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
1. What mds is, and how it differs from mds_stores
mds stands for metadata server. It is a system daemon, started at boot from /System/Library/LaunchDaemons/com.apple.metadata.mds.plist, and that file sets KeepAlive, so there is always one running. On macOS 15.5 it runs from /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds. The manual page adds that it has no configuration and should not be run by hand.
Three names show up together in Activity Monitor, and they are easy to mix up:
| Process | Role |
|---|---|
mds | The server. Watches for mounted volumes and changed files, hands out work, and answers every query that comes through the metadata APIs: the Spotlight window, Finder search, mdfind, and apps. |
mdworker, mdworker_shared | The workers mds uses to scan and index files. See the mdworker page. |
mds_stores | Looks after the index stores on each volume. See the mds_stores page. |
So the difference is direction. mds_stores is busy when the index is being written or read on disk. mds is busy when there are decisions to make and questions to answer. During a big reindex both climb together; during a burst of searches from one app, mds can be high alone.
2. Why it’s busy
Since mds serves every client, there are two sides to its workload.
Indexing
Apple says indexing happens at initial setup, after a software update or upgrade, and as data changes. Mounting a volume counts too: the manual page for the workers says files are scanned as a volume is mounted. A Time Machine disk, a camera card or a disk image each gives mds something to assess.
Searching
Any app can ask mds questions. Finder searches and Smart Folders, the mdfind command and third-party launchers or file tools all send queries, and a query that matches a great many files takes real work. If mds jumps when one particular app is open, that app is the client to look at.
The mdutil manual page mentions one more condition: indexing may be delayed due to low disk space. A delayed index is not a CPU problem, but it does explain searches that miss recent files on a nearly full disk.
3. What to do about it
Start by asking Spotlight for its status. This prints whether indexing is enabled for the startup volume:
mdutil -s /
- Wait out a real index. After an update or migration, leave the Mac plugged in and connected. Apple says indexing is quicker when the Mac isn’t being used.
- Find a noisy client. Quit apps one by one, starting with launchers, file managers, sync and backup tools, and watch mds in Activity Monitor.
- Eject disks you’re not using, or add them to Search Privacy in System Settings › Spotlight so mds ignores them.
- Rebuild an index that seems broken. Apple’s method is in the settings: add the disk or folder to the Search Privacy list, wait a few seconds, remove it and click Done. Spotlight then reindexes it. Expect mds and its helpers to be busy again until that finishes.
- Install pending macOS updates and restart.
The command-line equivalent of a rebuild is sudo mdutil -E /, which the manual page describes as erasing the local store so that it is rebuilt. It does the same job as the settings route and is no faster.
killall mds needs sudo and achieves little: launchd restarts the server straight away with the same index and the same clients. It is harmless, but it is not a fix.
4. Is mds safe, or is it malware?
mds is a long-standing part of macOS; its manual page is dated January 2006. The real one is owned by root and lives in Metadata.framework. Check what is running and how it is signed:
ps -axo user,pid,comm | grep '/mds$'
codesign -dvv /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mds
The first command should show one line, with user root and a path under /System/Library/Frameworks/CoreServices.framework. The second should show Identifier=com.apple.mds and an Authority chain that ends with Apple Root CA.
If an mds runs under your own user name, or from a path outside /System, it isn’t the metadata server. Don’t confuse it with similarly named Apple processes, though: mds_stores, mdsync and mdbulkimport sit in the same folder and are part of Spotlight too.
Turning indexing off for the startup disk with mdutil -i off does quieten mds, but it also breaks search in Finder, Mail and other apps. Excluding the few folders that cause the load is the better trade.
Questions
What is the difference between mds and mds_stores?
mds is the metadata server: it coordinates indexing and answers searches. mds_stores looks after the index stores on disk. Both are parts of Spotlight and often get busy together.
Can I kill the mds process on a Mac?
You can with administrator rights, and nothing breaks, but launchd keeps it alive and restarts it immediately. It doesn’t reset the index.
How do I check if Spotlight is still indexing?
Press Command-Space and look for the progress indicator Apple describes at the top of the Spotlight window. mdutil -s / shows whether indexing is enabled for the disk.
Why is mds using a lot of memory?
Apple doesn’t document its memory use. It serves every search on the Mac, so heavy use raises it. A restart clears it; if it climbs back quickly, look for the app sending the queries.
Does mds slow down my Mac permanently?
No. Apple says updates after the first index are much faster than the first pass.
How SiftMac handles it. SiftMac doesn’t manage processes or CPU, and it leaves Spotlight’s index alone. If searches miss files because the disk is nearly full, it shows what is taking the space.
Download SiftMac · scanning is free, and so is up to 20 GB of cleaning for 7 days · See how it works