What mdworker_shared does
Spotlight does not read every file each time you search. It builds an index in advance. mds coordinates that, and mdworker_shared does the reading — opening a file and extracting the parts worth searching, such as text or document properties.
It uses a small plug-in for each kind of file, called an importer. Apps install their own, so a third-party importer can affect indexing long after you stopped using the app that installed it.
The workers are meant to be short-lived. macOS runs several at once and ends them when the work is done, which is why the process list keeps changing while indexing.
When the load is ordinary indexing
You updated macOS, copied a large folder, restored a backup, or plugged in an external disk. Several workers are busy and the activity settles after a while.
Reading many files is genuinely expensive, and Spotlight prefers to get it done. The time it takes depends on how many files there are, how large they are, and how fast the disk is.
Fixleave the Mac awake and on power until the burst settles. If an external disk started it and you do not need to search that disk, add only that disk to Spotlight Privacy.
Signs one file or importer is failing
Workers keep restarting in a cycle for hours with no file change to explain it, the load returns immediately after every restart, or Spotlight results for one folder never improve.
When a worker cannot finish a file, the file stays unindexed and the work is attempted again. The usual causes are one damaged or unusual file, a third-party importer that fails on a format it claims to handle, or a network volume that stalls mid-read.
Processor use cannot distinguish those. What separates them is which location the workers are reading and whether the same failure repeats in the logs.
What Noah can determine on this Mac
NoahNoah can take a reading of the mdworker_shared processes, see which volumes are mounted, and check recent logs for the same failure repeating. That points at a location rather than at the process.
Each reading is a single snapshot, not a recording, so judging whether the cycle repeats is still yours. Noah cannot list Spotlight's importer plug-ins or query indexing status either, so the Privacy-list step above stays yours. It will not delete a file it decided was the problem.
Safe manual checks
- In Activity Monitor, sort by CPU and watch for a minute. Note whether workers finish or keep restarting.
- Disconnect an external or network volume normally. If the cycle stops, that volume was being read.
- In System Settings, open Spotlight and add a suspect folder to Privacy. Indexing should stop for that location only.
- If search results stay wrong, follow Apple's supported Spotlight rebuild steps for the affected disk.