Skip to content

Guide

What is mds_stores, and why is it using so much CPU?

mds, mds_stores and mdworker are Spotlight. When they're busy, macOS is building or updating the index that makes searches instant. It's usually temporary, and you can make it smaller.

By the iKnowMyMac team · Updated · 6 min read

The short answer

mds_stores writes Spotlight's search index; mds coordinates it, and mdworker processes read your files' contents for it. They get busy after a macOS update, after restoring or migrating, and when lots of files change at once. Apple says indexing can take hours or even days on a lot of data, and finishes faster when the Mac is idle and plugged in. Let it finish. If it never settles, open System Settings → Spotlight → Search Privacy and add folders you never search, such as build folders, caches and virtual machines. Quitting the processes doesn't help: macOS starts them again.

On this page

What mds, mds_stores and mdworker do

  • mds

    What it does
    The Spotlight server. It coordinates indexing and answers searches.
  • mds_stores

    What it does
    Writes the search index, so searches in Spotlight, Finder and Mail are instant.
  • mdworker, mdworker_shared

    What it does
    Read files so Spotlight can index their contents. Several run at once while there's work, then exit.
  • corespotlightd

    What it does
    Indexes content apps share with Spotlight, such as messages, notes and mail.
The Spotlight processes you'll see in Activity Monitor

They're part of macOS. The real mds and mds_stores run from inside /System/Library/Frameworks/CoreServices.framework, which macOS protects; ps -Ao pid,comm | grep mds shows the full path.

Is it safe to quit mds_stores?

It quits and restarts itself. macOS starts mds and mds_stores again straight away and indexing carries on, so quitting them only throws away work already done. The mdworker processes end on their own when there's nothing left to index. Leave them running.

Why Spotlight gets busy

Apple says Spotlight indexes during setup, after software updates or upgrades, and as data changes. In practice, the busy spells come from:

  • A macOS update. Spotlight may index much of the disk again afterwards. On a lot of data, Apple says this can take hours or even days.
  • Restoring or migrating. A Mac restored from a backup or set up with Migration Assistant indexes everything it received.
  • Lots of files changing at once. Big downloads, unpacked archives, cloud sync, and developer folders such as node_modules and build output, which can change thousands of files per build.
  • A new external disk. Spotlight indexes a disk when you first connect it.

How to check that it's indexing

Spotlight's processes and their CPU
top -l 2 -o cpu -n 20 -stats pid,command,cpu | grep -E "mds|mdworker|corespotlightd"
Is indexing turned on for the startup disk?
mdutil -s /
Example output
/:
	Indexing enabled.

In Activity Monitor, the Disk tab shows how much mds_stores is writing. Heavy CPU and disk use from these processes for an hour or so after an update is normal. Days of it, with nothing new on the Mac, usually means one folder keeps changing and being indexed again.

What to do about it

  1. Let it finish. Leave the Mac idle and plugged in for a while; Apple says indexing completes faster that way.
  2. Exclude folders you never search. Open System Settings → Spotlight → Search Privacy (on older macOS versions, Siri & Spotlight → Spotlight Privacy), click the add button (+) and choose the folder, or drag it into the list. Good candidates: build folders, node_modules, caches, and virtual machine or container disk images.
  3. Rebuild the index if search results are wrong or indexing never ends. Apple's method: add the disk to the Search Privacy list, wait a few seconds, then remove it. Spotlight indexes it again from scratch, which takes a while.

The faster way: “What is this?” in iKnowMyMac

iKnowMyMac explains this inside the app. Every process row has a “What is this?” action that says what the process is, whether it's safe to quit, why it's busy right now and the one fix. For any Spotlight process, it adds up the CPU of all of them and says whether Spotlight is indexing right now.

Know why your Mac is slow.

macOS 15 Sequoia or later · Apple silicon. A 4.2 MB native app, notarized by Apple. No account, no analytics, no telemetry.

One-time purchase · every feature · 14-day refund