What mds, mds_stores and mdworker do
mds is the metadata server behind Spotlight. Its manual page says it serves every client of the metadata APIs, including Spotlight, has no settings, and shouldn’t be run by hand. mdworker and mdworker_shared are the workers mds uses to scan and index files when a volume is mounted or a file changes. mds_stores, as its name suggests, looks after the index databases themselves, which mdutil calls metadata stores.
Indexing is incremental. Once the index is built, these processes wake when files change and go quiet again. Heavy work follows events that change many files at once: installing a macOS update, restoring from a backup, copying a large folder, unpacking a project with thousands of files, or connecting a drive Spotlight hasn’t seen before.
1. Confirm Spotlight is the busy process
Open Activity Monitor from Applications → Utilities, click CPU and sort by % CPU. Or run the ps line below, which lists each Spotlight process with its current CPU share. Several mdworker_shared processes at once is normal while indexing is under way.
mdutil -s / reports whether indexing is enabled for the startup volume, and mdutil -s -a does the same for every mounted volume, including external drives and disk images. It shows status, not progress. Apple’s Spotlight article notes that, depending on how much data there is, indexing can take hours or even days.
ps -Ac -o pid,pcpu,comm | grep -E 'mds|mdworker'
mdutil -s /
mdutil -s -a2. Let it finish
After a macOS update, leave the Mac awake and connected to power for a few hours. Indexing that keeps being interrupted by sleep simply takes longer. Apple says indexing happens after a software update or upgrade, so a busy mds_stores on the first day is expected; the slow-after-update guide covers the rest of that period.
Low free space can hold it up further. The mdutil manual notes that indexing may be delayed by low disk space, and the index needs room to grow. If the startup disk is nearly full, free some space first.
3. Exclude folders that change all the time
If CPU use never settles, something is probably rewriting files all day: a build folder, a virtual machine disk, a sync folder being downloaded again, or a database a developer tool keeps updating. Spotlight notices each change and indexes it again. Excluding that folder stops the churn without turning Spotlight off.
Open System Settings → Spotlight (Siri & Spotlight on some releases), scroll down and click Search Privacy (Spotlight Privacy on some releases). Click the add button and choose the folder or drive, or drag it into the list. Apple notes two limits: excluding certain folders can mean you aren’t told about some app updates, and a Time Machine backup disk keeps being indexed because Time Machine needs it.
4. Rebuild the index if search is also wrong
If Spotlight is busy and also misses files you know exist, rebuild the index. Apple’s method uses the same privacy list: add the disk or folder, wait a few seconds, select it, click the remove button, then click Done. Spotlight then indexes it from scratch, so expect mds_stores to be busy again for a while.
mdutil -E does the same from Terminal: it erases the index for the volume you name, and Spotlight rebuilds it. It needs an administrator password. Don’t delete the hidden .Spotlight-V100 folder by hand; macOS protects it, and both supported routes already clear it and start the rebuild.
sudo mdutil -E /When to look further
Don’t turn indexing off for the whole startup disk to quiet the fan. Apple warns that excluding the internal disk means you won’t be notified about any app updates, and search in Finder and many apps depends on the index.
- Still high CPU a day or two after an update, with the Mac left awake: look for a folder that keeps changing and exclude it.
- The same external drive is indexed every time you connect it: add it to the privacy list if you never search it.
- Spotlight can’t find files you know exist: rebuild the index as above.
- mdutil -s shows indexing disabled on the startup volume and you didn’t turn it off: sudo mdutil -i on / turns it back on.
Common questions
Why is mds_stores using so much CPU on my Mac?
mds_stores looks after Spotlight's index databases, and high CPU usually means it's building or updating that index, most often after a macOS update, a large file copy or connecting a drive Spotlight hasn't indexed before. Indexing is incremental, so once it's built these processes go quiet again.
How long does Spotlight indexing take on Mac?
Apple says it can take hours or even days, depending on how much data there is. Leaving the Mac awake and connected to power helps, since indexing that keeps being interrupted by sleep simply takes longer to finish.
How do I stop Spotlight from indexing a specific folder on Mac?
Open System Settings, then Spotlight, then Search Privacy, click the add button, and choose the folder or drive, or drag it into the list. This is useful for a folder that changes constantly, since excluding it stops Spotlight reindexing it repeatedly without turning Spotlight off entirely.
How do I rebuild the Spotlight index on Mac?
Add the disk or folder to the Search Privacy list, wait a few seconds, select it, click the remove button, then click Done; Spotlight then indexes it from scratch. From Terminal, sudo mdutil -E does the same, erasing the index for the named volume so Spotlight rebuilds it.
References & further reading
These guides combine the linked official guidance with ClearDisk’s documented behavior. Your files and app settings determine the right next step.