Spotlight index on a Mac: where it lives, why mds_stores gets busy, and how to rebuild it cleanly
Spotlight keeps a search index of your files, mail, messages and apps. It is useful, it is usually small next to your photos or Xcode, and it is never something to delete by hand. But two things send people looking for it: a process called mds_stores eating CPU, and an index that grew big on a drive full of archives.
Here is what it is, how to measure it, and the three safe moves.
The short version
- Every indexed volume has its own hidden index folder,
.Spotlight-V100, at its top level. - On your startup disk it sits on the Data volume:
/System/Volumes/Data/.Spotlight-V100. - mds_stores is the process that writes that index. mdworker processes read files and hand it the text.
- Busy after an update, a migration or a big copy is normal. Apple says indexing can take hours or even days.
- To shrink it: keep folders out of the index (Spotlight privacy), or turn indexing off for external drives you never search.
- To fix wrong or missing results: rebuild the index. Never delete
.Spotlight-V100in Finder or withrm.
Who does what
| Name | What it is | When it is busy |
|---|---|---|
| mds | Metadata server, runs the index | Rarely on its own |
| mds_stores | Writes and compacts the index files | After updates, migrations, large copies, a rebuild |
| mdworker / mdworker_shared | Open files and pull out text and metadata | While new or changed files are being read |
| .Spotlight-V100 | The index folder at the top of each volume | Grows with how much indexed content the volume holds |
Step 1: check status and size (read only)
Indexing enabled.means Spotlight looks after that volume.Indexing disabled.means it does not, and no index grows there.- If
dusays Operation not permitted, give Terminal Full Disk Access just for the check, then take it away again.
What the size means on a small SSD
The index scales with what you keep, so there is no one right number. The quick way to judge it is the share of your disk:
| Index size you measured | Share of a 256 GB Mac | Share of a 512 GB Mac | Worth acting on? |
|---|---|---|---|
| 1 GB | 0.4% | 0.2% | No |
| 3 GB | 1.2% | 0.6% | No, unless results are wrong |
| 8 GB | 3.1% | 1.6% | Check what is being indexed |
| 15 GB | 5.9% | 2.9% | Yes: exclude archives, or rebuild |
Share = index size divided by disk size, so 8 GB on a 256 GB disk is 8 / 256 = 3.1%. Below a few percent, your space is better spent elsewhere: see what Xcode and Simulators take or purgeable space and snapshots.
Step 2: is mds_stores stuck, or just working?
- Open Activity Monitor, CPU tab, and search
mds. - Click the Spotlight icon (or press Command-Space) and type something. If you see an indexing progress bar, it is working. Leave it plugged in and awake.
- Run
sudo fs_usage -w -f filesys mdworker_shared | head -50to see which files are being read. A long list from one folder (a VM image, a backup folder, a node_modules tree) tells you what to exclude. - Still busy after a day or two with nothing new copied in? That is when a rebuild makes sense.
Step 3a: keep folders out of the index
- Open System Settings > Spotlight (on older versions, Siri & Spotlight).
- Click Search Privacy (or Spotlight Privacy).
- Click + and add the folder or drive: disk images, VM bundles, old backups, build output folders, a photo archive you never search by name.
- Click Done. Spotlight drops those entries from the index; it does not touch the files.
Step 3b: turn indexing off for an external drive
Do this only for drives you never search. Time Machine drives look after their own indexing, so leave them alone.
Step 4: rebuild the startup disk index
Apple's way: add your startup disk (Macintosh HD) to Search Privacy, wait a moment, then remove it again. Spotlight erases and rebuilds the index. The Terminal equivalent:
- Expect mds_stores and mdworker to be busy for hours afterwards. That is the rebuild, not a new problem.
- Search results are incomplete until it finishes.
- Keep the Mac on power and let it sleep the display only.
- Do not run it again because it is slow; each run starts over.
Don't do these
sudo rm -rf /.Spotlight-V100or the Data volume copy: it can leave Spotlight half broken, and the rebuild above does the same job safely.sudo mdutil -a -i offon the startup disk to save space: Mail search, Finder search and many apps rely on the index.- Killing mds_stores in Activity Monitor: it restarts at once and carries on.
Zofle measures your Mac's storage by category, so you can see whether the index is worth your time or whether caches, Simulators and old downloads are the real problem.
Download Zofle for MacSources and method
- Apple Support, About the Spotlight index (indexing can take hours or even days; rebuilding through privacy settings).
- Apple Mac User Guide, Prevent Spotlight searches in files and Change Spotlight settings.
- mdutil command reference (flags -s, -a, -i, -E). Sources checked 10 November 2026.
- The size table is arithmetic: share = index size / disk size, decimal GB. Your own index size comes from the du command above.
Zofle Pro news
People signing up now will get Zofle Pro, with more features, for free when we launch it.