Activity monitor shows process "mdsync" using up all the CPU.

Anyone know what mdsync is, how to control it, and if it has anything to do with the fact that my photo library external SSD refuses to eject even when forced?

MacBook Air (M1, 2020)

Posted on Apr 7, 2023 4:57 PM

Reply
Question marked as Top-ranking reply

Posted on Apr 24, 2023 8:07 PM

Thank you both. I had never had mdsync run at 99% CPU for this extended period of time, which caused the worry.


It turns out Spotlight was reindexing <4TB worth of photos and footage, the same reason it wouldn't let me eject the SSD that said files are on.


Take-aways

  • "mdsync" is Spotlight, and high CPU usage means it's indexing.
  • To avoid indexing large SSDs for smoother ejection, go to Settings > Siri & Spotlight > Spotlight Privacy, and add the SSD to the list of locations not to be indexed.

Similar questions

3 replies
Question marked as Top-ranking reply

Apr 24, 2023 8:07 PM in response to SaphrynShikaze

Thank you both. I had never had mdsync run at 99% CPU for this extended period of time, which caused the worry.


It turns out Spotlight was reindexing <4TB worth of photos and footage, the same reason it wouldn't let me eject the SSD that said files are on.


Take-aways

  • "mdsync" is Spotlight, and high CPU usage means it's indexing.
  • To avoid indexing large SSDs for smoother ejection, go to Settings > Siri & Spotlight > Spotlight Privacy, and add the SSD to the list of locations not to be indexed.

Apr 8, 2023 6:34 PM in response to SaphrynShikaze

SaphrynShikaze wrote:

Anyone know what mdsync is, how to control it, and if it has anything to do with the fact that my photo library external SSD refuses to eject even when forced?
https://discussions.apple.com/content/attachment/de3cc149-3454-4c94-ab95-92dc6450bf70


mdsync is Spotlight, what happens if you let it run to conclusion as it indexes?



And is there some associated issue...(?)


From the Terminal.app can copy & paste:

diskutil umount 


notice the trailing blank space, drag the SSD from the Desktop to the Terminal window to complete the path; use the enter\return key to continue



A SafeBoot How to use safe mode on your Mac - Apple Support will sort many anomalies


ref– see if there is some relief here

mdsync at 99% CPU - Apple Community




This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Activity monitor shows process "mdsync" using up all the CPU.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.