photoanalysisd and mediaanalysisd using a lot of CPU
Photos is scanning your library for people, places and text. When it happens, how long it takes, and how to let it finish.
The short answer
photoanalysisd and mediaanalysisd are Photos looking at your pictures and videos: finding people, places, pets, text and objects, so search and Memories work. After an import or setting up iCloud Photos on a Mac, they can work for hours or days. They finish by themselves and back off while you use the Mac.
What they do
- photoanalysisd groups your library into people, places and Memories.
- mediaanalysisd looks inside photos and videos for search, the text in them (Live Text) and Visual Look Up, and also handles pictures in other apps.
Why they are busy now
Each new photo or video is analysed once. They get busy after you import many pictures, sign in to iCloud Photos on a Mac (which downloads and analyses the whole library), or after a macOS update brings new kinds of analysis that run over the library again. A big library can take several days to get through.
What helps
- Leave the Mac on and plugged in, awake, while you are not using it, for example overnight. Most of the work happens when the Mac is idle.
- On a laptop, keep it plugged in: on battery the work slows down or waits.
- Give it a few days after a large import. Once the library is done, it only handles new pictures.
When this heats the Mac, MyMacFriend's Health tab says it is macOS catching up and that it finishes by itself, instead of treating it as a runaway app.
Can I quit them?
Yes, it is safe: macOS starts them again, and they carry on later. Quitting only postpones the work, so it is better to let it finish once.